ports/65554: Broken handling of non-system perl on -stable
Ade Lovett
ade at FreeBSD.org
Thu Apr 15 04:50:19 UTC 2004
>Number: 65554
>Category: ports
>Synopsis: Broken handling of non-system perl on -stable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 14 21:50:18 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Ade Lovett
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
Any 4.x system, say, for the sake of argument, 4.10-BETA, and access to
a 5.x system.
>Description:
Dependencies not registered on ports version of perl if installed and
being used (via use.perl port) on any 4.x system.
>How-To-Repeat:
See above.
>Fix:
Index: bsd.port.mk
===================================================================
RCS file: /home/FreeBSD/cvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.486
diff -u -1 -r1.486 bsd.port.mk
--- bsd.port.mk 3 Apr 2004 23:59:50 -0000 1.486
+++ bsd.port.mk 15 Apr 2004 04:27:58 -0000
@@ -1218,3 +1218,3 @@
-.if exists(/usr/bin/perl5) && ${OSVERSION} >= 300000 && ${OSVERSION} < 500036
+.if ${PERL_LEVEL} < 500600
PERL5= /usr/bin/perl${PERL_VERSION}
@@ -1768,10 +1768,3 @@
-.if exists(/usr/bin/perl5) && ${OSVERSION} >= 300000 && ${OSVERSION} < 500036
-.if !exists(/usr/bin/perl${PERL_VERSION}) && ( defined(USE_PERL5) || \
- defined(USE_PERL5_BUILD) || defined(USE_PERL5_RUN) )
-check-depends::
- @${ECHO_CMD} "Dependency error: you don't have the right version of perl in /usr/bin."
- @${FALSE}
-.endif
-.else
+.if ${PERL_LEVEL} >= 500600
.if defined(USE_PERL5) || defined(USE_PERL5_BUILD)
With this, I now see:
[root at 4x:ports/converters/p5-MIME-Base64] 27# use.perl system
[root at 4x:ports/converters/p5-MIME-Base64] 28# make -V RUN_DEPENDS
[root at 4x:ports/converters/p5-MIME-Base64] 29# use.perl port
[root at 4x:ports/converters/p5-MIME-Base64] 30# make -V RUN_DEPENDS
/usr/local/bin/perl5.8.2:/usr/ports/lang/perl5.8
which is expected behavior. -current is not affected by this.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list