On 2013/02/19 15:18, circuit6engineering wrote:
> I'm going to tinker with [werc][1] under chroot'ed Apache.
> 
> [1]: http://werc.cat-v.org/
> 
> werc requires plan9port. If I attempt to build plan9port with:
> 
> make LOCALBASE=/var/www
> ...
> ===>  Extracting for plan9port-20120508p0
> /bin/sh: bzip2: not found
> tar: End of archive volume 1 reached
> tar: Sorry, unable to determine archive format.
> *** Error code 1
> ...
> 
> but 'make install' works as expected. I can copy
> /usr/local/plan9/bin to /var/www/bin
> 
> and continue from there but I am curious why the LOCALBASE method
> failed. Any speculations or comments on best practices?
> 

Generally when people want to install things in a chroot jail, they
install them into the main system, then copy them (and associated
libraries and ld.so) into the chroot, usually via some helper script
(for one example, see ports/www/horde/chora/files/copywithlibs.sh).

Using an alternative LOCALBASE might work for some ports but it's
more complicated and you need to build packages and install them
in a special way, see the -L option in pkg_add(1)/pkg_create(1).

Reply via email to