From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 50758138334 for ; Mon, 3 Jun 2019 14:50:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AE0CE0824; Mon, 3 Jun 2019 14:50:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E705E0824 for ; Mon, 3 Jun 2019 14:50:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 566B134563B for ; Mon, 3 Jun 2019 14:50:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64B994D3 for ; Mon, 3 Jun 2019 14:50:54 +0000 (UTC) From: "Matthew Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Thode" Message-ID: <1559573448.9bf6443396a2c0cc12843670c920fc7ff7cb979b.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/openvswitch/files/, net-misc/openvswitch/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/openvswitch/files/0005-datapath-conntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch net-misc/openvswitch/openvswitch-2.11.1-r1.ebuild net-misc/openvswitch/openvswitch-2.11.1.ebuild X-VCS-Directories: net-misc/openvswitch/files/ net-misc/openvswitch/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matthew Thode X-VCS-Revision: 9bf6443396a2c0cc12843670c920fc7ff7cb979b X-VCS-Branch: master Date: Mon, 3 Jun 2019 14:50:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f428faa9-8015-4098-b873-2bf97447ec54 X-Archives-Hash: e2db1a4e68233e4429f87585d332f69a commit: 9bf6443396a2c0cc12843670c920fc7ff7cb979b Author: Matthew Thode gentoo org> AuthorDate: Mon Jun 3 14:49:48 2019 +0000 Commit: Matthew Thode gentoo org> CommitDate: Mon Jun 3 14:50:48 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bf64433 net-misc/openvswitch: fix building on newer kernels Fixes: https://bugs.gentoo.org/687186 Package-Manager: Portage-2.3.66, Repoman-2.3.13 Signed-off-by: Matthew Thode gentoo.org> ...nntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch | 46 ++++++++++++++++++++++ ...-2.11.1.ebuild => openvswitch-2.11.1-r1.ebuild} | 5 ++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/net-misc/openvswitch/files/0005-datapath-conntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch b/net-misc/openvswitch/files/0005-datapath-conntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch new file mode 100644 index 00000000000..1f77ab54b0a --- /dev/null +++ b/net-misc/openvswitch/files/0005-datapath-conntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch @@ -0,0 +1,46 @@ +From b89f391203c4420eb454cb321e799a64de809f52 Mon Sep 17 00:00:00 2001 +From: Yousong Zhou +Date: Fri, 3 May 2019 15:03:24 +0000 +Subject: [PATCH 5/5] datapath: conntrack: fix include for + IP6_DEFRAG_CONNTRACK_IN + +The enum definition is now inside include/net/ipv6_frag.h since upstream commit +70b095c ("ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module") which was +backported to stable trees (4.9, 4.14, 4.19) only these days. + +The error message + + CC [M] /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.o + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c: In function 'handle_fragments': + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:8: error: variable 'user' has initializer but incomplete type + enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone; + ^~~~~~~~~~~~~~~~ + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:32: error: 'IP6_DEFRAG_CONNTRACK_IN' undeclared (first use in this function); did you mean 'IP_DEFRAG_CONNTRACK_IN'? + enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone; + ^~~~~~~~~~~~~~~~~~~~~~~ + IP_DEFRAG_CONNTRACK_IN + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:32: note: each undeclared identifier is reported only once for each function it appears in + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:25: error: storage size of 'user' isn't known + enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone; + ^~~~ + /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:25: warning: unused variable 'user' [-Wunused-variable] + scripts/Makefile.build:326: recipe for target '/opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.o' failed + +Reference: https://github.com/openwrt/packages/issues/8548#issuecomment-488871090 +Signed-off-by: Yousong Zhou +--- + datapath/conntrack.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/datapath/conntrack.c b/datapath/conntrack.c +index a7dc9e0c3..69bda5a9c 100644 +--- a/datapath/conntrack.c ++++ b/datapath/conntrack.c +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #ifdef CONFIG_NF_NAT_NEEDED + #include diff --git a/net-misc/openvswitch/openvswitch-2.11.1.ebuild b/net-misc/openvswitch/openvswitch-2.11.1-r1.ebuild similarity index 96% rename from net-misc/openvswitch/openvswitch-2.11.1.ebuild rename to net-misc/openvswitch/openvswitch-2.11.1-r1.ebuild index a36bb2cdaa1..f2304f6ae35 100644 --- a/net-misc/openvswitch/openvswitch-2.11.1.ebuild +++ b/net-misc/openvswitch/openvswitch-2.11.1-r1.ebuild @@ -31,7 +31,10 @@ DEPEND="${RDEPEND} sys-apps/util-linux[caps] virtual/pkgconfig" -PATCHES="${FILESDIR}/xcp-interface-reconfigure-2.3.2.patch" +PATCHES=" + ${FILESDIR}/xcp-interface-reconfigure-2.3.2.patch + ${FILESDIR}/0005-datapath-conntrack-fix-include-for-IP6_DEFRAG_CONNTR.patch +" CONFIG_CHECK="~NET_CLS_ACT ~NET_CLS_U32 ~NET_SCH_INGRESS ~NET_ACT_POLICE ~IPV6 ~TUN" MODULE_NAMES="openvswitch(net:${S}/datapath/linux)"