diff -uNr iproute2.orig/PKGBUILD iproute2/PKGBUILD --- iproute2.orig/PKGBUILD 2013-08-07 15:05:39.000000000 -0700 +++ iproute2/PKGBUILD 2013-08-08 13:59:24.764753393 -0700 @@ -20,9 +20,11 @@ backup=('etc/iproute2/ematch_map' 'etc/iproute2/rt_dsfield' 'etc/iproute2/rt_protos' \ 'etc/iproute2/rt_realms' 'etc/iproute2/rt_scopes' 'etc/iproute2/rt_tables') source=(http://www.kernel.org/pub/linux/utils/net/$pkgname/$pkgname-$pkgver.tar.xz - iproute2-fhs.patch) + iproute2-fhs.patch + unwanted-link-help.patch) sha1sums=('e94b5dc9dc586006b272f67134ec07f6fbc81bd7' - '35b8cf2dc94b73eccad427235c07596146cd6f6c') + '35b8cf2dc94b73eccad427235c07596146cd6f6c' + '3b1335f4025f657f388fbf4e5a740871e3129c2a') prepare() { cd $srcdir/$pkgname-$pkgver @@ -30,6 +32,9 @@ # set correct fhs structure patch -Np1 -i "$srcdir/iproute2-fhs.patch" + # allow operations on links called "h", "he", "hel", "help" + patch -Np1 -i "$srcdir/unwanted-link-help.patch" + # do not treat warnings as errors sed -i 's/-Werror//' Makefile } diff -uNr iproute2.orig/unwanted-link-help.patch iproute2/unwanted-link-help.patch --- iproute2.orig/unwanted-link-help.patch 1969-12-31 16:00:00.000000000 -0800 +++ iproute2/unwanted-link-help.patch 2013-08-08 13:56:15.607880883 -0700 @@ -0,0 +1,17 @@ +diff -ru iproute2-3.10.0.orig/ip/iplink.c iproute2-3.10.0/ip/iplink.c +--- iproute2-3.10.0.orig/ip/iplink.c 2013-08-08 13:53:33.000000000 -0700 ++++ iproute2-3.10.0/ip/iplink.c 2013-08-08 13:55:03.179865309 -0700 +@@ -467,11 +467,11 @@ + addattr_l(&req->n, sizeof(*req), IFLA_NUM_RX_QUEUES, + &numrxqueues, 4); + } else { ++ if (matches(*argv, "help") == 0) ++ usage(); + if (strcmp(*argv, "dev") == 0) { + NEXT_ARG(); + } +- if (matches(*argv, "help") == 0) +- usage(); + if (*dev) + duparg2("dev", *argv); + *dev = *argv;