diff options
author | brook <brook@pkgsrc.org> | 2011-09-17 18:51:35 +0000 |
---|---|---|
committer | brook <brook@pkgsrc.org> | 2011-09-17 18:51:35 +0000 |
commit | d20e33ac80dca0d78c30f3e4687bb257efcef060 (patch) | |
tree | 0cb28366847793dd314ee205b65295a8eca35ddd /lang/perl5 | |
parent | add2dde1aad05232c7d21ef6301f6f3b769e884e (diff) | |
download | pkgsrc-d20e33ac80dca0d78c30f3e4687bb257efcef060.tar.gz |
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.
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/Makefile | 4 | ||||
-rw-r--r-- | lang/perl5/files/cpan-DB_File-hints-netbsd.pl | 6 |
2 files changed, 9 insertions, 1 deletions
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} = ['']; |