From owner-freebsd-ports-bugs Tue Feb 4 4:30:15 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D2B837B401 for ; Tue, 4 Feb 2003 04:30:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA14443FA3 for ; Tue, 4 Feb 2003 04:30:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h14CUDNS069636 for ; Tue, 4 Feb 2003 04:30:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h14CUDRJ069635; Tue, 4 Feb 2003 04:30:13 -0800 (PST) Date: Tue, 4 Feb 2003 04:30:13 -0800 (PST) Message-Id: <200302041230.h14CUDRJ069635@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Anton Berezin Subject: Re: ports/47897: PERL_LEVEL doesn't work Reply-To: Anton Berezin Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/47897; it has been noted by GNATS. From: Anton Berezin To: Edwin Groothuis Cc: FreeBSD-gnats-submit@FreeBSD.org, alane@FreeBSD.org Subject: Re: ports/47897: PERL_LEVEL doesn't work Date: Tue, 4 Feb 2003 13:29:13 +0100 On Tue, Feb 04, 2003 at 10:19:12PM +1100, Edwin Groothuis wrote: > PERL_LEVEL doesn't work: > [/usr/ports/www/apache13] edwin@k7>make -V PERL_LEVEL > 0 > > The reason: (line 779 in Mk/bsd.ports.mk) > .if !defined(PERL_LEVEL) && defined(PERL_VERSION) > > PERL_VERSION is there not defined yet, it happens later on. > > So then, move this set of lines to where PERL_VERSION is defined. > But then, that section isn't processed by an ".include ". > So move the whole detecting of PERL_VERSION in the pre-section. Though you are undoubtedly correct, I'd like to note that PERL_LEVEL works for the purpose it is being normally used, since 1) the only perl left in the base system in any recent version of FreeBSD is 5.005_03, and 2) the lang/perl5* ports set various PERL_ variables in /etc/make.conf, thus making PERL_VERSION defined during the above line processing. In this way, it is always possible to distinguish between >= 5.6 or < 5.6, which is the most clear-cut boundary among existing perl5 varieties. =Anton. -- | Anton Berezin | FreeBSD: The power to serve | | catpipe Systems ApS _ _ |_ | http://www.FreeBSD.org | | tobez@catpipe.net (_(_|| | tobez@FreeBSD.org | | +45 7021 0050 | Private: tobez@tobez.org | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message