From owner-freebsd-ports@FreeBSD.ORG Fri Sep 15 06:25:15 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 8D36F16A49E for ; Fri, 15 Sep 2006 06:25:15 +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 27AC843D49 for ; Fri, 15 Sep 2006 06:25:15 +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 1B3831A3C20; Thu, 14 Sep 2006 23:25:15 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9122051314; Fri, 15 Sep 2006 02:25:14 -0400 (EDT) Date: Fri, 15 Sep 2006 02:25:14 -0400 From: Kris Kennaway To: Matt Dawson Message-ID: <20060915062514.GA89551@xor.obsecurity.org> References: <20060914120055.2F90616A64E@hub.freebsd.org> <200609150722.15348.matt@chronos.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <200609150722.15348.matt@chronos.org.uk> User-Agent: Mutt/1.4.2.2i Cc: 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:25:15 -0000 --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--