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