openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.48k forks source link

strongswan-mod-updown requires legacy iptables #22327

Open marek22k opened 1 year ago

marek22k commented 1 year ago

Describe the bug

Hello,

currently strongswan-mod-updown requires iptables legacy. Removing the package is not so easy either, since packages like strongswan-default depend on it. Maybe strongswan-mod-updown could be removed from strongswan-default and strongswan-full?

# opkg remove strongswan-mod-updown
No packages removed.
Collected errors:
 * print_dependents_warning: Package strongswan-mod-updown is depended upon by packages:
 * print_dependents_warning:    strongswan-default
 * print_dependents_warning: These might cease to work if package strongswan-mod-updown is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.

Terms

brada4 commented 1 year ago

It should be reported to ../packages (somebody will move it there, dont double report) You can satisfy iptables dependency with iptables-nft and remove/not install iptables-legacy. iptables-mod-ipsec will remain required in this case and that should be noted here in place of 'iptables' blanked dependency https://github.com/openwrt/packages/blob/5b3e517be4a1d2674fc12ea81a60ba885423758a/net/strongswan/Makefile#L736