summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pam/libpam
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-12-04 07:49:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-05 17:07:10 +0000
commit377066dabd5eb8545645195ee231eb1017517fe4 (patch)
tree1a08bcbb7c487b09229e3281464e23279bd78dba /meta/recipes-extended/pam/libpam
parent240cd29b3ced645ce0f3ea17de840a42a517d33d (diff)
downloadpoky-377066dabd5eb8545645195ee231eb1017517fe4.tar.gz
libpam: update 1.6.1 -> 1.7.0
Change from autotools to meson. ptest support is removed for now, as pam-ptest isn't executed on the autobuilder. Adjust packaging as pam now installs everything into /usr rather than /. (From OE-Core rev: 00eb730291f9630eb70480d37ed48fbadecc547a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pam/libpam')
-rw-r--r--meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch40
-rw-r--r--meta/recipes-extended/pam/libpam/libpam-xtests.patch45
2 files changed, 40 insertions, 45 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
new file mode 100644
index 0000000000..ef087ffc06
--- /dev/null
+++ b/meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch
@@ -0,0 +1,40 @@
1From 9b5182d4781bcd6fb37a4030faf325965fde3e93 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Thu, 28 Nov 2024 20:32:17 +0100
4Subject: [PATCH] meson: correct check for existence of two preprocessor
5 defines
6
7sizeof is meant for *types*, and in case of cross compiling
8the test program produced by it has incorrect syntax
9 __NR_keyctl something;
10and will always fail to compile.
11
12* meson.build: Use cc.get_define() instead of cc.sizeof() to check for
13preprocessor symbols.
14
15Co-authored-by: Dmitry V. Levin <ldv@strace.io>
16Upstream-Status: Backport [https://github.com/linux-pam/linux-pam/pull/861]
17Signed-off-by: Alexander Kanavin <alex@linutronix.de>
18---
19 meson.build | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/meson.build b/meson.build
23index 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/libpam-xtests.patch b/meta/recipes-extended/pam/libpam/libpam-xtests.patch
deleted file mode 100644
index f2dafa72a5..0000000000
--- a/meta/recipes-extended/pam/libpam/libpam-xtests.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1From 060726f7e60c8ecb5bf50fd776910b290d9a0a69 Mon Sep 17 00:00:00 2001
2From: Kang Kai <kai.kang@windriver.com>
3Date: Tue, 19 Jul 2011 17:08:31 +0800
4Subject: [PATCH] This patch is used to create a new sub package libpam-xtests
5 to do more checks.
6
7Upstream-Status: Pending
8
9Signed-off-by: Kang Kai <kai.kang@windriver.com>
10---
11 xtests/Makefile.am | 17 ++++++++++++++++-
12 1 file changed, 16 insertions(+), 1 deletion(-)
13
14diff --git a/xtests/Makefile.am b/xtests/Makefile.am
15index acf9746..9826c9f 100644
16--- a/xtests/Makefile.am
17+++ b/xtests/Makefile.am
18@@ -8,7 +8,7 @@ AM_CFLAGS = -DLIBPAM_COMPILE -I$(top_srcdir)/libpam/include \
19 LDADD = $(top_builddir)/libpam/libpam.la \
20 $(top_builddir)/libpam_misc/libpam_misc.la
21
22-CLEANFILES = *~ $(XTESTS)
23+CLEANFILES = *~
24
25 EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \
26 tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \
27@@ -55,3 +55,18 @@ EXTRA_PROGRAMS = $(XTESTS)
28
29 xtests: $(XTESTS) run-xtests.sh
30 "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS}
31+
32+all: $(XTESTS)
33+
34+install: install_xtests
35+
36+install_xtests:
37+ $(INSTALL) -d $(DESTDIR)$(pkgdatadir)/xtests
38+ for file in $(EXTRA_DIST) ; do \
39+ $(INSTALL) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \
40+ done
41+ for file in $(XTESTS); do \
42+ $(INSTALL) .libs/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \
43+ done
44+
45+.PHONY: all install_xtests