autotools: Properly order install dependencies of pam_lastlog2#3104
autotools: Properly order install dependencies of pam_lastlog2#3104karelzak merged 2 commits intoutil-linux:masterfrom
Conversation
2350bc6 to
13551bc
Compare
| securelib_LTLIBRARIES = pam_lastlog2.la | ||
| securelibexecdir = $(libdir)/security | ||
| securelibexec_LTLIBRARIES = pam_lastlog2.la | ||
|
|
There was a problem hiding this comment.
It would be better to move the directory definition to ./configure.ac (and meson.build) and use
usrsecurelib_execdir as name (for compatibility with other paths).
My suggestion (autotools only):
diff --git a/configure.ac b/configure.ac
index 23594ff23..ed285d83c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,6 +120,10 @@ AS_CASE([$libdir],
)
AC_SUBST([usrlib_execdir])
+usrsecurelib_execdir='${usrlib_execdir}/security'
+AC_SUBST([usrsecurelib_execdir])
+
+
# static configuration maintaned by packages (e.g. /usr/lib)
AC_ARG_VAR([SYSCONFSTATICDIR],
[Path to static system configuration, default ${prefix}/lib])
diff --git a/pam_lastlog2/src/Makemodule.am b/pam_lastlog2/src/Makemodule.am
index f9a9b6b41..57fce35c1 100644
--- a/pam_lastlog2/src/Makemodule.am
+++ b/pam_lastlog2/src/Makemodule.am
@@ -1,5 +1,4 @@
-securelibdir = $(libdir)/security
-securelib_LTLIBRARIES = pam_lastlog2.la
+usrsecurelib_execdir_LTLIBRARIES = pam_lastlog2.la
pam_lastlog2_la_SOURCES = \
pam_lastlog2/src/pam_lastlog2.c
There was a problem hiding this comment.
Ack. But shouldn't an empty usrsecurelib_execdir_LTLIBRARIES also go into Makemodule.am and then in pam_lastlog2 we can use +=.
There was a problem hiding this comment.
Yes, it's probably better (more robust) to define the generic variables as empty in the top-level Makefile.am and everywhere else, use +=.
I planned to release v2.40.2 today, but it seems we need to fix this and the rename issue before the release :-)
There was a problem hiding this comment.
Done.
I planned to release v2.40.2 today, but it seems we need to fix this and the rename issue before the release :-)
Indeed.
Do you intend to also include the libuuid fixes in v2.40.2?
There was a problem hiding this comment.
Hmm ... the latest libuuid fixes are missing the branch. We need it, too, in 2.40.2 (at least conditional uuid_time64; duplicate liuuid_la_LDFLAGS). Would you like me to prepare the PR (or will I do it tomorrow)?
There was a problem hiding this comment.
I think the clear-cache-on-fork change is also important.
If you could do the PR, that would be great.
While at it, also move the initial definition of usesecurelib_exec_LTLIBRARIES into Makefile.am. Also add "exec" to the target name which is recognized by automake to mark the targets as architecture-specific. Signed-off-by: Thomas Weißschuh <[email protected]>
As pam_lastlog2 is relinked during installation, all its dependencies need to already be installed. This is the same issue that affected pylibmount which was fixed in commit 324330a ("build-sys: Properly order install dependencies of pylibmount"). Extend the logic added in that commit to also apply to pam_lastlog2. Closes: util-linux#3011 Signed-off-by: Thomas Weißschuh <[email protected]>
13551bc to
20dc72d
Compare
Fixes for pam_lastlog2 installation.
Closes: #3011