summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-03-13 18:33:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-16 08:07:01 +0100
commitc11f334af513145bdcb501fef942177c4b7c839f (patch)
treeb400560dd3ff3e924e760936db131ae836144b7b /meta/recipes-extended
parent69c1a73268d4bd3616447f543b785000462e11fb (diff)
downloadpoky-c11f334af513145bdcb501fef942177c4b7c839f.tar.gz
libpam: update 1.5.3 -> 1.6.0
(From OE-Core rev: 2a194d5dd1d82f233fa28a44412aea1ba4ccd434) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/pam/libpam/0001-examples-Replace-use-of-termio.h-with-termios.h.patch39
-rw-r--r--meta/recipes-extended/pam/libpam/libpam-xtests.patch22
-rw-r--r--meta/recipes-extended/pam/libpam_1.6.0.bb (renamed from meta/recipes-extended/pam/libpam_1.5.3.bb)3
3 files changed, 16 insertions, 48 deletions
diff --git a/meta/recipes-extended/pam/libpam/0001-examples-Replace-use-of-termio.h-with-termios.h.patch b/meta/recipes-extended/pam/libpam/0001-examples-Replace-use-of-termio.h-with-termios.h.patch
deleted file mode 100644
index 95c437df4f..0000000000
--- a/meta/recipes-extended/pam/libpam/0001-examples-Replace-use-of-termio.h-with-termios.h.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 9b96fcfa5748934b8b6a4db4ee25a5e3165905c0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 1 Jul 2023 07:48:17 -0700
4Subject: [PATCH] examples: Replace use of termio.h with termios.h
5
6Fixes build with musl and makes it portable
7
8Upstream-Status: Backport [https://github.com/linux-pam/linux-pam/commit/5374f677e4cae669eb9accf2449178b602e8a40a]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 examples/tty_conv.c | 5 +++--
12 1 file changed, 3 insertions(+), 2 deletions(-)
13
14diff --git a/examples/tty_conv.c b/examples/tty_conv.c
15index 23f0684..db22500 100644
16--- a/examples/tty_conv.c
17+++ b/examples/tty_conv.c
18@@ -6,7 +6,8 @@
19 #include <string.h>
20 #include <errno.h>
21 #include <unistd.h>
22-#include <termio.h>
23+#include <termios.h>
24+#include <sys/ioctl.h>
25 #include <security/pam_appl.h>
26
27 /***************************************
28@@ -16,7 +17,7 @@
29 ***************************************/
30 static void echoOff(int fd, int off)
31 {
32- struct termio tty;
33+ struct termios tty;
34 if (ioctl(fd, TCGETA, &tty) < 0)
35 {
36 fprintf(stderr, "TCGETA failed: %s\n", strerror(errno));
37--
382.41.0
39
diff --git a/meta/recipes-extended/pam/libpam/libpam-xtests.patch b/meta/recipes-extended/pam/libpam/libpam-xtests.patch
index ea145899b4..f2dafa72a5 100644
--- a/meta/recipes-extended/pam/libpam/libpam-xtests.patch
+++ b/meta/recipes-extended/pam/libpam/libpam-xtests.patch
@@ -1,13 +1,21 @@
1This patch is used to create a new sub package libpam-xtests to do more checks. 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.
2 6
3Upstream-Status: Pending 7Upstream-Status: Pending
4 8
5Signed-off-by: Kang Kai <kai.kang@windriver.com> 9Signed-off-by: Kang Kai <kai.kang@windriver.com>
6Index: Linux-PAM-1.3.0/xtests/Makefile.am 10---
7=================================================================== 11 xtests/Makefile.am | 17 ++++++++++++++++-
8--- Linux-PAM-1.3.0.orig/xtests/Makefile.am 12 1 file changed, 16 insertions(+), 1 deletion(-)
9+++ Linux-PAM-1.3.0/xtests/Makefile.am 13
10@@ -7,7 +7,7 @@ AM_CFLAGS = -DLIBPAM_COMPILE -I$(top_src 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 \
11 LDADD = $(top_builddir)/libpam/libpam.la \ 19 LDADD = $(top_builddir)/libpam/libpam.la \
12 $(top_builddir)/libpam_misc/libpam_misc.la 20 $(top_builddir)/libpam_misc/libpam_misc.la
13 21
@@ -16,7 +24,7 @@ Index: Linux-PAM-1.3.0/xtests/Makefile.am
16 24
17 EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \ 25 EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \
18 tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \ 26 tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \
19@@ -51,3 +51,18 @@ EXTRA_PROGRAMS = $(XTESTS) 27@@ -55,3 +55,18 @@ EXTRA_PROGRAMS = $(XTESTS)
20 28
21 xtests: $(XTESTS) run-xtests.sh 29 xtests: $(XTESTS) run-xtests.sh
22 "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS} 30 "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS}
diff --git a/meta/recipes-extended/pam/libpam_1.5.3.bb b/meta/recipes-extended/pam/libpam_1.6.0.bb
index 2a53bb4cc5..e1ed940d1e 100644
--- a/meta/recipes-extended/pam/libpam_1.5.3.bb
+++ b/meta/recipes-extended/pam/libpam_1.6.0.bb
@@ -21,13 +21,12 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/Linux-PAM-${PV}.tar.xz \
21 file://pam.d/common-session-noninteractive \ 21 file://pam.d/common-session-noninteractive \
22 file://pam.d/other \ 22 file://pam.d/other \
23 file://libpam-xtests.patch \ 23 file://libpam-xtests.patch \
24 file://0001-examples-Replace-use-of-termio.h-with-termios.h.patch \
25 file://run-ptest \ 24 file://run-ptest \
26 file://pam-volatiles.conf \ 25 file://pam-volatiles.conf \
27 file://0001-pam_namespace-include-stdint-h.patch \ 26 file://0001-pam_namespace-include-stdint-h.patch \
28 " 27 "
29 28
30SRC_URI[sha256sum] = "7ac4b50feee004a9fa88f1dfd2d2fa738a82896763050cd773b3c54b0a818283" 29SRC_URI[sha256sum] = "fff4a34e5bbee77e2e8f1992f27631e2329bcbf8a0563ddeb5c3389b4e3169ad"
31 30
32DEPENDS = "bison-native flex-native cracklib libxml2-native virtual/crypt" 31DEPENDS = "bison-native flex-native cracklib libxml2-native virtual/crypt"
33 32