FS#75101 - [networkmanager] Strange iptables dependendies

Attached to Project: Arch Linux
Opened by Emil (xexaxo) - Friday, 17 June 2022, 17:37 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 03 May 2023, 09:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Currently networkmanager makedepends on iptables-nft, while it optdepends on iptables.
The two packages provide API and ABI compatible library, where the executables provided vary.

During the build we depend only on the iptables library, so the makedepends could be fixed to iptables - the package that is already installed as part of base-devel.
While for runtime we could swap to `iptables-nft` - honestly I don't the networkmanager internals to judge if that's wise or not.

Additional info:
* package version(s)
networkmanager 1.38.2-1
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 03 May 2023, 09:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in trunk, pending next release
Comment by Toolybird (Toolybird) - Monday, 01 August 2022, 07:10 GMT
> the package that is already installed as part of base-devel

??? I don't see it in a fresh clean chroot. Did you mean base?

Anyway, does it really matter much? I think not. The libs/includes are identical for the build. The optdep is a minor thing. (It would be nice if we could one day get rid of the legacy cruft.)
Comment by Emil (xexaxo) - Saturday, 18 February 2023, 20:34 GMT
In the practical sense this bug means one cannot do a build in automated way. Namely `makepkg --syncdeps` results in a failure as below:

```
:: iptables-nft and iptables are in conflict. Remove iptables? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: iptables-nft and iptables are in conflict
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
...
-> iptables-nft
==> ERROR: Could not resolve all dependencies.
```

For the sake of completeness: just built networkmanager with iptables and iptables-nft - the resulting packages are identical, modulo timestamps.
Is there anything I can do to move this forward?
Comment by Emil (xexaxo) - Tuesday, 02 May 2023, 13:13 GMT
Humble poke? This bug is hindering automated builds and the resulting package is practically identical.

The fix is as simple as:
- sed 's/iptables-nft/iptables/g' PKGBUILD

Loading...