ports/54058: Wrong perl dependency when OSVERSION > 500036
Mathieu Arnold
m at absolight.net
Thu Jul 3 11:20:15 UTC 2003
>Number: 54058
>Category: ports
>Synopsis: Wrong perl dependency when OSVERSION > 500036
>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: Thu Jul 03 04:20:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Arnold
>Release: FreeBSD 4.8-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 10 13:45:07 CEST 2003 root at aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386
>Description:
When using perl 5.8 with a 5-CURRENT newer than 500036 (meaning 5.0 and 5.1),
the ports system wrongly adds a dependency to lang/perl5. This patch adds the
right depency depending on the perl you have.
>How-To-Repeat:
>Fix:
--- bsd.port.mk.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.454
diff -u -u -r1.454 bsd.port.mk
--- bsd.port.mk 26 Jun 2003 22:58:21 -0000 1.454
+++ bsd.port.mk 3 Jul 2003 11:08:32 -0000
@@ -1430,10 +1430,18 @@
PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION}
PERL= ${LOCALBASE}/bin/perl
.if defined(USE_PERL5) || defined(USE_PERL5_BUILD)
+.if ${PERL_LEVEL} == 500601
BUILD_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5
+.else
+BUILD_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5.8
+.endif
.endif
.if defined(USE_PERL5) || defined(USE_PERL5_RUN)
+.if ${PERL_LEVEL} == 500601
RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5
+.else
+RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5.8
+.endif
.endif
.endif
--- bsd.port.mk.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list