Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2007 18:54:13 -0700 (PDT)
From:      Yen-Ming Lee <leeym@db1.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/117414: update bsd.perl.mk: fix USE_PERL5
Message-ID:  <200710230154.l9N1sDYo032578@db1.leeym.com>
Resent-Message-ID: <200710230200.l9N201Fj030218@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         117414
>Category:       ports
>Synopsis:       update bsd.perl.mk: fix USE_PERL5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 02:00:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD db1.leeym.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

The minimal required Perl version can be set in many place (see USE_PERL5_STRING)
Currently, USE_PERL5 will be always overwriten to "yes" if PERL_CONFIGURE is set.

So, in some cases, for example textproc/p5-XML-Atom, USE_PERL5 (and USE_PERL5_STRING) will be overwriten, and mislead want_perl_ver and other internal variables.

The following patch is a kind of workaround, maybe not the best solution.

>How-To-Repeat:

(in perl 5.6 environment)

root@db1:/usr/ports/textproc/p5-XML-Atom [5.5-RELEASE]# make
===>  p5-XML-Atom-0.27 requires Perl  or later, install lang/perl5.8 and try again.
*** Error code 1

Stop in /usr/ports/textproc/p5-XML-Atom.

($want_perl_ver is empty ?!)

>Fix:

	

--- bsd.perl.mk.diff begins here ---
Index: bsd.perl.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.perl.mk,v
retrieving revision 1.7
diff -u -r1.7 bsd.perl.mk
--- bsd.perl.mk	29 Sep 2007 03:46:06 -0000	1.7
+++ bsd.perl.mk	23 Oct 2007 01:27:18 -0000
@@ -209,7 +209,7 @@
 .endif # defined(PERL_MODBUILD)
 
 .if defined(PERL_CONFIGURE)
-USE_PERL5=	yes
+USE_PERL5?=	${USE_PERL5_STRING}
 # Disable AutoInstall from attempting to install from CPAN directly in
 # the case of missing dependencies.  This causes the build to loop on
 # the build cluster asking for interactive input.
--- bsd.perl.mk.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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