From owner-freebsd-ports@FreeBSD.ORG Sat Sep 23 17:47:33 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 99C5416A416 for ; Sat, 23 Sep 2006 17:47:33 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80EB643DA5 for ; Sat, 23 Sep 2006 17:47:11 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 47DECEB3A96 for ; Sun, 24 Sep 2006 01:47:09 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id dtOi38RUgaCA for ; Sun, 24 Sep 2006 01:47:05 +0800 (CST) Received: from [192.168.1.32] (unknown [221.219.156.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 168C7EB31C3 for ; Sun, 24 Sep 2006 01:47:04 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to: subject:x-enigmail-version:content-type; b=admL8+ayHCh8m7RpDYTgGpZz1a99ooM7cc979+mujNhT/WV62tzyWT5v7Ih7x4LKB 1oDQua4LS9/s0PPpcNtsg== Message-ID: <45157308.5020600@delphij.net> Date: Sun, 24 Sep 2006 01:46:48 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig6016711B7A33E82DDB548308" Cc: Subject: Proper way to detect build-time configuration if all files are under the same name? 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: Sat, 23 Sep 2006 17:47:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6016711B7A33E82DDB548308 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, In ports/102613, the submitter has pointed out a problem that the build infrastructure can not detect the present OpenLDAP configuration at build time, and thus causing dependency problem when being rebuilt. This occurs on some other ports as well. Is it possible to make the package registration stage to detect actual port name that has installed the specified dependency file? Or is there any way to solve the problem? Long version: Say, we have a file, called "${PREFIX}/foo/bar" installed by a port foo-1.0. Another port, say, foo-feature-1.0, also installs that file. In the dependency of third port, say, bar-1.0, we define: RUN_DEPENDS=3D ${PREFIX}/foo/bar:${PORTSDIR}/net/foo then the ports infrastructure would consider net/foo as dependency, regardless whether foo or foo-feature is acutaly installed. Of course it is possible to install a file with the name ${PREFIX}/foo/bar-feature but I think that's too dirty a hack... Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig6016711B7A33E82DDB548308 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFFXMIOfuToMruuMARA3iQAJwJs6xakOIxfzFdObEMPZcycTx1AwCfU1pd 2pBpsp2THC6g1EMOwSR/olQ= =2pAe -----END PGP SIGNATURE----- --------------enig6016711B7A33E82DDB548308--