site  contact  subhomenews

Notecase imported into OE

November 02, 2017 — BarryK

Notecase is a hierarchical notes manager, one of the essential apps in all Puppies and derivatives.

The problem was, I was unable to compile it in OpenEmbedded, so Pyro64 has notecase compiled in a running Pyro64. But, it is partly broken. Images in GTK themes do not load, and cause notecase to hang, as well as spit out a continuous stream of errors on stderr.

In my notes, I have written that notecase in Slackware has the same problem, but I don't recall any details.

To workaround the bug, Pyro64 0.5 is running notecase via a wrapper script:

#!/bin/sh
#170512 Pyro64, images from gtk themes don't display.
#workaround for now, use a theme without images...
export GTK2_RC_FILES=/usr/share/themes/Default/gtk-2.0/gtkrc
exec /usr/bin/notecase.bin "$@"

This morning, I had another go at compiling notecase in OE, and this time succeeded. The source has its own inbuilt zlib, which gave an error due to the cross-compile environment, and despite this error being reported many times in a google search, I could not pin down a fix.

The workaround was to use libz.a already compiled in OE, and success. Then a surprise -- I tested the notecase executable in a running Pyro64, and it works perfectly, GTK theme images load. Well, well, I shall just accept this little bonus.

Here is the github commit:

https://github.com/bkauler/oe-qky-src/commit/113323a2744c854a2d8fdc252cdebc99e89be274

EDIT:

I bumped mp (cli text editor) from version 3.2.13 to 3.3.17, as the menu wasn't working. OK now. Note, mp is named "mped" in OE.

Tags: oe