From 360b2d32888db24b2eb3133ed4315533c92219b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Thu, 23 Sep 2021 09:37:39 +0200 Subject: [PATCH] Update patch for parallel build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Esser --- ...1.5.2-pam_console-fix_parallel_build.patch | 22 ++++++++++++++++++- pam.spec | 5 ++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/pam-1.5.2-pam_console-fix_parallel_build.patch b/pam-1.5.2-pam_console-fix_parallel_build.patch index 3469a7a..699ae80 100644 --- a/pam-1.5.2-pam_console-fix_parallel_build.patch +++ b/pam-1.5.2-pam_console-fix_parallel_build.patch @@ -6,8 +6,28 @@ Index: Linux-PAM-1.5.2/modules/pam_console/Makefile.am FLEX_OPTS = -Cr BISON_OPTS = -d -+BUILT_SOURCES = configfile.tab.c configfile.lex.c ++BUILT_SOURCES = configfile.tab.h 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 +@@ -51,15 +53,17 @@ pam_console_apply_SOURCES = pam_console_ + pam_console_la_CFLAGS = $(AM_CFLAGS) + pam_console_apply_CFLAGS = $(AM_CFLAGS) @EXE_CFLAGS@ + ++configfile.tab.h: configfile.tab.c ++ + configfile.tab.c: configfile.y + $(YACC) $(BISON_OPTS) -o $@ -p _pc_yy $< + sh $(srcdir)/sed-static $@ + +-configfile.lex.c: configfile.l configfile.tab.c ++configfile.lex.c: configfile.l configfile.tab.h + $(LEX) $(FLEX_OPTS) -o$@ -P_pc_yy $< + sh $(srcdir)/sed-static $@ + +-configfile.c: configfile.tab.c configfile.lex.c ++configfile.c: configfile.tab.h configfile.tab.c configfile.lex.c + + install-data-local: + mkdir -p $(DESTDIR)$(secureconfdir)/console.apps diff --git a/pam.spec b/pam.spec index 4ff0b40..58632c4 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: 2%{?dist} +Release: 3%{?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+. @@ -389,6 +389,9 @@ test "$FILE" != %{_sysconfdir}/authselect/fingerprint-auth && \ exit 0 %changelog +* Thu Sep 23 2021 Björn Esser - 1.5.2-3 +- Update patch for parallel build + * Wed Sep 22 2021 Björn Esser - 1.5.2-2 - Add a patch to fix parallel builds with autgenerated sources