diff options
Diffstat (limited to 'repo/bridge-utils')
-rw-r--r-- | repo/bridge-utils/bridge-utils.xibuild | 32 | ||||
-rw-r--r-- | repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch | 26 |
2 files changed, 58 insertions, 0 deletions
diff --git a/repo/bridge-utils/bridge-utils.xibuild b/repo/bridge-utils/bridge-utils.xibuild new file mode 100644 index 0000000..cc94b7b --- /dev/null +++ b/repo/bridge-utils/bridge-utils.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="bridge-utils" +DESC="Tools for configuring the Linux kernel 802.1d Ethernet Bridge" + +MAKEDEPS="autoconf linux-headers" + +PKG_VER=1.7.1 +SOURCE="https://git.kernel.org/pub/scm/network/bridge/bridge-utils.git/snapshot/bridge-utils-$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-PATH_MAX-on-ppc64le.patch +" + +prepare() { + apply_patches + autoconf +} + +build() { + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --libdir=/usr/lib \ + --includedir=/usr/include + make +} + +package() { + make install DESTDIR="$PKG_DEST" +} + diff --git a/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch b/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch new file mode 100644 index 0000000..3fa75b9 --- /dev/null +++ b/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch @@ -0,0 +1,26 @@ +Author: Milan P. Stanić <mps@arvanta.net> +Date: Sun May 30 07:40:11 2021 +0000 + +Fix missing PATH_MAX on ppc64le + +--- a/libbridge/libbridge_devif.c 2021-05-30 07:59:46.533574878 +0000 ++++ b/libbridge/libbridge_devif.c 2021-05-30 08:01:09.964036452 +0000 +@@ -24,6 +24,7 @@ + #include <string.h> + #include <dirent.h> + #include <fcntl.h> ++#include <limits.h> + + #include "libbridge.h" + #include "libbridge_private.h" + +--- a/libbridge/libbridge_init.c 2021-05-30 08:00:15.983737797 +0000 ++++ b/libbridge/libbridge_init.c 2021-05-30 08:00:49.573923635 +0000 +@@ -24,6 +24,7 @@ + #include <dirent.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <limits.h> + + #include "libbridge.h" + #include "libbridge_private.h" |