From c0b99a4cedf534fa1cdc1437a74a66b73afe3346 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 28 Aug 2013 09:43:44 +0200 Subject: [PATCH] bridge-utils: Fix compiling package. --- lfs/bridge-utils | 2 ++ make.sh | 2 +- .../bridge-utils-1.5-compile-fix-1.patch | 31 +++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/patches/bridge-utils-1.5-compile-fix-1.patch diff --git a/lfs/bridge-utils b/lfs/bridge-utils index 7ada05d633..c7bc8a8eb6 100644 --- a/lfs/bridge-utils +++ b/lfs/bridge-utils @@ -70,6 +70,8 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bridge-utils-1.5-compile-fix-1.patch + cd $(DIR_APP) && find . -name Makefile.in | xargs sed -i -e "s/^KERNEL_HEADERS/#&/g" cd $(DIR_APP) && autoreconf -vfi cd $(DIR_APP) && ./configure --prefix=/usr cd $(DIR_APP) && make $(MAKETUNING) diff --git a/make.sh b/make.sh index a700da4371..589a7fdc04 100755 --- a/make.sh +++ b/make.sh @@ -600,7 +600,7 @@ buildipfire() { ipfiremake sudo ipfiremake mc ipfiremake wget -# ipfiremake bridge-utils + ipfiremake bridge-utils ipfiremake screen ipfiremake smartmontools ipfiremake htop diff --git a/src/patches/bridge-utils-1.5-compile-fix-1.patch b/src/patches/bridge-utils-1.5-compile-fix-1.patch new file mode 100644 index 0000000000..c2696086e3 --- /dev/null +++ b/src/patches/bridge-utils-1.5-compile-fix-1.patch @@ -0,0 +1,31 @@ +From 5eebb7f9288b7881ffb929b1fd494fe3ac3be27d Mon Sep 17 00:00:00 2001 +From: Russell Senior +Date: Wed, 06 Mar 2013 20:49:42 +0000 +Subject: bridge-utils: Fix compile against linux-3.8.x + +Linux 3.8 has a header, include/uapi/linux/if_bridge.h that uses a +struct in6_addr but doesn't define it. The trivial seeming fix of +including the header that does define it causes more problems. The +problem was discussed on mailing lists in January 2013. The final +suggestion I found was here: + + http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html + +This is intended to implement that suggestion. + +Signed-off-by: Russell Senior +--- +diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h +index 39964f2..dd14bae 100644 +--- a/libbridge/libbridge.h ++++ b/libbridge/libbridge.h +@@ -20,6 +20,7 @@ + #define _LIBBRIDGE_H + + #include ++#include + #include + #include + +-- +cgit v0.9.2 -- 2.39.2