From 399fed0afaa8e55d34a9d4f82e4fb3129aafb75d1f41a39414c4032152b81dcd Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Thu, 24 Aug 2023 14:00:44 +0000 Subject: [PATCH] Accepting request 1104202 from home:dimstar:Factory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - export CONFIG_SHELL=/bin/sh before running configure: results in the shell script (zcat/zgrep/…) to receive a /bin/sh shebang instead of requiring bash (the local shell used to build). - Use for i in $(seq 1 9) instead of bashism for in in {1..9}, and drop buildshell definition to require bash. OBS-URL: https://build.opensuse.org/request/show/1104202 OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=93 --- gzip.changes | 9 +++++++++ gzip.spec | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gzip.changes b/gzip.changes index 70d347b..961329a 100644 --- a/gzip.changes +++ b/gzip.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Aug 16 14:52:39 UTC 2023 - Dominique Leuenberger + +- export CONFIG_SHELL=/bin/sh before running configure: results in + the shell script (zcat/zgrep/…) to receive a /bin/sh shebang + instead of requiring bash (the local shell used to build). +- Use for i in $(seq 1 9) instead of bashism for in in {1..9}, and + drop buildshell definition to require bash. + ------------------------------------------------------------------- Tue Dec 27 12:26:05 UTC 2022 - Ludwig Nussel diff --git a/gzip.spec b/gzip.spec index a09021f..5efa5a9 100644 --- a/gzip.spec +++ b/gzip.spec @@ -16,7 +16,6 @@ # -%define _buildshell /bin/bash Name: gzip Version: 1.12 Release: 0 @@ -70,6 +69,7 @@ export CFLAGS="$CFLAGS -DDFLTCC_LEVEL_MASK=0x7e" # Avoid text relocations on i386 as the assembler code (in # lib/match.c) is not prepared for PIE (bsc#1143125). export DEFS=NO_ASM +export CONFIG_SHELL=/bin/sh %configure --disable-silent-rules \ gl_cv_func_printf_directive_n=yes \ gl_cv_func_printf_infinite_long_double=yes \ @@ -95,7 +95,7 @@ profile_gzip %endif %check -for i in {1..9}; do +for i in $(seq 1 9); do for f in build-aux/texinfo.tex /bin/bash; do basef=${f##*/} time ./gzip -$i < $f > $basef.gz