summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@eng.windriver.com>2025-01-03 17:24:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-04 12:34:04 +0000
commitbb719cb783ef60fa5597105548becacf5c1237b7 (patch)
treec685e654d71fba2fe4ae25cb30c6cc2e6fe6ddd2 /meta/recipes-core/util-linux
parente2e26a16190f7915e57f3c4df6c7bfc6368db109 (diff)
downloadpoky-bb719cb783ef60fa5597105548becacf5c1237b7.tar.gz
util-linux: replace local patch with upstream patch
There is a better solution upstream to fix the pam_lastlog2 installation issue[1]. Backport this patch to replace the local patch. [1] https://github.com/util-linux/util-linux/pull/3173 (From OE-Core rev: 1c984d0a06cdcba49f8b0acd12edebfeaedf3aa5) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r--meta/recipes-core/util-linux/util-linux.inc2
-rw-r--r--meta/recipes-core/util-linux/util-linux/0001-Revert-autotools-make-pam-install-path-configurable.patch65
-rw-r--r--meta/recipes-core/util-linux/util-linux/0001-autotools-fix-securedir-and-pam_lastlog2-install.patch82
3 files changed, 83 insertions, 66 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 1c066631f3..1dc30c0535 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -38,7 +38,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
38 file://display_testname_for_subtest.patch \ 38 file://display_testname_for_subtest.patch \
39 file://avoid_parallel_tests.patch \ 39 file://avoid_parallel_tests.patch \
40 file://fcntl-lock.c \ 40 file://fcntl-lock.c \
41 file://0001-Revert-autotools-make-pam-install-path-configurable.patch \ 41 file://0001-autotools-fix-securedir-and-pam_lastlog2-install.patch \
42 file://libfdisk-cfdisk-and-sfdisk-sector-size-improvements.patch \ 42 file://libfdisk-cfdisk-and-sfdisk-sector-size-improvements.patch \
43 " 43 "
44 44
diff --git a/meta/recipes-core/util-linux/util-linux/0001-Revert-autotools-make-pam-install-path-configurable.patch b/meta/recipes-core/util-linux/util-linux/0001-Revert-autotools-make-pam-install-path-configurable.patch
deleted file mode 100644
index e9f01fd0be..0000000000
--- a/meta/recipes-core/util-linux/util-linux/0001-Revert-autotools-make-pam-install-path-configurable.patch
+++ /dev/null
@@ -1,65 +0,0 @@
1From af5b58cb77fc8e2e2e2f26aadef4b773b950eafc Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 21 Aug 2024 07:50:57 -0700
4Subject: [PATCH] Revert "autotools: make pam install path configurable"
5
6This reverts commit 0539b1ebd26f6a168b822374d7b167f8ef4a1997.
7
8If people want to use /lib instead of /usr/lib as $(libdir) and want
9lastlog2 pam module installed in /lib/security, there's no way to do so.
10
11Beside, we have:
12pam_lastlog2/meson.build: pamlibdir = get_option('libdir') / 'security'
13
14So things are not in sync between Makemodule.am and meson.build with
15the original commit.
16
17Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/3173]
18
19Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
20---
21 Makefile.am | 1 -
22 configure.ac | 3 ---
23 pam_lastlog2/src/Makemodule.am | 3 ++-
24 3 files changed, 2 insertions(+), 5 deletions(-)
25
26diff --git a/Makefile.am b/Makefile.am
27index 54e0fd497..3f801c686 100644
28--- a/Makefile.am
29+++ b/Makefile.am
30@@ -56,7 +56,6 @@ usrsbin_exec_PROGRAMS =
31 man_MANS =
32 pkgconfig_DATA =
33 usrlib_exec_LTLIBRARIES =
34-usrsecurelib_exec_LTLIBRARIES =
35 bin_PROGRAMS =
36 sbin_PROGRAMS =
37 dist_usrbin_exec_SCRIPTS =
38diff --git a/configure.ac b/configure.ac
39index 82d0e4bf9..35a70aba4 100644
40--- a/configure.ac
41+++ b/configure.ac
42@@ -120,9 +120,6 @@ AS_CASE([$libdir],
43 )
44 AC_SUBST([usrlib_execdir])
45
46-usrsecurelib_execdir='${usrlib_execdir}/security'
47-AC_SUBST([usrsecurelib_execdir])
48-
49 # static configuration maintaned by packages (e.g. /usr/lib)
50 AC_ARG_VAR([SYSCONFSTATICDIR],
51 [Path to static system configuration, default ${prefix}/lib])
52diff --git a/pam_lastlog2/src/Makemodule.am b/pam_lastlog2/src/Makemodule.am
53index 6d2365378..f9a9b6b41 100644
54--- a/pam_lastlog2/src/Makemodule.am
55+++ b/pam_lastlog2/src/Makemodule.am
56@@ -1,4 +1,5 @@
57-usrsecurelib_exec_LTLIBRARIES += pam_lastlog2.la
58+securelibdir = $(libdir)/security
59+securelib_LTLIBRARIES = pam_lastlog2.la
60
61 pam_lastlog2_la_SOURCES = \
62 pam_lastlog2/src/pam_lastlog2.c
63--
642.25.1
65
diff --git a/meta/recipes-core/util-linux/util-linux/0001-autotools-fix-securedir-and-pam_lastlog2-install.patch b/meta/recipes-core/util-linux/util-linux/0001-autotools-fix-securedir-and-pam_lastlog2-install.patch
new file mode 100644
index 0000000000..272e574a77
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/0001-autotools-fix-securedir-and-pam_lastlog2-install.patch
@@ -0,0 +1,82 @@
1From f912fb1bbb0ff5af2736d154347a3b9fc40476eb Mon Sep 17 00:00:00 2001
2From: Karel Zak <kzak@redhat.com>
3Date: Tue, 27 Aug 2024 12:00:21 +0200
4Subject: [PATCH] autotools: fix securedir and pam_lastlog2 install
5
6Addresses: https://github.com/util-linux/util-linux/pull/3173
7Signed-off-by: Karel Zak <kzak@redhat.com>
8
9Upstream-Status: Backport
10[https://github.com/util-linux/util-linux/commit/9c787eaac43f5f01146f792b0239f587e4b81202]
11
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 Makefile.am | 6 +++---
15 configure.ac | 6 +++---
16 pam_lastlog2/src/Makemodule.am | 2 +-
17 3 files changed, 7 insertions(+), 7 deletions(-)
18
19diff --git a/Makefile.am b/Makefile.am
20index ee2d553..a5dcaea 100644
21--- a/Makefile.am
22+++ b/Makefile.am
23@@ -56,7 +56,7 @@ usrsbin_exec_PROGRAMS =
24 man_MANS =
25 pkgconfig_DATA =
26 usrlib_exec_LTLIBRARIES =
27-usrsecurelib_exec_LTLIBRARIES =
28+securelib_exec_LTLIBRARIES =
29 bin_PROGRAMS =
30 sbin_PROGRAMS =
31 dist_usrbin_exec_SCRIPTS =
32@@ -155,11 +155,11 @@ EXTRA_DIST += \
33 # pylibmountexec module must be installed after usrlib_exec libraries,
34 # otherwise the libtool relink step will fail to find libmount.la and
35 # will try -lmount which is possibly not available.
36-# The same for usrsecurelib_exec and liblastlog2.la
37+# The same for securelib_exec and liblastlog2.la
38 #
39 # So introduce this dependency rule:
40 # install-pylibmountexecLTLIBRARIES: install-usrlib_execLTLIBRARIES
41-# install-usrsecurelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES
42+# install-securelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES
43 @verbatim_extra_dependency@
44
45 #
46diff --git a/configure.ac b/configure.ac
47index 0375d29..134cf38 100644
48--- a/configure.ac
49+++ b/configure.ac
50@@ -123,8 +123,8 @@ AS_CASE([$libdir],
51 )
52 AC_SUBST([usrlib_execdir])
53
54-usrsecurelib_execdir='${usrlib_execdir}/security'
55-AC_SUBST([usrsecurelib_execdir])
56+securelib_execdir='${libdir}/security'
57+AC_SUBST([securelib_execdir])
58
59 # static configuration maintaned by packages (e.g. /usr/lib)
60 AC_ARG_VAR([SYSCONFSTATICDIR],
61@@ -2767,7 +2767,7 @@ verbatim_extra_dependency='
62 # otherwise the libtool relink step will fail to find libmount.la and
63 # will try -lmount which is possibly not available.
64 install-pylibmountexecLTLIBRARIES: install-usrlib_execLTLIBRARIES
65-install-usrsecurelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES
66+install-securelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES
67
68 '
69 AC_SUBST([verbatim_extra_dependency])
70diff --git a/pam_lastlog2/src/Makemodule.am b/pam_lastlog2/src/Makemodule.am
71index 6d23653..a2becac 100644
72--- a/pam_lastlog2/src/Makemodule.am
73+++ b/pam_lastlog2/src/Makemodule.am
74@@ -1,4 +1,4 @@
75-usrsecurelib_exec_LTLIBRARIES += pam_lastlog2.la
76+securelib_exec_LTLIBRARIES += pam_lastlog2.la
77
78 pam_lastlog2_la_SOURCES = \
79 pam_lastlog2/src/pam_lastlog2.c
80--
812.25.1
82