summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-03-27 10:31:56 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-29 20:04:10 +0100
commit46d0202e51b919234bfb1ccc9089e4534a0f4e18 (patch)
tree9955c173b4ae3d1d29e5c0b7c5fae7ff291c02b8
parentc7e6a01374e6c15255ad404fb1fc65c19af07407 (diff)
downloadpoky-46d0202e51b919234bfb1ccc9089e4534a0f4e18.tar.gz
libpam: Add userdb packageconfig
Add userdb packageconfig to control the building of the pam_userdb.so module. This depends on dbm support being compiled in for the berkley db package. Also, remove "--with-db-uniquename=_pam" from EXTRA_OECONF. It makes the checks for libdb fail because it searches for the wrong symbols in libdb (and libdb was not configured with --with-uniquename=_pam option). db.do_configure: checking if --with-uniquename=NAME option specified... no libpam.do_configure: checking for db_create_pam... no checking for db_create... no checking for dbm_store_pam... no checking for dbm_store... no checking for dbm_store in -lndbm... no (From OE-Core rev: 3130f43c51fb9b2aed9bb7805a820ea90e68276a) Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/pam/libpam_1.3.1.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.3.1.bb b/meta/recipes-extended/pam/libpam_1.3.1.bb
index ac8694ec26..bc72afe6ad 100644
--- a/meta/recipes-extended/pam/libpam_1.3.1.bb
+++ b/meta/recipes-extended/pam/libpam_1.3.1.bb
@@ -35,8 +35,7 @@ SRC_URI_append_libc-musl = " file://0001-Add-support-for-defining-missing-funcit
35 35
36DEPENDS = "bison-native flex flex-native cracklib libxml2-native virtual/crypt" 36DEPENDS = "bison-native flex flex-native cracklib libxml2-native virtual/crypt"
37 37
38EXTRA_OECONF = "--with-db-uniquename=_pam \ 38EXTRA_OECONF = "--includedir=${includedir}/security \
39 --includedir=${includedir}/security \
40 --libdir=${base_libdir} \ 39 --libdir=${base_libdir} \
41 --disable-nis \ 40 --disable-nis \
42 --disable-regenerate-docu \ 41 --disable-regenerate-docu \
@@ -48,7 +47,9 @@ S = "${WORKDIR}/Linux-PAM-${PV}"
48 47
49inherit autotools gettext pkgconfig 48inherit autotools gettext pkgconfig
50 49
50PACKAGECONFIG ??= ""
51PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," 51PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit,"
52PACKAGECONFIG[userdb] = "--enable-db=db,--enable-db=no,db,"
52 53
53PACKAGES += "${PN}-runtime ${PN}-xtests" 54PACKAGES += "${PN}-runtime ${PN}-xtests"
54FILES_${PN} = "${base_libdir}/lib*${SOLIBS}" 55FILES_${PN} = "${base_libdir}/lib*${SOLIBS}"