ports/117414: update bsd.perl.mk: fix USE_PERL5
Yen-Ming Lee
leeym at db1.leeym.com
Tue Oct 23 02:00:01 UTC 2007
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list