Compiling the tarballs on the NSLU2 requires defining a few extra command-line switches and installing the optware-devel package, as well as setting a few environment variables:
ipkg install optware-devel export CC='gcc -march=armv5 -D__ARMEL__' export CXX='g++ -march=armv5 -D__ARMEL__' export LD_LIBRARY_PATH=/opt/lib
Once that’s done, configure works, and building it all is mostly a matter of iteration - start a build, come back some eight hours later (the thing only has 32MB RAM), find some constants missing, restart the build, etc.
It’s an exercise in patience - especially when you get to the part where it builds V8, which is hideously complex - but I’ve done this kind of thing before, both in the pre-Linux ages (when porting stuff across UNIXes required extensive tinkering) and in my days running Cygwin (when porting stuff to Windows was the only way for me to have a sane working environment).
However, even after a few partial successes, I’m unable to build a binary that works consistently - either due to lack of resources or to fundamental breakage in the ARM code generation, anything but the simplest scripts eventually segfault, so I’m throwing in the towel for now and trying to find something else similarly constrained to tinker with it (I have a Chumby somewhere, but no decent firmware for it, and I might be able to get an Atom machine set up).
Fun With NSMetadataQuery
I’ve also been dipping into Cocoa a fair bit, and as a result I’ve had a number of excuses to read up and do all sorts of minimalist proofs-of-concept at home (typically during the half hour or so I have to use a computer every now and then).
Having forked Shelf a while back with the intent of making it a bit more useful to figure out who was who at SAPO, I’ve been messing around with it a bit more to give me a listing of recent e-mails swapped with whomever it identifies (Xobni-like), and finally have a little proof of concept using NSMetadataQuery that gives me precisely that.
I’ll put up the source once it’s cleaned up and properly caching results (right now it’s a bit of a CPU hog, and I’ve yet to figure out sortDescriptors to my liking).
Now all I need are longer evenings. Or a month’s worth of Sundays.