summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-03-08 20:17:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-09 09:17:03 -0800
commite49ac3eabba388444f83f96f068ed7c95f8a80be (patch)
tree06b7af46d7d04bf56833b4f61f47845b3981e04d /meta
parent72d33a8bd58fd5e58eff0cf8110db1a20c8bd4e2 (diff)
downloadpoky-e49ac3eabba388444f83f96f068ed7c95f8a80be.tar.gz
iptables: drop unnecessary patches
These were adding definitions for the second time (see bug #10450 for why) or adding an include that isn't anymore necessary for musl builds. (From OE-Core rev: bed5ea53c74c4b444b2145e7a83ca9fd44ea30ec) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch46
-rw-r--r--meta/recipes-extended/iptables/iptables/types.h-add-defines-that-are-required-for-if_packet.patch49
-rw-r--r--meta/recipes-extended/iptables/iptables_1.6.2.bb2
3 files changed, 0 insertions, 97 deletions
diff --git a/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch b/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch
deleted file mode 100644
index f1f85a6fa0..0000000000
--- a/meta/recipes-extended/iptables/iptables/0001-fix-build-with-musl.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1[PATCH] fix build with musl
2
3Define additional TCOPTS if not there
4u_initX types are in sys/types.h be explicit about it
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Signed-off-by: Maxin B. John <maxin.john@intel.com>
10---
11diff -Naur iptables-1.6.0-origin/extensions/libxt_TCPOPTSTRIP.c iptables-1.6.0/extensions/libxt_TCPOPTSTRIP.c
12--- iptables-1.6.0-origin/extensions/libxt_TCPOPTSTRIP.c 2015-12-09 14:55:06.000000000 +0200
13+++ iptables-1.6.0/extensions/libxt_TCPOPTSTRIP.c 2015-12-29 14:44:32.585327077 +0200
14@@ -12,6 +12,21 @@
15 #ifndef TCPOPT_MD5SIG
16 # define TCPOPT_MD5SIG 19
17 #endif
18+#ifndef TCPOPT_MAXSEG
19+#define TCPOPT_MAXSEG 2
20+#endif
21+#ifndef TCPOPT_WINDOW
22+#define TCPOPT_WINDOW 3
23+#endif
24+#ifndef TCPOPT_SACK_PERMITTED
25+#define TCPOPT_SACK_PERMITTED 4
26+#endif
27+#ifndef TCPOPT_SACK
28+#define TCPOPT_SACK 5
29+#endif
30+#ifndef TCPOPT_TIMESTAMP
31+#define TCPOPT_TIMESTAMP 8
32+#endif
33
34 enum {
35 O_STRIP_OPTION = 0,
36diff -Naur iptables-1.6.0-origin/include/linux/netfilter_ipv4/ip_tables.h iptables-1.6.0/include/linux/netfilter_ipv4/ip_tables.h
37--- iptables-1.6.0-origin/include/linux/netfilter_ipv4/ip_tables.h 2015-12-09 14:55:06.000000000 +0200
38+++ iptables-1.6.0/include/linux/netfilter_ipv4/ip_tables.h 2015-12-29 14:40:21.250469195 +0200
39@@ -15,6 +15,7 @@
40 #ifndef _IPTABLES_H
41 #define _IPTABLES_H
42
43+#include <sys/types.h>
44 #include <linux/types.h>
45
46 #include <linux/netfilter_ipv4.h>
diff --git a/meta/recipes-extended/iptables/iptables/types.h-add-defines-that-are-required-for-if_packet.patch b/meta/recipes-extended/iptables/iptables/types.h-add-defines-that-are-required-for-if_packet.patch
deleted file mode 100644
index 24ee29e2d1..0000000000
--- a/meta/recipes-extended/iptables/iptables/types.h-add-defines-that-are-required-for-if_packet.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From 19593491f43b70c1a71c3b9b8f4ff4fd14500014 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Fri, 23 Mar 2012 14:27:20 -0400
4Subject: [PATCH] types.h: add defines that are required for if_packet.h
5
6The iptables local linux/types.h overrides the kernel/sysroot
7types.h. As such, we need to provide some defines that are required
8to build against 3.2+ kernel headers.
9
10ifndef protection is provided for the defines to ensure that
11configuration that already have these defines are still buildable.
12
13This commit is temporary until a new version of iptables can be
14used that contains the defines.
15
16This is similar to the commit in the iptables git repository:
17
18 https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=dbe77cc974cee656eae37e75039dd1a410a4535b
19
20Upstream-Status: Backport
21
22Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
23---
24 include/linux/types.h | 10 ++++++++++
25 1 files changed, 10 insertions(+), 0 deletions(-)
26
27diff --git a/include/linux/types.h b/include/linux/types.h
28index 8b483c8..ebf6432 100644
29--- a/include/linux/types.h
30+++ b/include/linux/types.h
31@@ -34,5 +34,15 @@ typedef __u64 __bitwise __be64;
32 typedef __u16 __bitwise __sum16;
33 typedef __u32 __bitwise __wsum;
34
35+#ifndef __aligned_u64
36+#define __aligned_u64 __u64 __attribute__((aligned(8)))
37+#endif
38+#ifndef __aligned_be64
39+#define __aligned_be64 __be64 __attribute__((aligned(8)))
40+#endif
41+#ifndef __aligned_le64
42+#define __aligned_le64 __le64 __attribute__((aligned(8)))
43+#endif
44+
45 #endif /* __ASSEMBLY__ */
46 #endif /* _LINUX_TYPES_H */
47--
481.7.0.4
49
diff --git a/meta/recipes-extended/iptables/iptables_1.6.2.bb b/meta/recipes-extended/iptables/iptables_1.6.2.bb
index 628f5b7c4a..38a83d2b32 100644
--- a/meta/recipes-extended/iptables/iptables_1.6.2.bb
+++ b/meta/recipes-extended/iptables/iptables_1.6.2.bb
@@ -19,10 +19,8 @@ RRECOMMENDS_${PN} = "kernel-module-x-tables \
19FILES_${PN} =+ "${libdir}/xtables/ ${datadir}/xtables" 19FILES_${PN} =+ "${libdir}/xtables/ ${datadir}/xtables"
20 20
21SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \ 21SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \
22 file://types.h-add-defines-that-are-required-for-if_packet.patch \
23 file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \ 22 file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \
24 file://0002-configure.ac-only-check-conntrack-when-libnfnetlink-enabled.patch \ 23 file://0002-configure.ac-only-check-conntrack-when-libnfnetlink-enabled.patch \
25 file://0001-fix-build-with-musl.patch \
26" 24"
27 25
28SRC_URI[md5sum] = "7d2b7847e4aa8832a18437b8a4c1873d" 26SRC_URI[md5sum] = "7d2b7847e4aa8832a18437b8a4c1873d"