Possible unzip dependency bug with a PREFIX set

Matthew Seaman matthew at FreeBSD.org
Fri Dec 21 01:47:21 UTC 2012


On 21/12/2012 01:25, Steven Harris wrote:
> One a clean install of FreeBSD, i wanted to install openjdk7 into
> /share/local (which is later exported through NFS).
> 
> Installing other ports (apache, php etc) works perfect, but openjdk7 relied
> on unzip.   So as a dependency, it installed unzip from ports, but because
> of my PREFIX setting, put it in /share/local/bin/unzip
> 
> Then after returning to openjdk, it was specifically looking in
> /usr/local/bin for unzip.

This is normal.  The ports system looks for whatever it needs to install
a port under ${LOCALBASE}/ and it will install the port to ${PREFIX}/

Usually, ${LOCALBASE} and ${PREFIX} are set to the same value:
/usr/local.  Having them set to *different* values only works for
installing the one single port at the tip of the dependency tree: it's
handy for port maintainers to test the port with, but not a lot else.
Things get very ugly very quickly if you try and install
port+dependencies without ${LOCALBASE} == ${PREFIX}.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 266 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20121221/72eb28d1/attachment.sig>


More information about the freebsd-ports-bugs mailing list