diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-03-27 10:31:56 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-29 20:04:10 +0100 |
commit | 46d0202e51b919234bfb1ccc9089e4534a0f4e18 (patch) | |
tree | 9955c173b4ae3d1d29e5c0b7c5fae7ff291c02b8 /meta/recipes-extended/pam | |
parent | c7e6a01374e6c15255ad404fb1fc65c19af07407 (diff) | |
download | poky-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>
Diffstat (limited to 'meta/recipes-extended/pam')
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.3.1.bb | 5 |
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 | ||
36 | DEPENDS = "bison-native flex flex-native cracklib libxml2-native virtual/crypt" | 36 | DEPENDS = "bison-native flex flex-native cracklib libxml2-native virtual/crypt" |
37 | 37 | ||
38 | EXTRA_OECONF = "--with-db-uniquename=_pam \ | 38 | EXTRA_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 | ||
49 | inherit autotools gettext pkgconfig | 48 | inherit autotools gettext pkgconfig |
50 | 49 | ||
50 | PACKAGECONFIG ??= "" | ||
51 | PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," | 51 | PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," |
52 | PACKAGECONFIG[userdb] = "--enable-db=db,--enable-db=no,db," | ||
52 | 53 | ||
53 | PACKAGES += "${PN}-runtime ${PN}-xtests" | 54 | PACKAGES += "${PN}-runtime ${PN}-xtests" |
54 | FILES_${PN} = "${base_libdir}/lib*${SOLIBS}" | 55 | FILES_${PN} = "${base_libdir}/lib*${SOLIBS}" |