diff --git a/pam-1.5.2-pam_console-fix_parallel_build.patch b/pam-1.5.2-pam_console-fix_parallel_build.patch new file mode 100644 index 0000000..3469a7a --- /dev/null +++ b/pam-1.5.2-pam_console-fix_parallel_build.patch @@ -0,0 +1,13 @@ +Index: Linux-PAM-1.5.2/modules/pam_console/Makefile.am +=================================================================== +--- Linux-PAM-1.5.2.orig/modules/pam_console/Makefile.am ++++ Linux-PAM-1.5.2/modules/pam_console/Makefile.am +@@ -44,6 +44,8 @@ secureconf_DATA = console.perms console. + FLEX_OPTS = -Cr + BISON_OPTS = -d + ++BUILT_SOURCES = configfile.tab.c configfile.lex.c ++ + pam_console_la_SOURCES = pam_console.c pam_console.h regerr.c handlers.c handlers.h + pam_console_apply_SOURCES = pam_console_apply.c pam_console.h chmod.c modechange.c regerr.c \ + configfile.c configfile.h hashtable.c hashtable.h hashtable_private.h diff --git a/pam.spec b/pam.spec index 4921628..4ff0b40 100644 --- a/pam.spec +++ b/pam.spec @@ -4,7 +4,7 @@ Summary: An extensible library which provides authentication for applications Name: pam Version: 1.5.2 -Release: 1%{?dist} +Release: 2%{?dist} # The library is BSD licensed with option to relicense as GPLv2+ # - this option is redundant as the BSD license allows that anyway. # pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+. @@ -29,7 +29,8 @@ Source18: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt Patch1: pam-1.5.0-redhat-modules.patch Patch2: pam-1.5.0-noflex.patch Patch3: pam-1.3.0-unix-nomsg.patch -Patch4: pam-1.5.2-pam_console-fix_setgroups_not_defined.patch +Patch4: pam-1.5.2-pam_console-fix_parallel_build.patch +Patch5: pam-1.5.2-pam_console-fix_setgroups_not_defined.patch %{load:%{SOURCE3}} @@ -109,7 +110,8 @@ cp %{SOURCE18} . %patch1 -p1 -b .redhat-modules %patch2 -p1 -b .noflex %patch3 -p1 -b .nomsg -%patch4 -p1 -b .setgroups_not_defined +%patch4 -p1 -b .parallel_build +%patch5 -p1 -b .setgroups_not_defined autoreconf -i @@ -387,6 +389,9 @@ test "$FILE" != %{_sysconfdir}/authselect/fingerprint-auth && \ exit 0 %changelog +* Wed Sep 22 2021 Björn Esser - 1.5.2-2 +- Add a patch to fix parallel builds with autgenerated sources + * Sat Sep 04 2021 Björn Esser - 1.5.2-1 - Rebase to release 1.5.2 Resolves: #2001208