summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2020-12-16 16:29:16 +0800
committerArmin Kuster <akuster808@gmail.com>2021-01-10 10:57:12 -0800
commitf5324e4cd84e4fc51800fbea6be1b857904142db (patch)
treea16173315f652895d968af5a1bc83f8551acdd51 /meta-networking
parentd6d0ef5cae7581e55b9c53390a26ae5f0b46ed74 (diff)
downloadmeta-openembedded-f5324e4cd84e4fc51800fbea6be1b857904142db.tar.gz
ebtables: do not install /etc/ethertypes
The /etc/ethertypes is provided by netbase since 6.0[1]. Do not instal the file in ebtables, otherwise there would be a conflict: Error: Transaction test error: file /etc/ethertypes conflicts between attempted installs of netbase-1:6.2-r0.corei7_64 and ebtables-2.0.10+4-r4.corei7_64 [1] https://salsa.debian.org/md/netbase/-/commit/316680c6a2c3641b6abc76b3eebf88781f609d35 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit af6f068632281f8abd42dd3e3301eddd2b0d3ae4) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/0001-Makefile-do-not-install-etc-ethertypes.patch35
-rw-r--r--meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb3
2 files changed, 37 insertions, 1 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/0001-Makefile-do-not-install-etc-ethertypes.patch b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/0001-Makefile-do-not-install-etc-ethertypes.patch
new file mode 100644
index 0000000000..65f5938809
--- /dev/null
+++ b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/0001-Makefile-do-not-install-etc-ethertypes.patch
@@ -0,0 +1,35 @@
1From d3d72c9ca6a0ce2597adb02c786de28268973ccd Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 16 Dec 2020 15:49:24 +0800
4Subject: [PATCH] Makefile: do not install /etc/ethertypes
5
6The /etc/ethertypes is provided by netbase since 6.0[1].
7Do not instal the file in ebtables, otherwise there would be a conflict:
8Error: Transaction test error:
9 file /etc/ethertypes conflicts between attempted installs of netbase-1:6.2-r0.corei7_64 and ebtables-2.0.10+4-r4.corei7_64
10
11[1] https://salsa.debian.org/md/netbase/-/commit/316680c6a2c3641b6abc76b3eebf88781f609d35)
12
13Upstream-Status: Inappropriate [embedded specific]
14
15Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
16---
17 Makefile | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/Makefile b/Makefile
21index 95651b6..85c5f98 100644
22--- a/Makefile
23+++ b/Makefile
24@@ -184,7 +184,7 @@ exec: ebtables ebtables-restore
25 install -m 0755 ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
26
27 .PHONY: install
28-install: $(MANDIR)/man8/ebtables.8 $(DESTDIR)$(ETHERTYPESFILE) exec scripts
29+install: $(MANDIR)/man8/ebtables.8 exec scripts
30 mkdir -p $(DESTDIR)$(LIBDIR)
31 install -m 0755 extensions/*.so $(DESTDIR)$(LIBDIR)
32 install -m 0755 *.so $(DESTDIR)$(LIBDIR)
33--
342.17.1
35
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
index 276784009f..bf523502e1 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
+++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e"
7SECTION = "net" 7SECTION = "net"
8PR = "r4" 8PR = "r4"
9 9
10RDEPENDS_${PN} += "bash" 10RDEPENDS_${PN} += "bash netbase"
11 11
12RRECOMMENDS_${PN} += "kernel-module-ebtables \ 12RRECOMMENDS_${PN} += "kernel-module-ebtables \
13 " 13 "
@@ -31,6 +31,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/ebtables/ebtables-v${PV}.tar.gz \
31 file://0007-extensions-Use-stdint-types.patch \ 31 file://0007-extensions-Use-stdint-types.patch \
32 file://0008-ethernetdb.h-Remove-C-specific-compiler-hint-macro-_.patch \ 32 file://0008-ethernetdb.h-Remove-C-specific-compiler-hint-macro-_.patch \
33 file://0009-ebtables-Allow-RETURN-target-rules-in-user-defined-c.patch \ 33 file://0009-ebtables-Allow-RETURN-target-rules-in-user-defined-c.patch \
34 file://0001-Makefile-do-not-install-etc-ethertypes.patch \
34 " 35 "
35 36
36SRC_URI_append_libc-musl = " file://0010-Adjust-header-include-sequence.patch" 37SRC_URI_append_libc-musl = " file://0010-Adjust-header-include-sequence.patch"