pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40138: PLIST.perl is wrong for security/libprelude



>Number:         40138
>Category:       pkg
>Synopsis:       PLIST.perl is wrong for security/libprelude
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 09 08:55:00 +0000 2008
>Originator:     Rumko
>Release:        DragonFly BSD
>Organization:
>Environment:
DragonFly rumko.rumko.net 2.1.0-DEVELOPMENT DragonFly 2.1.0-DEVELOPMENT #312: 
Sat Nov 29 03:10:11 CET 2008     
root%rumko.rumko.net@localhost:/usr/obj/usr/src/sys/MYPRECIOUS  i386
>Description:
PLIST was wrong if perl was present in PKG_OPTIONS ... since libprelude creates 
a packlist, I created a patch that makes use of it.

(couldn't find any variable that would give me a path to site_perl instead to 
vendor_perl, so I also had to add --with-perl-installdirs=vendor to 
CONFIGURE_ARGS)
>How-To-Repeat:

>Fix:
Index: PLIST.perl
===================================================================
RCS file: PLIST.perl
diff -N PLIST.perl
--- PLIST.perl  23 Aug 2006 11:34:59 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
-@comment $NetBSD: PLIST.perl,v 1.1 2006/08/23 11:34:59 shannonjr Exp $
-lib/perl5/site_perl/5.8.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/auto/Prelude/.packlist
-lib/perl5/site_perl/5.8.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/auto/Prelude/Prelude.bs
-lib/perl5/site_perl/5.8.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/auto/Prelude/Prelude.so
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/security/libprelude/options.mk,v
retrieving revision 1.8
diff -u -r1.8 options.mk
--- options.mk  5 Sep 2007 18:58:19 -0000       1.8
+++ options.mk  9 Dec 2008 08:47:56 -0000
@@ -15,10 +15,13 @@
 PLIST_SRC=             ${PKGDIR}/PLIST

 .if !empty(PKG_OPTIONS:Mperl)
-CONFIGURE_ARGS+=       --with-perl=${PERL5:Q}
+CONFIGURE_ARGS+=       --with-perl=${PERL5:Q} --with-perl-installdirs=vendor
 USE_TOOLS+=            perl:run
-PLIST_SRC+=            ${PKGDIR}/PLIST.perl
+
+PERL5_PACKLIST=                ${PERL5_VENDORARCH}/auto/Prelude/.packlist
+PERL5_CONFIGURE=       no
 .include "../../lang/perl5/buildlink3.mk"
+.include "../../lang/perl5/module.mk"
 .else
 CONFIGURE_ARGS+=       --with-perl=no
 .endif



Home | Main Index | Thread Index | Old Index