It appears like net-firewall/ebtable and net-firewall/iptables both try to install /etc/ethertype when it doesn't exist on the system yet. A binpkg of those 2 packages, which have built when /etc/ethertype not exist, couldn't be installed into the system which already has installed /etc/ethertype because it results to a confliction error.
Confirmed repro with: - net-firewall/iptables-1.6.1-r2 - net-firewall/ebtables-2.0.10.4 ==== >>> Installing (6 of 46) net-firewall/ebtables-2.0.10.4::gentoo * checking 34 files for package collisions * This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at https://bugs.gentoo.org/ unless you report exactly * which two packages install the same file(s). See * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how * to solve the problem. And once again, please do NOT file a bug report * unless you have completely understood the above message. * * Detected file collision(s): * * /etc/ethertypes * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * net-firewall/iptables-1.6.1-r2:0::gentoo * /etc/ethertypes * * Package 'net-firewall/ebtables-2.0.10.4' NOT merged due to file * collisions. If necessary, refer to your elog messages for the whole * content of the above message.
Trying to workaround this issue by manually creating /etc/ethertypes before
I'm trying to workaround this issue by creating /etc/ethertypes before building ebtables and iptables binpkg. Now portage handles /etc/ethertypes as a configuration file -- perhaps this is a Portage bug?
also, they disagree on the content of the file: --- /etc/ethertypes 2018-02-21 18:31:59.000000000 +0000 +++ /etc/._cfg0000_ethertypes 2018-03-07 14:45:30.934651624 +0000 @@ -5,7 +5,6 @@ # # This list could be found on: # http://www.iana.org/assignments/ethernet-numbers -# http://www.iana.org/assignments/ieee-802-numbers # # <name> <hexnumber> <alias1>...<alias35> #Comment # @@ -22,16 +21,15 @@ DIAG 6005 # DEC Diagnostics CUST 6006 # DEC Customer use SCA 6007 # DEC Systems Comms Arch -TEB 6558 # Trans Ether Bridging [RFC1701] -RAW_FR 6559 # Raw Frame Relay [RFC1701] -RARP 8035 # Reverse ARP [RFC903] +TEB 6558 # Trans Ether Bridging [RFC1701] +RAW_FR 6559 # Raw Frame Relay [RFC1701] AARP 80F3 # Appletalk AARP -ATALK 809B # Appletalk +ATALK 809B # Appletalk 802_1Q 8100 8021q 1q 802.1q dot1q # 802.1Q Virtual LAN tagged frame IPX 8137 # Novell IPX NetBEUI 8191 # NetBEUI IPv6 86DD ip6 # IP version 6 -PPP 880B # PPP +PPP 880B # PPP ATMMPOA 884C # MultiProtocol over ATM PPP_DISC 8863 # PPPoE discovery messages PPP_SES 8864 # PPPoE session messages >> (1 of 1) -- /etc/ethertypes >> q quit, h help, n next, e edit-new, z zap-new, u use-new m merge, t toggle-merge, l look-merge: seed-server /etc/portage # seed-server /etc/portage # seed-server /etc/portage # qfile /etc/ethertypes net-firewall/ebtables (/etc/ethertypes) net-firewall/iptables (/etc/ethertypes)
Arch Linux resolved this by removing the file from ebtables and making ebtables depend on iptables. https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ebtables&id=a546501118477e20fbcba6f9ffd5e8d19681dba9 The Arch iptables package always has nftables enabled, which triggers the /etc/ethertypes installation; that's not always the case on Gentoo. I think a more flexible solution for Gentoo would be to move this file to a separate package and make both iptables and ebtables depend on that.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fd85eaae9e4af4c6f4da0bcc14051616abadcd4 commit 6fd85eaae9e4af4c6f4da0bcc14051616abadcd4 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-03-07 18:08:53 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-03-07 19:26:35 +0000 net-firewall/iptables: drop /etc/ethertypes Bug: https://bugs.gentoo.org/647458 Package-Manager: Portage-2.3.24_p18, Repoman-2.3.6_p99 net-firewall/iptables/iptables-1.6.1-r3.ebuild | 10 +- net-firewall/iptables/iptables-1.6.2-r1.ebuild | 10 +- net-firewall/iptables/iptables-1.6.2-r2.ebuild | 122 +++++++++++++++++++++++++ 3 files changed, 138 insertions(+), 4 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca9ad0c216ce9301b176b362168aac8926922452 commit ca9ad0c216ce9301b176b362168aac8926922452 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-03-07 17:43:52 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-03-07 19:26:35 +0000 net-firewall/ebtables: drop /etc/ethertypes Bug: https://bugs.gentoo.org/647458 Package-Manager: Portage-2.3.24_p18, Repoman-2.3.6_p99 net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild | 5 +- net-firewall/ebtables/ebtables-2.0.10.4-r2.ebuild | 72 +++++++++++++++++++++++ net-firewall/ebtables/ebtables-2.0.10.4.ebuild | 5 ++ 3 files changed, 81 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=680faf42b0ae15a0a0c75e4fff87ed7927e1aaa0 commit 680faf42b0ae15a0a0c75e4fff87ed7927e1aaa0 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-03-07 17:38:52 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-03-07 19:26:32 +0000 net-misc/ethertypes: new package to resolve file collision Bug: https://bugs.gentoo.org/647458 Package-Manager: Portage-2.3.24_p18, Repoman-2.3.6_p99 net-misc/ethertypes/Manifest | 1 + net-misc/ethertypes/ethertypes-0.ebuild | 25 +++++++++++++++++++++++++ net-misc/ethertypes/metadata.xml | 7 +++++++ 3 files changed, 33 insertions(+)}