Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Aug 2011 10:18:08 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: PREFIX is not honored for dependencies
Message-ID:  <4E3D06D0.7020204@infracaninophile.co.uk>
In-Reply-To: <20110805220853.GA61697@troutmask.apl.washington.edu>
References:  <20110805220853.GA61697@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6F63484C4B41692C4A3E397C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/08/2011 23:08, Steve Kargl wrote:
> make clean
> make PREFIX=3D/opt/
>=20
> This eventually dies with=20
>=20
> =3D=3D=3D>  Installing for cppunit-1.12.1
> =3D=3D=3D>   Generating temporary packing list
> =3D=3D=3D>  Checking if devel/cppunit already installed
> =3D=3D=3D>   cppunit-1.12.1 is already installed
>       You may wish to ``make deinstall'' and install this port again
>       by ``make reinstall'' to upgrade it properly.
>       If you really wish to overwrite the old port of devel/cppunit
>       without deleting it first, set the variable "FORCE_PKG_REGISTER"
>       in your environment or the "make install" command line.
>=20
> Of course, cppunit-1.12.1 is installed!  The initial build
> in libreoffice installed it before qt4-moc crooked.  =20

You need to understand the effect of two different variables here:

PREFIX    --- where to install /this/ port
LOCALBASE --- where other ports have been installed

PREFIX *only* affects where the current port will be installed.  It
doesn't affect where this port looks for any dependencies.  That's what
LOCALBASE is for.

If you want to use /opt/ instead of /usr/local, then set both:

PREFIX=3D/opt
LOCALBASE=3D/opt

Note that this will completely ignore anything already installed in
/usr/local -- if you have got software installed there, this can result
in attempts to install the same port into two different locations, which
will not work due to both of them fighting over access to /var/db/pkg/
Again, all of this can be fixed by setting appropriate environment
variables.  You might find the following of interest: PKG_DBDIR
PORT_DBDIR PACKAGES.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig6F63484C4B41692C4A3E397C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk49BtYACgkQ8Mjk52CukIxmjwCeKRwqRj1jUqM2AquYSfA9jB9n
frIAn0tntgcD37a7lknQKWRqtqn8wOgW
=nXl7
-----END PGP SIGNATURE-----

--------------enig6F63484C4B41692C4A3E397C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E3D06D0.7020204>