With these patches, a majority of tests pass. The notable
things which are still broken:
- Because FreeBSD links /home -> /usr/home, $(pwd) gives a different
result from realpath(2). Therefore some tests which implicitly
rely on (eg) a plugin which calls nbdkit_realpath internally and
then checking that path against $(pwd) fail.
- Shebangs (#!) don't seem to work the same way under FreeBSD as
they do under the Linux kernel. In any case ‘#!/usr/sbin/nbdkit perl’
runs the script under the shell. I didn't investigate why so far.
- You have to use GNU make (gmake). BSD make gets very confused by
automake Makefiles. I don't know if it's something we're doing
wrong or if it's just not supposed to work.
Rich.