From: Karel Zak Date: Tue, 27 Aug 2024 10:00:21 +0000 (+0200) Subject: autotools: fix securedir and pam_lastlog2 install X-Git-Tag: v2.40.3~40 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f861361e86bb4bb8304b897eba2a9387424a5e6;p=thirdparty%2Futil-linux.git autotools: fix securedir and pam_lastlog2 install Addresses: https://github.com/util-linux/util-linux/pull/3173 Signed-off-by: Karel Zak (cherry picked from commit 9c787eaac43f5f01146f792b0239f587e4b81202) --- diff --git a/Makefile.am b/Makefile.am index 54e0fd497..0662effe0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -56,7 +56,7 @@ usrsbin_exec_PROGRAMS = man_MANS = pkgconfig_DATA = usrlib_exec_LTLIBRARIES = -usrsecurelib_exec_LTLIBRARIES = +securelib_exec_LTLIBRARIES = bin_PROGRAMS = sbin_PROGRAMS = dist_usrbin_exec_SCRIPTS = @@ -154,11 +154,11 @@ EXTRA_DIST += \ # pylibmountexec module must be installed after usrlib_exec libraries, # otherwise the libtool relink step will fail to find libmount.la and # will try -lmount which is possibly not available. -# The same for usrsecurelib_exec and liblastlog2.la +# The same for securelib_exec and liblastlog2.la # # So introduce this dependency rule: # install-pylibmountexecLTLIBRARIES: install-usrlib_execLTLIBRARIES -# install-usrsecurelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES +# install-securelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES @verbatim_extra_dependency@ # diff --git a/configure.ac b/configure.ac index 3b2904121..f056744ab 100644 --- a/configure.ac +++ b/configure.ac @@ -120,8 +120,8 @@ AS_CASE([$libdir], ) AC_SUBST([usrlib_execdir]) -usrsecurelib_execdir='${usrlib_execdir}/security' -AC_SUBST([usrsecurelib_execdir]) +securelib_execdir='${libdir}/security' +AC_SUBST([securelib_execdir]) # static configuration maintaned by packages (e.g. /usr/lib) AC_ARG_VAR([SYSCONFSTATICDIR], @@ -2781,7 +2781,7 @@ verbatim_extra_dependency=' # otherwise the libtool relink step will fail to find libmount.la and # will try -lmount which is possibly not available. install-pylibmountexecLTLIBRARIES: install-usrlib_execLTLIBRARIES -install-usrsecurelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES +install-securelib_execLTLIBRARIES: install-usrlib_execLTLIBRARIES ' AC_SUBST([verbatim_extra_dependency]) diff --git a/pam_lastlog2/src/Makemodule.am b/pam_lastlog2/src/Makemodule.am index 6d2365378..a2becac88 100644 --- a/pam_lastlog2/src/Makemodule.am +++ b/pam_lastlog2/src/Makemodule.am @@ -1,4 +1,4 @@ -usrsecurelib_exec_LTLIBRARIES += pam_lastlog2.la +securelib_exec_LTLIBRARIES += pam_lastlog2.la pam_lastlog2_la_SOURCES = \ pam_lastlog2/src/pam_lastlog2.c