diff --git a/0001-correct-parameter-parsing-in-test-driver-script.patch b/0001-correct-parameter-parsing-in-test-driver-script.patch index 880fd28..a939c69 100644 --- a/0001-correct-parameter-parsing-in-test-driver-script.patch +++ b/0001-correct-parameter-parsing-in-test-driver-script.patch @@ -23,7 +23,7 @@ index 8e575b0..69b47f8 100755 +while test $# -gt 1; do + arg=${1%=*} + val=${1#*=} -+ if [ $arg == $val ]; then ++ if [ $arg = $val ]; then + val=$2 + shift + fi @@ -48,7 +48,7 @@ index 8e575b0..69b47f8 100755 - *) break;; esac - shift -+ [[ $arg != $val ]] && shift ++ [ $arg != $val ] && shift done missing_opts= diff --git a/automake-testsuite.changes b/automake-testsuite.changes index f6b82e5..ededda1 100644 --- a/automake-testsuite.changes +++ b/automake-testsuite.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Feb 4 23:06:25 UTC 2018 - mail@bernhard-voelker.de + +- Avoid bashisms in test-driver: + * 0001-correct-parameter-parsing-in-test-driver-script.patch + Use test's = operator instead of ==; use '[' instead of '[['. + This avoids 'make check' failures of distribution tarballs (built on + openSUSE) on platforms not supporting bashisms, e.g. NetBSD-7.1. + ------------------------------------------------------------------- Fri Oct 20 18:16:24 UTC 2017 - jayvdb@gmail.com diff --git a/automake-testsuite.spec b/automake-testsuite.spec index b8d882f..22392d9 100644 --- a/automake-testsuite.spec +++ b/automake-testsuite.spec @@ -1,7 +1,7 @@ # # spec file for package automake-testsuite # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/automake.changes b/automake.changes index f6b82e5..ededda1 100644 --- a/automake.changes +++ b/automake.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Feb 4 23:06:25 UTC 2018 - mail@bernhard-voelker.de + +- Avoid bashisms in test-driver: + * 0001-correct-parameter-parsing-in-test-driver-script.patch + Use test's = operator instead of ==; use '[' instead of '[['. + This avoids 'make check' failures of distribution tarballs (built on + openSUSE) on platforms not supporting bashisms, e.g. NetBSD-7.1. + ------------------------------------------------------------------- Fri Oct 20 18:16:24 UTC 2017 - jayvdb@gmail.com diff --git a/automake.spec b/automake.spec index c76a1f4..ba01639 100644 --- a/automake.spec +++ b/automake.spec @@ -1,7 +1,7 @@ # # spec file for package automake # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed