Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2006 02:25:14 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Matt Dawson <matt@chronos.org.uk>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Port Makefiles and the MANPREFIX macro
Message-ID:  <20060915062514.GA89551@xor.obsecurity.org>
In-Reply-To: <200609150722.15348.matt@chronos.org.uk>
References:  <20060914120055.2F90616A64E@hub.freebsd.org> <200609150722.15348.matt@chronos.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 15, 2006 at 07:22:15AM +0100, Matt Dawson wrote:
> Hi all,
> 	Currently doing battle with some port updates and I have come across a=
=20
> strange problem. It's probably my fault, but some guidance would be=20
> appreciated.
>=20
> Three of the ports I maintain have decided that the man pages belong in=
=20
> ${PREFIX}/share/man/man(n). Now, reading the Porter's Handbook, it appear=
s=20
> this is exactly what the MAN[n]PREFIX macro is for, and sure enough after=
=20
> removing the man page from pkg-plist and telling the Makefile about it, t=
he=20
> ports system compresses the resultant man page in its new location. So fa=
r so=20
> good.
>=20
> However, on deinstall, if appeand two lots of ${PREFIX} when trying to re=
move=20
> the man page. For example, grig installs a man page=20
> to /usr/local/share/man/man1/grig.1 (for a ${PREFIX} of /usr/local). The=
=20
> deinstall routine trys to delete grig.1.gz=20
> from /usr/local/share//usr/local/share/man/man1, which is just a little=
=20
> crazy. Note the two slashes between the two iterations of the MANPREFIX.
>=20
> Any clues, folks? I'd like to get these updates in before the ports tree =
is=20
> frozen for 6.2 if at all possible.

Don't include MANPREFIX=3D${PREFIX}... since it's apparently being used
as ${PREFIX}${MANPREFIX}; you could confirm this by reading
bsd.port.mk.

Kris

--liOOAslEiF7prFVr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFCkdJWry0BWjoQKURAlB1AKDyd4cnf+UnWUa1NYxn7OXHwbWsyQCgs3a1
VpcbmjaUgidsmAuHeoQyVr4=
=Ld2X
-----END PGP SIGNATURE-----

--liOOAslEiF7prFVr--



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