Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  3 Jul 2003 13:13:41 +0200 (CEST)
From:      Mathieu Arnold <m@absolight.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        m@absolight.net
Subject:   ports/54058: Wrong perl dependency when OSVERSION > 500036
Message-ID:  <20030703111341.B15EC7DD9@aragorn.reaumur.absolight.net>
Resent-Message-ID: <200307031120.h63BKDiW080298@freefall.freebsd.org>

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

>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@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:



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