From owner-freebsd-ports@FreeBSD.ORG Tue Sep 26 15:53:17 2006 Return-Path: X-Original-To: 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 4D8E016A415; Tue, 26 Sep 2006 15:53:17 +0000 (UTC) (envelope-from leeym@utopia.leeym.com) Received: from msr18.hinet.net (msr18.hinet.net [168.95.4.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9161343D9B; Tue, 26 Sep 2006 15:52:06 +0000 (GMT) (envelope-from leeym@utopia.leeym.com) Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52]) by msr18.hinet.net (8.9.3/8.9.3) with ESMTP id XAA28085; Tue, 26 Sep 2006 23:51:59 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by utopia.leeym.com (Postfix) with ESMTP id 1F6E3B29FD8; Tue, 26 Sep 2006 23:51:59 +0800 (CST) X-Virus-Scanned: by amavisd-new at leeym.com Received: from utopia.leeym.com ([127.0.0.1]) by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n+7OwxfVFcTL; Tue, 26 Sep 2006 23:51:51 +0800 (CST) Received: by utopia.leeym.com (Postfix, from userid 1000) id 4F95FB29FD3; Tue, 26 Sep 2006 23:51:51 +0800 (CST) Date: Tue, 26 Sep 2006 23:51:51 +0800 From: Yen-Ming Lee To: Alex Dupre Message-ID: <20060926155150.GA1355@utopia.leeym.com> Mail-Followup-To: Alex Dupre , ports@FreeBSD.org, erwin@FreeBSD.org References: <20060926075717.GN10626@droso.net> <4518E2A9.2020108@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <4518E2A9.2020108@FreeBSD.org> X-Fingerprint: FE 7E 04 56 FC D7 24 21 B9 3B 53 06 E8 93 B5 81 X-Public-Key: http://www.leeym.com/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: ports@FreeBSD.org, erwin@FreeBSD.org Subject: Re: PHP_VER magic too smart for its own good 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: Tue, 26 Sep 2006 15:53:17 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=big5 Content-Disposition: inline On Tue, Sep 26, 2006 at 10:19:53AM +0200, Alex Dupre wrote: > Erwin Lansing ha scritto: > >After leeym added graphics/php4-imlib2 slave port to php5-imlib2, I've > >been getting a warning in INDEX and an error in the modules check > >script. This is due to bsd.php.mk and the slave port both trying to > >accomplish the same result via different ways, and thus outsmarting > >eachother when php4 is installed on a system. > > The problem is here: > > PKGNAMEPREFIX= php${PHP_VER}- > > This is the only pecl port that has a master/slave (php5/php4) approach, > instead of the unique pecl- pkgprefix. I don't like this difference, but > I'm not against it. But if you want static master/slave ports, you need > to statically define PKGNAMEPREFIX to php4- and php5- in each port Makefile. Hi, Erwin and Alex, Sorry that I didn't test enough scenarios to make sure it works correctly in different environments. I just tried to build them from empty /usr/local. I replaced PKGNAMEPREFIX with the fixed ones, and set IGNORE_WITH_PHP and DEFAULT_PHP_VER to avoid confusion. If there're still some problems about the already-installed-php-version and INDEX generation, please let me know. Maybe I'll decouple the master/slave, or just remove php4 part (I myself use php5.) Regards, -- Yen-Ming Lee [utf7:+Z05fZWYO] | KeyID:0x5EB52E51 | Taipei, Taiwan --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iQCVAwUBRRlMlsnMx0NetS5RAQJ3TgP6Aunp8yEyLCsW2YwzOMyeYU0aS571Dy1Q usHG97Z1/HvG/f/vQJtNRDQ2O4HqmEyEHjJQQKzgUak1Iq9wB2uKgMFupGAf2HOd LnnFW4cSyWgHSxxSYSfVE33yHTvUtWLrewcJ+2/nq55x5TKoswNSpVbam+J+w5MF +cwdx0mJ/vQ= =nmoA -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--