Date: Wed, 19 Feb 2003 11:22:40 -0600 (CST) From: "Scot W. Hetzel" <hetzels@westbend.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48465: Wrong perl dependency in bsd.port.mk Message-ID: <200302191722.h1JHMeLq026642@mail.westbend.net>
next in thread | raw e-mail | index | archive | help
>Number: 48465 >Category: ports >Synopsis: Wrong perl dependency in bsd.port.mk >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 Feb 19 09:30:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Scot W. Hetzel >Release: FreeBSD 5.0-CURRENT i386 >Organization: West Bend Internet >Environment: System: FreeBSD Current.westbend.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Feb 17 21:08:41 CST 2003 root@Current.westbend.net:/usr/obj/usr/src/srcC/sys/GENERIC i386 >Description: I installed the following ports, and then created packages of these ports: perl-5.8.0_4 - use.perl port run after installation db3-3.3.11,1 cyrus-sasl-2.1.12 cyrus-imapd-2.1.12 The problem is the package for cyrus-imapd-2.1.12 has the wrong RUN_DEPENDS for perl, the package wants perl-5.6.1_11, but the package was created with perl-5.8.0_4. This causes the installation of the package to fail, due to missing perl-5.6.1_11. >How-To-Repeat: Package the cyrus-imapd2 port with perl-5.8.0_4 installed. ===> Building package for cyrus-imapd-2.1.12 Creating package /usr/ports/packages/All/cyrus-imapd-2.1.12.tbz Registering depends: cyrus-sasl-2.1.12 db3-3.3.11,1 perl-5.6.1_11. Creating bzip'd tar ball in '/usr/ports/packages/All/cyrus-imapd-2.1.12.tbz' >Fix: The below fix corrects this problem with both perl ports (lang/perl5, lang/perl5.8) and modifies the [BUILD,RUN]_DEPENDS in bsd.port.mk. Index: lang/perl5/files/use.perl =================================================================== RCS file: /home/ncvs/ports/lang/perl5/files/use.perl,v retrieving revision 1.6 diff -u -r1.6 use.perl --- lang/perl5/files/use.perl 4 Dec 2002 16:50:04 -0000 1.6 +++ lang/perl5/files/use.perl 19 Feb 2003 17:10:12 -0000 @@ -57,6 +57,7 @@ .undef PERL_VER .undef PERL_VERSION .undef PERL_ARCH +.undef PERL_PORT .undef NOPERL .undef NO_PERL @@ -110,6 +111,7 @@ PERL_VER=%%PERL_VER%% PERL_VERSION=%%PERL_VERSION%% PERL_ARCH=%%PERL_ARCH%% +.undef PERL_PORT NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Index: lang/perl5.8/files/use.perl =================================================================== RCS file: /home/ncvs/ports/lang/perl5.8/files/use.perl,v retrieving revision 1.6 diff -u -r1.6 use.perl --- lang/perl5.8/files/use.perl 21 Jul 2002 17:09:12 -0000 1.6 +++ lang/perl5.8/files/use.perl 19 Feb 2003 17:00:14 -0000 @@ -58,6 +58,7 @@ .undef PERL_VER .undef PERL_VERSION .undef PERL_ARCH +.undef PERL_PORT .undef NOPERL .undef NO_PERL @@ -102,6 +103,7 @@ PERL_VER=%%PERL_VER%% PERL_VERSION=%%PERL_VERSION%% PERL_ARCH=%%PERL_ARCH%% +PERL_PORT=perl5.8 NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo Index: Mk/bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.439 diff -u -r1.439 bsd.port.mk --- Mk/bsd.port.mk 12 Feb 2003 05:15:03 -0000 1.439 +++ Mk/bsd.port.mk 19 Feb 2003 16:56:50 -0000 @@ -248,6 +248,8 @@ # whether a particular dependency is needed, etc. # PERL_ARCH - Directory name of architecture dependent libraries # (value: ${ARCH}-freebsd). +# PERL_PORT - Name of the perl port, this may be overriden in make.conf +# (value: perl5) # SITE_PERL - Directory name where site specific perl packages go. # This value is added to PLIST_SUB. # USE_BISON - Says that the port uses bison for building. @@ -1193,6 +1193,7 @@ PERL_ARCH?= ${ARCH}-freebsd .endif .endif +PERL_PORT?= perl5 SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} @@ -1218,10 +1249,10 @@ PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} PERL= ${LOCALBASE}/bin/perl .if defined(USE_PERL5) || defined(USE_PERL5_BUILD) -BUILD_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5 +BUILD_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT} .endif .if defined(USE_PERL5) || defined(USE_PERL5_RUN) -RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/perl5 +RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT} .endif .endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302191722.h1JHMeLq026642>