diff options
| -rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables-2.0.11/0001-Makefile.am-do-not-install-etc-ethertypes.patch | 34 | ||||
| -rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | 4 |
2 files changed, 35 insertions, 3 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/0001-Makefile.am-do-not-install-etc-ethertypes.patch b/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/0001-Makefile.am-do-not-install-etc-ethertypes.patch new file mode 100644 index 0000000000..f2dbb552ea --- /dev/null +++ b/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/0001-Makefile.am-do-not-install-etc-ethertypes.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From a822e8dbca017e426a4c1c3ca835d0d03cbb4a4d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
| 3 | Date: Thu, 31 Dec 2020 16:09:56 +0800 | ||
| 4 | Subject: [PATCH] Makefile.am: do not install /etc/ethertypes | ||
| 5 | |||
| 6 | The /etc/ethertypes is provided by netbase since 6.0[1]. | ||
| 7 | Do not instal the file in ebtables, otherwise there would be a conflict: | ||
| 8 | Error: 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 | |||
| 13 | Upstream-Status: Inappropriate [embedded specific] | ||
| 14 | |||
| 15 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 16 | --- | ||
| 17 | Makefile.am | 1 - | ||
| 18 | 1 file changed, 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/Makefile.am b/Makefile.am | ||
| 21 | index b879941..2237002 100644 | ||
| 22 | --- a/Makefile.am | ||
| 23 | +++ b/Makefile.am | ||
| 24 | @@ -26,7 +26,6 @@ AM_CFLAGS = ${regular_CFLAGS} | ||
| 25 | |||
| 26 | sbin_PROGRAMS = ebtables-legacy ebtablesd ebtablesu ebtables-legacy-restore | ||
| 27 | EXTRA_PROGRAMS = static examples/ulog/test_ulog | ||
| 28 | -sysconf_DATA = ethertypes | ||
| 29 | sbin_SCRIPTS = ebtables-legacy-save | ||
| 30 | man8_MANS = ebtables-legacy.8 | ||
| 31 | lib_LTLIBRARIES = libebtc.la | ||
| 32 | -- | ||
| 33 | 2.17.1 | ||
| 34 | |||
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb index be21c372d9..c13ed7b3bf 100644 --- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb +++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb | |||
| @@ -12,6 +12,7 @@ RRECOMMENDS_${PN} += "kernel-module-ebtables \ | |||
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | SRC_URI = "http://ftp.netfilter.org/pub/ebtables/ebtables-${PV}.tar.gz \ | 14 | SRC_URI = "http://ftp.netfilter.org/pub/ebtables/ebtables-${PV}.tar.gz \ |
| 15 | file://0001-Makefile.am-do-not-install-etc-ethertypes.patch \ | ||
| 15 | file://ebtables-legacy-save \ | 16 | file://ebtables-legacy-save \ |
| 16 | file://ebtables.common \ | 17 | file://ebtables.common \ |
| 17 | file://ebtables.service \ | 18 | file://ebtables.service \ |
| @@ -25,9 +26,6 @@ SRC_URI[sha256sum] = "b71f654784a726329f88b412ef7b96b4e5d786ed2bd28193ed7b4c0d67 | |||
| 25 | inherit systemd autotools | 26 | inherit systemd autotools |
| 26 | 27 | ||
| 27 | do_install_append () { | 28 | do_install_append () { |
| 28 | #This file has been provided by netbase | ||
| 29 | rm -f ${D}${sysconfdir}/ethertypes | ||
| 30 | |||
| 31 | # Replace upstream ebtables-save perl script with Fedora bash based rewrite | 29 | # Replace upstream ebtables-save perl script with Fedora bash based rewrite |
| 32 | # http://pkgs.fedoraproject.org/cgit/rpms/ebtables.git/tree/ebtables-save | 30 | # http://pkgs.fedoraproject.org/cgit/rpms/ebtables.git/tree/ebtables-save |
| 33 | rm -f ${D}${sbindir}/ebtables-legacy-save | 31 | rm -f ${D}${sbindir}/ebtables-legacy-save |
