perl: make gdbm optional

Recent versions of gdbm are gplv3, so in some scenarios
it is beneficial to not depend on it.

(thanks Ross for leading the way with the db option :)

(From OE-Core rev: 88cf0b10d2e6c7f0cd08838ebe90ecdb95f31b2b)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2019-10-10 13:18:40 +02:00
committed by Richard Purdie
parent c9aa4b061f
commit a4b2958ada

View File

@@ -35,12 +35,13 @@ S = "${WORKDIR}/perl-${PV}"
inherit upstream-version-is-even
DEPENDS += "gdbm zlib virtual/crypt"
DEPENDS += "zlib virtual/crypt"
PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0"
PACKAGECONFIG ??= "bdb"
PACKAGECONFIG ??= "bdb gdbm"
PACKAGECONFIG[bdb] = ",-Ui_db,db"
PACKAGECONFIG[gdbm] = ",-Ui_gdbm,gdbm"
# Don't generate comments in enc2xs output files. They are not reproducible
export ENC2XS_NO_COMMENTS = "1"