From owner-freebsd-ports@FreeBSD.ORG Fri Sep 15 06:29:50 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD30216A407 for ; Fri, 15 Sep 2006 06:29:50 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5170E43D4C for ; Fri, 15 Sep 2006 06:29:50 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 4238C1A3C1F; Thu, 14 Sep 2006 23:29:50 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 68388517D9; Fri, 15 Sep 2006 02:29:49 -0400 (EDT) Date: Fri, 15 Sep 2006 02:29:48 -0400 From: Kris Kennaway To: Kris Kennaway Message-ID: <20060915062948.GA93166@xor.obsecurity.org> References: <20060914120055.2F90616A64E@hub.freebsd.org> <200609150722.15348.matt@chronos.org.uk> <20060915062514.GA89551@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline In-Reply-To: <20060915062514.GA89551@xor.obsecurity.org> User-Agent: Mutt/1.4.2.2i Cc: Matt Dawson , freebsd-ports@freebsd.org Subject: Re: Port Makefiles and the MANPREFIX macro X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2006 06:29:50 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 15, 2006 at 02:25:14AM -0400, Kris Kennaway wrote: > 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 appe= ars=20 > > this is exactly what the MAN[n]PREFIX macro is for, and sure enough aft= er=20 > > removing the man page from pkg-plist and telling the Makefile about it,= the=20 > > ports system compresses the resultant man page in its new location. So = far so=20 > > good. > >=20 > > However, on deinstall, if appeand two lots of ${PREFIX} when trying to = remove=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). Th= e=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 tre= e is=20 > > frozen for 6.2 if at all possible. >=20 > Don't include MANPREFIX=3D${PREFIX}... since it's apparently being used > as ${PREFIX}${MANPREFIX}; you could confirm this by reading > bsd.port.mk. Actually this appears to be incorrect, I'm not sure what is the cause. Kris --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFCkhcWry0BWjoQKURAsPOAJ9kH7fvp0KHgp7x1uob6m9QNBZW4wCgs8vj 1Ez/R93oYxApYSTzM2rLl8o= =5x1f -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--