aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2019-03-25 13:03:36 +0000
committerAndy Postnikov <apostnikov@gmail.com>2019-03-25 19:51:48 +0200
commit2fefd9b29269722094d7cd25aae06e5964f01189 (patch)
tree72b72732b306c18762946e44310232569ccabaeb
parentf471769cf355474faec8d725de94e58b2f32af9b (diff)
downloadaports-2fefd9b29269722094d7cd25aae06e5964f01189.tar.gz
aports-2fefd9b29269722094d7cd25aae06e5964f01189.tar.bz2
aports-2fefd9b29269722094d7cd25aae06e5964f01189.tar.xz
testing/lldpd: fix ppc64le build break defining PATH_MAX
-rw-r--r--testing/lldpd/APKBUILD4
-rw-r--r--testing/lldpd/fix-ppc64le-pathmax.patch10
2 files changed, 13 insertions, 1 deletions
diff --git a/testing/lldpd/APKBUILD b/testing/lldpd/APKBUILD
index 811cac947e..2c09330972 100644
--- a/testing/lldpd/APKBUILD
+++ b/testing/lldpd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lldpd
pkgver=1.0.3
-pkgrel=0
+pkgrel=1
pkgdesc="Implementation of IEEE 802.1ab (LLDP) "
url="http://vincentbernat.github.com/lldpd/"
arch="all"
@@ -17,6 +17,7 @@ subpackages="$pkgname-dev $pkgname-doc
pkgusers="lldpd"
pkggroups="lldpd"
source="$pkgname-$pkgver.tar.gz::https://github.com/vincentbernat/$pkgname/archive/$pkgver.tar.gz
+ fix-ppc64le-pathmax.patch
$pkgname.confd
$pkgname.initd"
builddir="$srcdir/$pkgname-$pkgver"
@@ -81,5 +82,6 @@ zshcomp() {
sha512sums="b2b69bb4447552bbf35364eb19cb7e01ea81a49913678b50ca56b7e331eb9fb0007049f0b7d01f910a9d6be433deac1ae3e2fffc97d69b1a4bc2176ebdb38b41 lldpd-1.0.3.tar.gz
+a3a3972ce4cfa98d0de9d958adf18eebb19a442023b321477b3bb8ff3f8297a8708d5c8d70dae06165aac9369d09492d57ffa62e1527968d0c778a7f6fd9678b fix-ppc64le-pathmax.patch
a2a4c85068a6b8b80c92fe56af7799a8b8cb2516e5a65b3ae4cb28f278e5acc72402da2a35f0c48a6048fd4a8536061142cafaa49a4bae8e52ca0a5d9ed38b4c lldpd.confd
8d88e2a21efee6389d4de4f1ce2fcc9da8bd8ab3cb5a2bf2d322bde577e255662d027688065282146b389b3b8076fb883897e600fd931bcdc30d757fc7191e34 lldpd.initd"
diff --git a/testing/lldpd/fix-ppc64le-pathmax.patch b/testing/lldpd/fix-ppc64le-pathmax.patch
new file mode 100644
index 0000000000..0fe0f095f5
--- /dev/null
+++ b/testing/lldpd/fix-ppc64le-pathmax.patch
@@ -0,0 +1,10 @@
+--- a/src/daemon/priv.c
++++ b/src/daemon/priv.c
+@@ -36,6 +36,7 @@
+ #include <sys/utsname.h>
+ #include <sys/ioctl.h>
+ #include <netinet/if_ether.h>
++#include <limits.h>
+
+ #ifdef HAVE_LINUX_CAPABILITIES
+ #include <sys/capability.h>