diff --git a/0001-fix-compilation-warning.patch b/0001-fix-compilation-warning.patch new file mode 100644 index 0000000..62e2bbd --- /dev/null +++ b/0001-fix-compilation-warning.patch @@ -0,0 +1,25 @@ +From 146f762e1b4be613fad4b045c67974c000742647 Mon Sep 17 00:00:00 2001 +From: Petri Gynther +Date: Sun, 24 Feb 2013 10:56:59 +0100 +Subject: [PATCH 1/9] fix compilation warning + +--- + communication.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/communication.c b/communication.c +index 62ed667..ba058c0 100644 +--- a/communication.c ++++ b/communication.c +@@ -282,7 +282,7 @@ static int store_counters_in_file(char *filename, struct ebt_u_replace *repl) + } + close_file: + fclose(file); +- return 0; ++ return ret; + } + + /* Gets executed after ebt_deliver_table. Delivers the counters to the kernel +-- +2.1.4 + diff --git a/ebtables.changes b/ebtables.changes index 762e57b..2ad9eb7 100644 --- a/ebtables.changes +++ b/ebtables.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 29 15:07:16 UTC 2015 - bwiedemann@suse.com + +- fix compilation + add include-linux-if.patch 0001-fix-compilation-warning.patch + ------------------------------------------------------------------- Tue Jun 16 11:19:33 UTC 2015 - kstreitova@suse.com diff --git a/ebtables.spec b/ebtables.spec index e0f0d04..9ed5677 100644 --- a/ebtables.spec +++ b/ebtables.spec @@ -30,6 +30,10 @@ Patch0: %name-v2.0.8-makefile.diff Patch1: %name-v2.0.8-initscript.diff # PATCH-FIX-UPSTREAM bnc#934680 kstreitova@suse.comĀ -- audit patch for CC certification Patch2: ebtables-v2.0.10-4-audit.patch +# PATCH-FIX-UPSTREAM +Patch3: 0001-fix-compilation-warning.patch +# PATCH-FIX-SUSE-ONLY +Patch4: include-linux-if.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: linux-glibc-devel >= 2.6.20 BuildRequires: sed @@ -46,10 +50,8 @@ iptables. There are no incompatibility issues. %setup -q -n %name-v2.0.10-4 %patch -P 0 -P 1 -p0 %patch2 -p1 - -%build -# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267] -export SUSE_ASNEEDED=0 +%patch3 -p1 +%patch4 -p1 # delete all kernel headers, but keep ebt_ip6.h and ebt_nflog.h mv include/linux/netfilter_bridge/ebt_ip6.{h,h.save} mv include/linux/netfilter_bridge/ebt_nflog.{h,h.save} @@ -59,6 +61,10 @@ rm -f include/linux/netfilter_bridge/*.h mv include/linux/netfilter_bridge/ebt_ip6.{h.save,h} mv include/linux/netfilter_bridge/ebt_nflog.{h.save,h} mv include/linux/netfilter_bridge/ebt_ulog.{h.save,h} + +%build +# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267] +export SUSE_ASNEEDED=0 make \ CFLAGS="%optflags" \ CXXFLAGS="%optflags" \ diff --git a/include-linux-if.patch b/include-linux-if.patch new file mode 100644 index 0000000..941ea81 --- /dev/null +++ b/include-linux-if.patch @@ -0,0 +1,12 @@ +diff --git a/include/ebtables_u.h b/include/ebtables_u.h +index 35a5bcc..f120eb8 100644 +--- a/include/ebtables_u.h ++++ b/include/ebtables_u.h +@@ -24,6 +24,7 @@ + #ifndef EBTABLES_U_H + #define EBTABLES_U_H + #include ++#include + #include + #include +