diff --git a/iproute2-3.16.0-fix-bashisms.patch b/iproute2-3.16.0-fix-bashisms.patch new file mode 100644 index 0000000..1394909 --- /dev/null +++ b/iproute2-3.16.0-fix-bashisms.patch @@ -0,0 +1,38 @@ +diff -Ndur iproute2-3.16.0/examples/gaiconf iproute2-3.16.0-fix-bashisms/examples/gaiconf +--- iproute2-3.16.0/examples/gaiconf 2014-08-04 22:43:46.000000000 +0300 ++++ iproute2-3.16.0-fix-bashisms/examples/gaiconf 2014-11-16 03:02:55.194855668 +0200 +@@ -11,7 +11,7 @@ + verbose= + debug= + +-function run () ++run () + { + if [ x"$verbose" != x"" ]; then + echo "$@" +@@ -21,7 +21,7 @@ + fi + } + +-function do_load_config () ++do_load_config () + { + file=$1; shift + flush=1 +@@ -36,14 +36,14 @@ + done + } + +-function do_list_config () ++do_list_config () + { + ${IP} -6 addrlabel list | while read p pfx l lbl; do + echo label ${pfx} ${lbl} + done + } + +-function help () ++help () + { + echo "Usage: $0 [-v] {--list | --config [ ${DEFAULT_GAICONF} ] | --default}" + exit 1 diff --git a/iproute2-doc.changes b/iproute2-doc.changes index cdc67f1..9801341 100644 --- a/iproute2-doc.changes +++ b/iproute2-doc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Dec 28 16:30:00 UTC 2014 - Led + +- fix bashisms in gaiconf script +- add patches: + * iproute2-3.16.0-fix-bashisms.patch + ------------------------------------------------------------------- Tue Nov 25 08:18:52 UTC 2014 - mkubecek@suse.cz diff --git a/iproute2-doc.spec b/iproute2-doc.spec index a4cba7c..ae836fd 100644 --- a/iproute2-doc.spec +++ b/iproute2-doc.spec @@ -27,6 +27,7 @@ Url: http://www.linuxfoundation.org/collaborate/workgroups/networking Source: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.xz Source2: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.sign +Patch1: iproute2-3.16.0-fix-bashisms.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison @@ -52,6 +53,7 @@ as well as examples and other outdated files. %prep %setup -qn iproute2-%rversion +%patch1 -p1 %build # build with -fPIC. For details see