summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2024-07-10 22:02:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-13 23:28:30 +0100
commitda04237311b3f8bf80a7a82c05fc9de3c0d26ada (patch)
tree65e32cdfd99952a53b2f46e382542268789fc648 /meta/recipes-extended
parenta1840d0986fe9c9dc6451bccacf1d900ef1ee6a1 (diff)
downloadpoky-da04237311b3f8bf80a7a82c05fc9de3c0d26ada.tar.gz
iptables: remove /etc/ethertypes
When building an image including iptable built with the libnftnl PACKAGECONFIG, one hits Downloading file:.../oe-rootfs-repo/armv8a/libkmod2 * check_data_file_clashes: Package iptables wants to install file .../rootfs/etc/ethertypes But that file is already provided by package * netbase This used to be handled by 0003-Makefile.am-do-not-install-etc-ethertypes.patch, but that patch got removed with the 1.8.9->1.8.10 upgrade (commit 4616ada82e70). I think the rationale for dropping the patch was wrong; the commit log talks about xtables.conf, which is indeed gone from upstream, but said patch didn't change anything about xtables.conf, it did -dist_conf_DATA = etc/ethertypes etc/xtables.conf +dist_conf_DATA = etc/xtables.conf However, instead of patching iptables to not install ethertypes, and having to forward-port that patch, it is much simpler to just remove the file in this do_install:append. (From OE-Core rev: 3b9c8d5c26a48123d3845c93f6e04d430569e6a2) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/iptables/iptables_1.8.10.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/iptables/iptables_1.8.10.bb b/meta/recipes-extended/iptables/iptables_1.8.10.bb
index 86f1335ac8..81eba6c967 100644
--- a/meta/recipes-extended/iptables/iptables_1.8.10.bb
+++ b/meta/recipes-extended/iptables/iptables_1.8.10.bb
@@ -75,6 +75,8 @@ do_install:append() {
75 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables 75 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables
76 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables-save 76 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables-save
77 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables-restore 77 ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables-restore
78 # ethertypes is provided by the netbase package
79 rm -f ${D}${sysconfdir}/ethertypes
78 fi 80 fi
79} 81}
80 82