From 94d433f4401a90af83afaeb564fdf856d4f47984 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Wed, 20 Jun 2018 15:35:52 +0200 Subject: [PATCH] specfile: gawk_api_* macros sanitized Generating of this macros should not produce a failure exit code, and tar stderr has been forwarded to /dev/null... --- gawk.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gawk.spec b/gawk.spec index 957cc2b..10e6b00 100644 --- a/gawk.spec +++ b/gawk.spec @@ -31,13 +31,13 @@ %global _hardened_build 1 # Extract the API major & minor versions, so we can export them below: -%global gawk_api_major %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout | \ +%global gawk_api_major %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \ grep -i -e "gawk_api_major.*[[:digit:]]" | \ - grep -o -e "[[:digit:]]") + grep -o -e "[[:digit:]]" || :) -%global gawk_api_minor %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout | \ +%global gawk_api_minor %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \ grep -i -e "gawk_api_minor.*[[:digit:]]" | \ - grep -o -e "[[:digit:]]") + grep -o -e "[[:digit:]]" || :) # =============================================================================