From 134d746c06d883ba35900c5a6fa1a0dd1adb4c19ebf6cebc50670a53a26c1eeb Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 5 Feb 2018 13:22:49 +0000 Subject: [PATCH] Accepting request 572450 from home:berny:branches:devel:tools:building - 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. OBS-URL: https://build.opensuse.org/request/show/572450 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/automake?expand=0&rev=61 --- ...correct-parameter-parsing-in-test-driver-script.patch | 4 ++-- automake-testsuite.changes | 9 +++++++++ automake-testsuite.spec | 2 +- automake.changes | 9 +++++++++ automake.spec | 2 +- 5 files changed, 22 insertions(+), 4 deletions(-) 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