From 1c9e71b583b32c845f1e68192f0361b373f4ca74 Mon Sep 17 00:00:00 2001 From: brook Date: Sat, 17 Sep 2011 18:51:35 +0000 Subject: The CPAN module DB_File tries to link against -ldb, but NetBSD does not provide a separate library so compilation fails. Add a hints file to correct the list of libraries used on NetBSD. --- lang/perl5/Makefile | 4 +++- lang/perl5/files/cpan-DB_File-hints-netbsd.pl | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 lang/perl5/files/cpan-DB_File-hints-netbsd.pl (limited to 'lang/perl5') diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index de31178e1c1..211d39fe42d 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.173 2011/08/05 18:06:14 adam Exp $ +# $NetBSD: Makefile,v 1.174 2011/09/17 18:51:35 brook Exp $ .include "license.mk" .include "Makefile.common" @@ -313,6 +313,8 @@ SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" post-extract: cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh + cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \ + ${WRKSRC}/cpan/DB_File/hints/netbsd.pl pre-configure: cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \; diff --git a/lang/perl5/files/cpan-DB_File-hints-netbsd.pl b/lang/perl5/files/cpan-DB_File-hints-netbsd.pl new file mode 100644 index 00000000000..aa2de3357cd --- /dev/null +++ b/lang/perl5/files/cpan-DB_File-hints-netbsd.pl @@ -0,0 +1,6 @@ +# $NetBSD: cpan-DB_File-hints-netbsd.pl,v 1.1 2011/09/17 18:51:36 brook Exp $ + +# cpan/DB_File: +# NetBSD does not provide -ldb, so avoid linking to it + +$self->{LIBS} = ['']; -- cgit v1.2.3