since updating from net-firewall/ebtables-2.0.10.4 to net-firewall/ebtables-2.0.11-r2, my ebtables rules dont work anymore. The problem is with names for the -p option, such as "-p ! ipv6". With the previous version, it worked fine. With the new version, it seems the new names should be either "ip6" or "IPv6" if i trust /etc/ethertypes (no idea if the case is important). But none of those three work anymore, it fails with: Problem with the specified Ethernet protocol 'IPv6', perhaps /usr/share/doc/ebtables-2.0.11-r2/ethertypes is missing. My current workaround is to use the raw ID (86DD for ipv6), but I guess something is broken. The file /etc/ethtertypes is installed by net-misc/ethertypes-0, which seems ok to me. Reproducible: Always
the 2.0.10.4 release used a custom Makefile with a "SYSCONFIGDIR" to control the install of a defaults config file for the save/restore helper tools. we used that to install it as a doc to /usr/share/doc/. the 2.0.11 release switched to autotools and dropped that sysconfigdir logic. but autotools has a standard --sysconfdir setting that i think the person updating the ebuild mistook to mean the same thing as the old SYSCONFIGDIR knob. it controls where ebtables installs & looks for /etc/ethertypes.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b6b55aefb25bfe50d9f09e04f2ae52c492ecba commit 48b6b55aefb25bfe50d9f09e04f2ae52c492ecba Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2021-02-09 15:37:30 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2021-02-09 15:58:03 +0000 net-firewall/ebtables: fix path to /etc/ethertypes #765679 The --sysconfdir setting controls where ebtables looks for ethertypes, so don't use /usr/share/doc/ which is not guaranteed to exist, and is not where the ethertypes package installs its config. Switch back to the standard /etc path instead. This path logic was prob a mistake as part of the upgrade from the old 2.0.10.4 ebuild that had a similar named setting (SYSCONFIGDIR) but a different meaning which we wanted to install into /usr/share/doc/. Fixes: https://bugs.gentoo.org/765679 Signed-off-by: Mike Frysinger <vapier@gentoo.org> net-firewall/ebtables/ebtables-2.0.11-r3.ebuild | 107 ++++++++++++++++++++++++ 1 file changed, 107 insertions(+)
Hi. I've unmasked -r3 to test/check, and I can confirm it now works again. Thanks a lot !