diff options
| -rw-r--r-- | meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch | 40 | ||||
| -rw-r--r-- | meta/recipes-extended/pam/libpam_1.7.1.bb (renamed from meta/recipes-extended/pam/libpam_1.7.0.bb) | 3 |
2 files changed, 1 insertions, 42 deletions
diff --git a/meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch b/meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch deleted file mode 100644 index ef087ffc06..0000000000 --- a/meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | From 9b5182d4781bcd6fb37a4030faf325965fde3e93 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Thu, 28 Nov 2024 20:32:17 +0100 | ||
| 4 | Subject: [PATCH] meson: correct check for existence of two preprocessor | ||
| 5 | defines | ||
| 6 | |||
| 7 | sizeof is meant for *types*, and in case of cross compiling | ||
| 8 | the test program produced by it has incorrect syntax | ||
| 9 | __NR_keyctl something; | ||
| 10 | and will always fail to compile. | ||
| 11 | |||
| 12 | * meson.build: Use cc.get_define() instead of cc.sizeof() to check for | ||
| 13 | preprocessor symbols. | ||
| 14 | |||
| 15 | Co-authored-by: Dmitry V. Levin <ldv@strace.io> | ||
| 16 | Upstream-Status: Backport [https://github.com/linux-pam/linux-pam/pull/861] | ||
| 17 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 18 | --- | ||
| 19 | meson.build | 4 ++-- | ||
| 20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/meson.build b/meson.build | ||
| 23 | index f6a7dafe9..307fed0aa 100644 | ||
| 24 | --- a/meson.build | ||
| 25 | +++ b/meson.build | ||
| 26 | @@ -198,12 +198,12 @@ foreach ident: check_functions | ||
| 27 | endif | ||
| 28 | endforeach | ||
| 29 | |||
| 30 | -enable_pam_keyinit = cc.sizeof('__NR_keyctl', prefix: '#include <sys/syscall.h>') > 0 | ||
| 31 | +enable_pam_keyinit = cc.get_define('__NR_keyctl', prefix: '#include <sys/syscall.h>') != '' | ||
| 32 | |||
| 33 | if get_option('mailspool') != '' | ||
| 34 | cdata.set_quoted('PAM_PATH_MAILDIR', get_option('mailspool')) | ||
| 35 | else | ||
| 36 | - have = cc.sizeof('_PATH_MAILDIR', prefix: '#include <paths.h>') > 0 | ||
| 37 | + have = cc.get_define('_PATH_MAILDIR', prefix: '#include <paths.h>') != '' | ||
| 38 | cdata.set('PAM_PATH_MAILDIR', have ? '_PATH_MAILDIR' : '"/var/spool/mail"') | ||
| 39 | endif | ||
| 40 | |||
diff --git a/meta/recipes-extended/pam/libpam_1.7.0.bb b/meta/recipes-extended/pam/libpam_1.7.1.bb index 4abc52bd93..68857c5138 100644 --- a/meta/recipes-extended/pam/libpam_1.7.0.bb +++ b/meta/recipes-extended/pam/libpam_1.7.1.bb | |||
| @@ -22,10 +22,9 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/Linux-PAM-${PV}.tar.xz \ | |||
| 22 | file://pam.d/other \ | 22 | file://pam.d/other \ |
| 23 | file://run-ptest \ | 23 | file://run-ptest \ |
| 24 | file://pam-volatiles.conf \ | 24 | file://pam-volatiles.conf \ |
| 25 | file://0001-meson.build-correct-check-for-existence-of-two-prepr.patch \ | ||
| 26 | " | 25 | " |
| 27 | 26 | ||
| 28 | SRC_URI[sha256sum] = "57dcd7a6b966ecd5bbd95e1d11173734691e16b68692fa59661cdae9b13b1697" | 27 | SRC_URI[sha256sum] = "21dbcec6e01dd578f14789eac9024a18941e6f2702a05cf91b28c232eeb26ab0" |
| 29 | 28 | ||
| 30 | DEPENDS = "bison-native flex-native libxml2-native virtual/crypt" | 29 | DEPENDS = "bison-native flex-native libxml2-native virtual/crypt" |
| 31 | 30 | ||
