pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/42155: lang/perl5 vs. DB_File module required for www/ikiwiki
>Number: 42155
>Category: pkg
>Synopsis: lang/perl5 vs. DB_File module required for www/ikiwiki
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 06 09:55:00 +0000 2009
>Originator: Aleksey Cheusov
>Release: Linux 2.6.26.1
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux chel 2.6.26.1 #1 SMP Mon Oct 6 18:40:10 EEST 2008 i686 GNU/Linux
Architecture: i686
>Description:
www/ikiwiki package doesn't work under Linux and says
Error: new(): failed: couldn't load CGI::Session::Driver::db_file:
Can't locate DB_File.pm in @INC
This happens because under Linux lang/perl5 is built without DB_File.pm.
At the same time DB_File.pm is built normally under NetBSD.
The following patch fixes the problem.
>How-To-Repeat:
Build www/ikiwiki under Linux and try to use it.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/Makefile,v
retrieving revision 1.153
diff -u -r1.153 Makefile
--- Makefile 11 Jun 2009 10:35:07 -0000 1.153
+++ Makefile 6 Oct 2009 09:48:53 -0000
@@ -4,7 +4,7 @@
DISTNAME= perl-5.10.0
CATEGORIES= lang devel perl5
-PKGREVISION= 6
+PKGREVISION= 7
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
@@ -74,6 +74,7 @@
CONFIGURE_ARGS+= -Doptimize=${CFLAGS:M*:Q}
CONFIGURE_ARGS+= -Ui_malloc
CONFIGURE_ARGS+= -Uinstallusrbinperl
+CONFIGURE_ARGS+= -Dldflags=${LDFLAGS:Q}\ ${BDB_LIBS:Q}
MAKE_ENV+= LC_ALL="C"
MAKE_JOBS_SAFE= no
@@ -446,4 +447,10 @@
} | ${SED} -e "s,^"${PREFIX:Q}"/,," > ${PLIST_SRC}
.include "packlist.mk"
+
+.include "../../mk/bdb.buildlink3.mk"
+.if !empty(BUILDLINK_INCDIRS.${BDB_TYPE})
+LOCINCPATH+= ${LOCALBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}}
+.endif
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index