From owner-freebsd-ports@FreeBSD.ORG Fri Feb 15 13:16:46 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F82C16A468 for ; Fri, 15 Feb 2008 13:16:46 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.freebsd.org (Postfix) with ESMTP id D1B6E13C4E5 for ; Fri, 15 Feb 2008 13:16:45 +0000 (UTC) (envelope-from gergely.czuczy@harmless.hu) Received: from localhost (marvin-mail [192.168.0.2]) by marvin.harmless.hu (Postfix) with ESMTP id 5C9D47BFE5E for ; Fri, 15 Feb 2008 13:52:36 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.5.3 (20071212) (Debian) at harmless.hu Received: from marvin.harmless.hu ([192.168.0.2]) by localhost (marvin.harmless.hu [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id OZm23usPlMW2 for ; Fri, 15 Feb 2008 13:52:36 +0100 (CET) Received: from marvin.harmless.hu (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id D13AC7BFD01 for ; Fri, 15 Feb 2008 13:52:35 +0100 (CET) Date: Fri, 15 Feb 2008 13:52:35 +0100 From: Gergely CZUCZY To: ports@freebsd.org Message-ID: <20080215125235.GA58646@harmless.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=x-unknown; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: pkg-plist and WWWDIR 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 Feb 2008 13:16:46 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello I've been updating sysutils/nut from 2.2.0 to .1, and I've hit some issues there. First of all, bsd.port.mk sets WWWDIR for the actual port, which is very nice of it. OTOH the CGI support is optional in nut, which results in a conditional entry in pkg-plist. the NUT_CGI plist variable is only set if the CGI support is enabled, and WWWDIR is an absolute path. If the CGI support is enabled, then NUT_CGI is set to an empty string. And WWWDIR is added to the PKG_PLIST variables. The resulting lines in pkg-plist is the following: %%NUT_CGI%%%%WWWDIR%%/file And when the pkg-plist is processed it preprends /usr/local, since that's the PREFIX, so it will end up looking for ${PREFIX}/${WWWDIR}, which will result in /usr/local/usr/local/www/nut/file . I've checked other ports, %%WWWDIR%% is used directly at other places, so I think when an entry begins with a slash that will transform to an absolute path, without prepending the PREFIX. As i think the conditional %%NUT_CGI%% messes this auto-logic up, and the double-prefix happens. For now I've fixed this with a workaround, by not setting the WWWDIR plist variable to WWWDIR, but to "www/nut". I don't consider this a solution, but just a workaround. My qestions are, how should these situations be handled? Shouldn't bsd.port.mk export a version for WWWDIR suitable for PLIST variables? Sincerely, Gergely Czuczy mailto: gergely.czuczy@harmless.hu --=20 Weenies test. Geniuses solve problems that arise. --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) owFdVc1uW0UUDo0AaaQuWrFgeVTVRKi+104CSZQoClXauBY/jRKjIHVRje8d+049 d+Z2fuK4USVWCAmQUFgifl4A1AVIXXSD2LHgBXgAHoAX4Jy5juMkysI+c36+75zv HH97fXHh2o2/X/z26M7XZ9+/9ssbov9uGbzXw6Tk9ljqZLndXk7e31h7by1ZTdbW N7KN1fV8hff7q+3O71/d3DXaC+2T3qQSm+DFiW9Viku9BVnBrRN+O/hBssHO/e5J VxknvTR6E6RWUovZW89y7QbCJvd1ZnKph5vwNBgv8qSyUnveV4KxB0Ipw1h36VhA XwgNocq5R2dwExe8VK6lg4eBNSWspCt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