Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2003 04:30:13 -0800 (PST)
From:      Anton Berezin <tobez@tobez.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/47897: PERL_LEVEL doesn't work
Message-ID:  <200302041230.h14CUDRJ069635@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/47897; it has been noted by GNATS.

From: Anton Berezin <tobez@tobez.org>
To: Edwin Groothuis <edwin@mavetju.org>
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 <bsd.ports.pre.mk>".
 > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302041230.h14CUDRJ069635>