From 0c8f53e9a6389a55877db724826964c2890601f3 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 8 Jun 2020 08:04:27 +0200 Subject: [PATCH] iproute2: fix root cause of the error instead of working around --- .../iproute2/patches/fix-install-errors.patch | 40 ------------------- .../iproute2/patches/fix-musl-devlink.patch | 10 +++++ srcpkgs/iproute2/template | 2 +- 3 files changed, 11 insertions(+), 41 deletions(-) delete mode 100644 srcpkgs/iproute2/patches/fix-install-errors.patch create mode 100644 srcpkgs/iproute2/patches/fix-musl-devlink.patch diff --git a/srcpkgs/iproute2/patches/fix-install-errors.patch b/srcpkgs/iproute2/patches/fix-install-errors.patch deleted file mode 100644 index 3a945829fb..0000000000 --- a/srcpkgs/iproute2/patches/fix-install-errors.patch +++ /dev/null @@ -1,40 +0,0 @@ -Without this patch the following error message shows up three times -during `make install:` - - install -m 0755 /home/travis/build/alpinelinux/aports/main/iproute2/pkg/iproute2/sbin - BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary. - Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST - Copy files and set attributes - -c Just copy (default) - -d Create directories - -D Create leading target directories - -s Strip symbol table - -p Preserve date - -o USER Set ownership - -g GRP Set group ownership - -m MODE Set permissions - -t DIR Install to DIR - make[1]: *** [Makefile:25: install] Error 1 - -diff -upr iproute2-4.17.0.orig/Makefile iproute2-4.17.0/Makefile ---- ./Makefile 2018-06-27 22:58:35.818077991 +0200 -+++ ./Makefile 2018-06-27 23:00:33.118560603 +0200 -@@ -61,7 +61,17 @@ WFLAGS += -Wmissing-declarations -Wold-s - CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS) - YACCFLAGS = -d -t -v - --SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma man -+SUBDIRS=lib ip tc bridge misc netem genl man -+ -+# The following subdirs require libmnl. If libmnl isn't installed -+# install(1) is called with invalid arguments when the install -+# target is invoked in those subdirs because $(TARGETS) is empty. -+# -+# To prevent these errors we only include the subdirs if libmnl is -+# actually available. -+ifeq ($(HAVE_MNL),y) -+SUBDIRS += tipc devlink rdma -+endif - - LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a - LDLIBS += $(LIBNETLINK) diff --git a/srcpkgs/iproute2/patches/fix-musl-devlink.patch b/srcpkgs/iproute2/patches/fix-musl-devlink.patch new file mode 100644 index 0000000000..8e4a15f8c5 --- /dev/null +++ b/srcpkgs/iproute2/patches/fix-musl-devlink.patch @@ -0,0 +1,10 @@ +--- devlink/devlink.c.orig 2020-06-08 08:00:37.855433217 +0200 ++++ devlink/devlink.c 2020-06-08 08:00:47.755432741 +0200 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include "SNAPSHOT.h" + #include "list.h" diff --git a/srcpkgs/iproute2/template b/srcpkgs/iproute2/template index 0f9c141620..8c9ff39be7 100644 --- a/srcpkgs/iproute2/template +++ b/srcpkgs/iproute2/template @@ -1,7 +1,7 @@ # Template file for 'iproute2' pkgname=iproute2 version=5.7.0 -revision=2 +revision=3 build_style=configure make_install_args="SBINDIR=/usr/bin" hostmakedepends="pkg-config perl flex"