Accepting request 555790 from security:netfilter

- Update to new upstream release 4.14.1

OBS-URL: https://build.opensuse.org/request/show/555790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=93
This commit is contained in:
Dominique Leuenberger 2017-12-13 10:55:51 +00:00 committed by Git OBS Bridge
commit dac830ccd0
12 changed files with 78 additions and 1524 deletions

View File

@ -5,15 +5,15 @@ Patch-mainline: Never, SUSE specific
Match the directory layout of openSUSE and SLE.
---
Makefile | 4 ++--
netem/Makefile | 6 ++++--
tc/q_netem.c | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
Makefile | 4 ++--
netem/Makefile | 5 +++--
tc/q_netem.c | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index dbb4a4afd608..3069ee91e159 100644
--- a/Makefile
+++ b/Makefile
Index: iproute2-4.14.1/Makefile
===================================================================
--- iproute2-4.14.1.orig/Makefile
+++ iproute2-4.14.1/Makefile
@@ -6,7 +6,7 @@ endif
PREFIX?=/usr
@ -32,20 +32,19 @@ index dbb4a4afd608..3069ee91e159 100644
ifneq ($(SHARED_LIBS),y)
DEFINES+= -DNO_SHARED_LIBS
endif
diff --git a/netem/Makefile b/netem/Makefile
index 2499f086f24d..9e36fe91fa41 100644
--- a/netem/Makefile
+++ b/netem/Makefile
@@ -7,6 +7,8 @@ HOSTCC ?= $(CC)
Index: iproute2-4.14.1/netem/Makefile
===================================================================
--- iproute2-4.14.1.orig/netem/Makefile
+++ iproute2-4.14.1/netem/Makefile
@@ -6,6 +6,7 @@ DISTDATA = normal.dist pareto.dist paret
HOSTCC ?= $(CC)
CCOPTS = $(CBUILD_CFLAGS)
LDLIBS += -lm
+LIBDIR = /usr/lib
+
ifeq ($(HAVE_MNL),y)
CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags)
LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
@@ -27,9 +29,9 @@ stats: stats.c
all: $(DISTGEN) $(DISTDATA)
@@ -22,9 +23,9 @@ stats: stats.c
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
install: all
@ -57,11 +56,11 @@ index 2499f086f24d..9e36fe91fa41 100644
done
clean:
diff --git a/tc/q_netem.c b/tc/q_netem.c
index 5a9e747411e8..34c8f4315abd 100644
--- a/tc/q_netem.c
+++ b/tc/q_netem.c
@@ -113,7 +113,7 @@ static int get_distribution(const char *type, __s16 *data, int maxdata)
Index: iproute2-4.14.1/tc/q_netem.c
===================================================================
--- iproute2-4.14.1.orig/tc/q_netem.c
+++ iproute2-4.14.1/tc/q_netem.c
@@ -113,7 +113,7 @@ static int get_distribution(const char *
char *line = NULL;
char name[128];
@ -70,6 +69,3 @@ index 5a9e747411e8..34c8f4315abd 100644
if ((f = fopen(name, "r")) == NULL) {
fprintf(stderr, "No distribution data for %s (%s: %s)\n",
type, name, strerror(errno));
--
2.14.1

View File

@ -1,65 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: Tue, 9 Oct 2012 14:27:11 +0200
Subject: doc: revert PDF creation
Patch-mainline: Never, temporary workaround
Revert 0ecf26fc7d2f24570b4c04a668c437b8656a40a7, since it
makes PDF creation fail on SUSE <= 12.2.
(cannot find linuxdoc-sgml.sty; seems like /usr/lib/sgml-tool
is not in the search path with texlive 2011/suse122.)
---
doc/Makefile | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/doc/Makefile b/doc/Makefile
index 0c51872afac5..e7514e4c3c9a 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -6,7 +6,7 @@ PSFILES=ip-cref.ps ip-tunnels.ps api-ip6-flowlabels.ps ss.ps nstat.ps arpd.ps rt
LATEX=latex
DVIPS=dvips
-SGML2DVI=sgml2latex
+SGML2DVI=sgml2latex --output=dvi
SGML2HTML=sgml2html -s 0
LPR=lpr -Zsduplex
SHELL=bash
@@ -31,11 +31,8 @@ pdf: $(PDFFILES)
print: $(PSFILES)
$(LPR) $(PSFILES)
-%.tex: %.sgml
- $(SGML2DVI) --output=tex $<
-
%.dvi: %.sgml
- $(SGML2DVI) --output=dvi $<
+ $(SGML2DVI) $<
%.dvi: %.tex
@set -e; pass=2; echo "Running LaTeX $<"; \
@@ -47,17 +44,10 @@ print: $(PSFILES)
echo "Re-running LaTeX $<, $${pass}d pass"; pass=$$[$$pass + 1]; \
done
-%.pdf: %.tex
- @set -e; pass=2; echo "Running pdfLaTeX $<"; \
- while [ `pdflatex $< </dev/null 2>&1 | \
- grep -c '^\(LaTeX Warning: Label(s) may\|No file \|! Emergency stop\)'` -ge 1 ]; do \
- if [ $$pass -gt 3 ]; then \
- echo "Seems, something is wrong. Try by hands." ; exit 1 ; \
- fi; \
- echo "Re-running pdfLaTeX $<, $${pass}d pass"; pass=$$[$$pass + 1]; \
- done
-#%.pdf: %.ps
-# ps2pdf $<
+#%.pdf: %.tex
+# pdflatex $<
+%.pdf: %.ps
+ ps2pdf $<
%.ps: %.dvi
$(DVIPS) $< -o $@
--
2.14.1

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cfb81edf8c8509e03daa77cf62aead01c4a827132f6c506578f94cc19415c50
size 670340

BIN
iproute2-4.14.1.tar.sign Normal file

Binary file not shown.

3
iproute2-4.14.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d43ac068afcc350a448f4581b6e292331ef7e4e7aa746e34981582d5fdb10067
size 636876

File diff suppressed because it is too large Load Diff

View File

@ -1,113 +0,0 @@
#
# spec file for package iproute2-doc
#
# Copyright (c) 2017 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: iproute2-doc
Version: 4.13
Release: 0
%define rversion 4.13.0
Summary: Documentation to iproute2
License: GPL-2.0+
Group: Documentation/Other
Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: db-devel
BuildRequires: flex
BuildRequires: pkgconfig >= 0.21
BuildRequires: sgmltool
BuildRequires: texlive
BuildRequires: texlive-amsfonts
BuildRequires: texlive-cm-super
BuildRequires: texlive-dvips
BuildRequires: texlive-ec
BuildRequires: texlive-latex
BuildRequires: tex(english.ldf)
BuildRequires: tex(fancyvrb.sty)
BuildRequires: tex(float.sty)
BuildRequires: tex(fullpage.sty)
%define with_xt 1
%if 0%{?with_xt}
BuildRequires: pkgconfig(libmnl)
BuildRequires: pkgconfig(xtables) >= 1.4.11
%endif
Patch1: adjust-installation-directories-for-openSUSE-SLE.patch
Patch2: use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
Patch3: add-explicit-typecast-to-avoid-gcc-warning.patch
Patch4: xfrm-support-displaying-transformations-used-for-Mob.patch
Patch5: man-fix-documentation-references-in-manual-pages.patch
Patch6: split-link-and-compile-steps-for-binaries.patch
Patch7: examples-fix-bashisms-in-example-script.patch
Patch101: doc-revert-PDF-creation.patch
Patch102: Revert-emp-fix-warning-on-deprecated-bison-directive.patch
%description
This package contains the PDF documentation from iproute2,
as well as examples and other outdated files.
%prep
%setup -qn iproute2-%rversion
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%if 0%{?sles_version} == 11 || (0%{?suse_version} && 0%{?suse_version} <= 1220)
%patch101 -p1
%endif
%if 0%{?sles_version} == 11
%patch102 -p1
%endif
find . -name *.orig -delete
%build
# build with -fPIC. For details see
# https://bugzilla.novell.com/show_bug.cgi?id=388021
xt_libdir="$(pkg-config xtables --variable=xtlibdir)";
xt_cflags="$(pkg-config xtables --cflags)";
make %{?_smp_mflags} LIBDIR="%_libdir" CCOPTS="-D_GNU_SOURCE %optflags -Wstrict-prototypes -Wno-error -fPIC -DXT_LIB_DIR=\\\"$xt_libdir\\\" $xt_cflags"
cd doc
make pdf
%install
make install DESTDIR="%buildroot" LIBDIR="%_libdir" \
MODDESTDIR="$b/%_libdir/tc" DOCDIR="%_docdir/iproute2"
mkdir -p "%buildroot/%_docdir/iproute2";
cp -an ip/{ifcfg,routef,routel} doc/*.pdf "%buildroot/%_docdir/iproute2/"
t="$$"
mkdir "$t"
mv "%buildroot/%_docdir" "$t/"
rm -rf "%buildroot"/*
mkdir -p "%buildroot/%_docdir"
mv "$t/packages"/* "%buildroot/%_docdir"
rm -rf "$t"
%files
%defattr(-,root,root)
%_docdir/iproute2
%changelog

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Sun Dec 10 23:47:36 UTC 2017 - jengelh@inai.de
- Remove iproute2-doc (removed upstream) and
doc-revert-PDF-creation.patch .
-------------------------------------------------------------------
Fri Nov 17 21:05:25 UTC 2017 - jengelh@inai.de
- Update to new upstream release 4.14.1
* ss: distinguish between IPv4 and IPv6 wildcard sockets
* bridge: this patch adds json support for bridge mdb show
* tc actions: improved batching and time filtered dumping
* iproute: add support for SRv6 local segment processing
* ip: add new command line argument -json (mutually exclusive with -color)
* gre: add support for ERSPAN tunnel
* tc: m_ife: allow ife type to zero
* tc: m_ife: print IEEE ethertype format
* iproute: add support for seg6 l2encap mode
* devlink: Add support for special format protocol headers
* devlink: Add support for protocol IPv4/IPv6/Ethernet special formats
* ss: detect IPPROTO_ICMPV6 sockets
* tc/actions: introduce support for jump action
* devlink: add batch command support
-------------------------------------------------------------------
Wed Sep 6 07:09:53 UTC 2017 - mkubecek@suse.cz

View File

@ -17,9 +17,9 @@
Name: iproute2
Version: 4.13
Version: 4.14.1
Release: 0
%define rversion 4.13.0
%define rversion 4.14.1
Summary: Linux network configuration utilities
License: GPL-2.0
Group: Productivity/Networking/Routing
@ -30,11 +30,19 @@ Url: http://www.linuxfoundation.org/collaborate/workgroups/networking
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2
Source: http://kernel.org/pub/linux/utils/net/iproute2/%name-%rversion.tar.xz
Source2: http://kernel.org/pub/linux/utils/net/iproute2/%name-%rversion.tar.sign
Source666: pre_checkin.sh
Source667: %name.keyring
Source9: %name.keyring
Patch1: adjust-installation-directories-for-openSUSE-SLE.patch
Patch2: use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
Patch3: add-explicit-typecast-to-avoid-gcc-warning.patch
Patch4: xfrm-support-displaying-transformations-used-for-Mob.patch
Patch5: man-fix-documentation-references-in-manual-pages.patch
Patch6: split-link-and-compile-steps-for-binaries.patch
Patch7: examples-fix-bashisms-in-example-script.patch
Patch102: Revert-emp-fix-warning-on-deprecated-bison-directive.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: db-devel
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: libelf-devel
BuildRequires: pkgconfig >= 0.21
@ -48,16 +56,6 @@ BuildRequires: pkgconfig(xtables) >= 1.4.11
Provides: iproute = %version-%release
Provides: %name(xfrm6_raw) = %version-%release
Patch1: adjust-installation-directories-for-openSUSE-SLE.patch
Patch2: use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
Patch3: add-explicit-typecast-to-avoid-gcc-warning.patch
Patch4: xfrm-support-displaying-transformations-used-for-Mob.patch
Patch5: man-fix-documentation-references-in-manual-pages.patch
Patch6: split-link-and-compile-steps-for-binaries.patch
Patch7: examples-fix-bashisms-in-example-script.patch
Patch101: doc-revert-PDF-creation.patch
Patch102: Revert-emp-fix-warning-on-deprecated-bison-directive.patch
%description
iproute2 is a collection of user-space utilities to set up networking
under Linux from the command-line. It can inspect and configure,
@ -86,18 +84,9 @@ bash command line completion support for iproute.
%prep
%setup -qn %name-%rversion
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%if 0%{?sles_version} == 11 || (0%{?suse_version} && 0%{?suse_version} <= 1220)
%patch101 -p1
%endif
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -p1
%if 0%{?sles_version} == 11
%patch102 -p1
%patch -P 102 -p1
%endif
find . -name *.orig -delete
@ -126,20 +115,14 @@ mkdir -p "$b/bin"
ln -sf "%_sbindir/ip" "$b/bin/ip"
#EndUsrMerge
for BIN in lnstat nstat routef routel ss; do
ln -sf "%{_sbindir}/$BIN" "$b%{_bindir}/$BIN"
ln -sf "%_sbindir/$BIN" "$b/%_bindir/$BIN"
done
rm "$b/%_sbindir/ifcfg"
mkdir -p "$b/%_docdir/%name"
# packaged in iproute2-doc:
rm -rf $b/%_docdir/%name/*
cp -an README* COPYING "$b/%_docdir/%name/"
%fdupes %buildroot/%_prefix
%files
%defattr(-,root,root)
%dir %_docdir/%name
%_docdir/%name/README*
%_docdir/%name/COPYING
%_bindir/lnstat
%_bindir/nstat
%_bindir/routef
@ -156,6 +139,7 @@ cp -an README* COPYING "$b/%_docdir/%name/"
%config(noreplace) %_sysconfdir/iproute2/*
%_libdir/tc/
%_datadir/tc/
%_docdir/%name/
%files -n libnetlink-devel
%defattr(-,root,root)

View File

@ -1,12 +0,0 @@
#!/bin/bash
echo -n "Generating iproute2-doc.spec/changes "
cp iproute2.changes iproute2-doc.changes
sed -i -e "s/\(Version:\).*/\1$(sed -n 's/Version:\(.*\)/\1/p' iproute2.spec)/" iproute2-doc.spec
osc service localrun format_spec_file
echo "Done."

View File

@ -7,22 +7,21 @@ Do not compile and link in one step so that CFLAGS and LDFLAGS are only
applied to the phase they are intended for. This is needed for PIE default
to work.
---
misc/Makefile | 17 +++++++++--------
misc/Makefile | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/misc/Makefile b/misc/Makefile
index fa90308e4848..5445bbc08356 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -17,6 +17,7 @@ endif
ifeq ($(IP_CONFIG_SETNS),y)
CFLAGS += -DHAVE_SETNS
Index: iproute2-4.14.1/misc/Makefile
===================================================================
--- iproute2-4.14.1.orig/misc/Makefile
+++ iproute2-4.14.1/misc/Makefile
@@ -8,23 +8,24 @@ include ../config.mk
ifeq ($(HAVE_BERKELEY_DB),y)
TARGETS += arpd
endif
+CFLAGS += -I$(DBM_INCLUDE)
ifeq ($(HAVE_MNL),y)
CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags)
@@ -28,17 +29,17 @@ all: $(TARGETS)
all: $(TARGETS)
ss: $(SSOBJ)
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
@ -48,6 +47,3 @@ index fa90308e4848..5445bbc08356 100644
ssfilter.c: ssfilter.y
$(QUIET_YACC)bison ssfilter.y -o ssfilter.c
--
2.14.1