summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-12-09 22:55:44 -0800
committerKent Fredric <kentnl@gentoo.org>2016-12-27 04:52:18 +1300
commitf0ea8f639d34f881b8325dfa4b8c7d2d876915c4 (patch)
tree3f09a8bbb84018b4f0dc563976f41c5ad500ea76 /dev-lang/perl/perl-5.24.0-r2.ebuild
parentdev-lang/perl: Use more frugal decompression limits re bug #603578 (diff)
downloadgentoo-f0ea8f639d34f881b8325dfa4b8c7d2d876915c4.tar.gz
gentoo-f0ea8f639d34f881b8325dfa4b8c7d2d876915c4.tar.bz2
gentoo-f0ea8f639d34f881b8325dfa4b8c7d2d876915c4.zip
dev-lang/perl: Fix ndbm inclusion
gdbm package provide gdbm and ndbm [aka libgdbm-compat] libraries, but configures libgdbm-compat only if berkdb use flag is defined. Therefore, we can use nbdm only if berkdb gdbm use flags are defined. Without this change, perl compilation fails if gdbm is set but not berkdb. I did not add a new ebuild to be able to see the difference. Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'dev-lang/perl/perl-5.24.0-r2.ebuild')
-rw-r--r--dev-lang/perl/perl-5.24.0-r2.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-lang/perl/perl-5.24.0-r2.ebuild b/dev-lang/perl/perl-5.24.0-r2.ebuild
index 094f88d7c184..cce117c2980b 100644
--- a/dev-lang/perl/perl-5.24.0-r2.ebuild
+++ b/dev-lang/perl/perl-5.24.0-r2.ebuild
@@ -336,7 +336,9 @@ src_configure() {
mydb='U'
if use gdbm ; then
mygdbm='D'
- myndbm='D'
+ if use berkdb ; then
+ myndbm='D'
+ fi
fi
if use berkdb ; then
mydb='D'