Skip to content

Commit

Permalink
dev-lang/perl: Fix ndbm inclusion
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gwendalcr authored and kentfredric committed Dec 26, 2016
1 parent 2c1ec46 commit f0ea8f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dev-lang/perl/perl-5.22.3_rc4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,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'
Expand Down
4 changes: 3 additions & 1 deletion dev-lang/perl/perl-5.24.0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion dev-lang/perl/perl-5.24.1_rc4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,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'
Expand Down

0 comments on commit f0ea8f6

Please sign in to comment.