SHA256
1
0
forked from pool/shadow

- Fix shadow-login_defs-check.sh:

In the last update we switched from calling make to %make_build
  macro. Using sed to adapt the spec file now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=108
This commit is contained in:
Michael Vetter 2021-09-07 15:09:34 +00:00 committed by Git OBS Bridge
parent c8f7c173d8
commit 8f871cae62
2 changed files with 8 additions and 7 deletions

View File

@ -66,13 +66,7 @@ if ! test -f shadow-login_defs-check-build/stamp ; then
# In case of shadow, variables extraction is more complicated. The list
# depends on configure options, so we have to perform a fake build and
# extract variables from prepreocessed sources.
patch <<EOF
--- shadow.spec
+++ shadow.spec
@@ -133,1 +133,1 @@
-make %{?_smp_mflags} V=1
+make %{?_smp_mflags} V=1 -k CPPFLAGS="-E"
EOF
sed -i '/^%make_build/i\_smp_mpflags="%{?_smp_mpflags} -k CPPFLAGS=\\"-E\\""' shadow.spec
fi
osc build "$@" || :

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 7 15:08:19 UTC 2021 - Michael Vetter <mvetter@suse.com>
- Fix shadow-login_defs-check.sh:
In the last update we switched from calling make to %make_build
macro. Using sed to adapt the spec file now.
-------------------------------------------------------------------
Wed Aug 18 15:17:52 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>