Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760246 - net-firewall/iptables resets eselect selection to xtables-legacy-multi when xtables-nft-multi was active
Summary: net-firewall/iptables resets eselect selection to xtables-legacy-multi when x...
Status: UNCONFIRMED
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: 2020-12-16 12:20 UTC by Oliver
Modified: 2020-12-17 13:23 UTC (History)
0 users

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 Oliver 2020-12-16 12:20:07 UTC
before installing net-firewall/iptables-1.8.5

# eselect iptables list
Available iptables symlink targets:
  [1]   xtables-legacy-multi
  [2]   xtables-nft-multi *

after finishing installing it becomes

# eselect iptables list
Available iptables symlink targets:
  [1]   xtables-legacy-multi *
  [2]   xtables-nft-multi

This is probably due to unconditionally "eselect iptables unset" in pkg_prerm without preserving the state. Later on in pkg_postinst it is set to the default (legacy) due to being unset at this point.


There is possibly another (cosmetic?) problem in pkg_postinst: in the "use nftables" part "setting to default (legacy)" is being logged but it actually sets it to nft...


Reproducible: Always

Steps to Reproduce:
1. eselect iptables set 2 (xtables-nft-multi)
2. eselect iptables show (to confirm)
3. emerge net-firewall/iptables
4. eselect iptables show

Actual Results:  
2. [2] xtables-nft-multi *

4. [1] xtables-legacy-multi *

Expected Results:  
4. [2] xtables-nft-multi *