diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-09-01 13:05:31 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-09-05 22:49:34 -0700 |
| commit | 7f7179c2759900fac41a82d3d778a11e1f2cd3b2 (patch) | |
| tree | 261e7e02836dd65ebc7e9840bff34eddf1fd9c35 | |
| parent | 4cb8febb428328034a2fe3f6a35f71cf44dbf766 (diff) | |
| download | meta-openembedded-7f7179c2759900fac41a82d3d778a11e1f2cd3b2.tar.gz | |
pam-plugin-ccreds: Fix AC_CHECK_LIB for libdb
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb | 4 |
2 files changed, 37 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch b/meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch new file mode 100644 index 0000000000..c5a42359b9 --- /dev/null +++ b/meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 1915754179401b6ee00f0e2ffd844596778e43a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 1 Sep 2022 12:05:02 -0700 | ||
| 4 | Subject: [PATCH] configure: Check for function from libdb during configure | ||
| 5 | |||
| 6 | checking for main in AC_CHECK_LIB is not the right check to find out if | ||
| 7 | a library exists or not, using a function provided by library is more | ||
| 8 | appropriate and will help using newer compilers and autoconf in future | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://github.com/PADL/pam_ccreds/pull/2] | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | configure.in | 4 ++-- | ||
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/configure.in b/configure.in | ||
| 17 | index 3829d9f..3d52933 100644 | ||
| 18 | --- a/configure.in | ||
| 19 | +++ b/configure.in | ||
| 20 | @@ -72,9 +72,9 @@ AC_CHECK_HEADERS(pam/pam_appl.h pam/pam_misc.h pam/pam_modules.h) | ||
| 21 | |||
| 22 | AC_CHECK_HEADERS(db.h) | ||
| 23 | |||
| 24 | -AC_CHECK_LIB(db, main,[LIBS="-ldb $LIBS" found_db_lib=yes],,$LIBS) | ||
| 25 | +AC_CHECK_LIB(db, db_create,[LIBS="-ldb $LIBS" found_db_lib=yes],,$LIBS) | ||
| 26 | if test -z "$found_db_lib"; then | ||
| 27 | - AC_CHECK_LIB(db1, main,[LIBS="-ldb1 $LIBS" found_db_lib=yes],,$LIBS) | ||
| 28 | + AC_CHECK_LIB(db1, db_create,[LIBS="-ldb1 $LIBS" found_db_lib=yes],,$LIBS) | ||
| 29 | fi | ||
| 30 | |||
| 31 | AC_CHECK_LIB(pam, pam_start) | ||
| 32 | -- | ||
| 33 | 2.37.3 | ||
| 34 | |||
diff --git a/meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb b/meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb index 7dd48b3b42..81d0746f89 100644 --- a/meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb +++ b/meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb | |||
| @@ -11,7 +11,9 @@ REQUIRED_DISTRO_FEATURES = "pam" | |||
| 11 | 11 | ||
| 12 | SRCREV = "e2145df09469bf84878e4729b4ecd814efb797d1" | 12 | SRCREV = "e2145df09469bf84878e4729b4ecd814efb797d1" |
| 13 | 13 | ||
| 14 | SRC_URI = "git://github.com/PADL/pam_ccreds;branch=master;protocol=https" | 14 | SRC_URI = "git://github.com/PADL/pam_ccreds;branch=master;protocol=https \ |
| 15 | file://0001-configure-Check-for-function-from-libdb-during-confi.patch \ | ||
| 16 | " | ||
| 15 | 17 | ||
| 16 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
| 17 | 19 | ||
