Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2012 11:49:11 +1000
From:      Steven Harris <steve@zarvon.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-ports-bugs@freebsd.org
Subject:   Re: Possible unzip dependency bug with a PREFIX set
Message-ID:  <CAEzWBxDr-xcnMbcRNkRSaM0%2B=airJgWx_L6p5dQfqi2dcBW9vg@mail.gmail.com>
In-Reply-To: <50D3BF98.6050202@FreeBSD.org>
References:  <CAEzWBxDxc6m=JD64Q1vL9TAXDApPMTzmZdtg88C7T17wc3W63g@mail.gmail.com> <50D3BF98.6050202@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Matthew - yeah it was easily worked around with a couple of quick
symlinks, and i had the suspicion that behaviour might have
been intentional.

Cheers

Steve

On Fri, Dec 21, 2012 at 11:47 AM, Matthew Seaman <matthew@freebsd.org>wrote:

> 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
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEzWBxDr-xcnMbcRNkRSaM0%2B=airJgWx_L6p5dQfqi2dcBW9vg>