Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765679 - net-firewall/ebtables doesn't recognize names anymore
Summary: net-firewall/ebtables doesn't recognize names anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-16 19:41 UTC by Thomas Capricelli
Modified: 2021-02-12 16:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2021-01-16 19:41:42 UTC
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
Comment 1 SpanKY gentoo-dev 2021-02-09 15:37:21 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2021-02-09 15:59:26 UTC
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(+)
Comment 3 Thomas Capricelli 2021-02-12 16:15:07 UTC
Hi. I've unmasked -r3 to test/check, and I can confirm it now works again. Thanks a lot !