Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

olsrd: fix APK package build #1085

Closed
wants to merge 1 commit into from
Closed

Conversation

pktpls
Copy link

@pktpls pktpls commented Nov 13, 2024

Maintainer: @PolynomialDivision hi :)
Compile tested: x86_64
Run tested: x86/64

Description:

Can't use the iptables meta packages apparantly:

ERROR: unable to select packages:
  ip6tables (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: ip6tables-nft
                 ip6tables-zz-legacy
    required by: world[ip6tables]
                 olsrd-2024.06.09~d72be9ad-r1[ip6tables]
  iptables (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: iptables-nft iptables-zz-legacy
    required by: olsrd-2024.06.09~d72be9ad-r1[iptables]

@pktpls
Copy link
Author

pktpls commented Nov 14, 2024

Please backport to openwrt-24.10 branch as well, just in case it's decided to activate APK there as well ❤️

@PolynomialDivision
Copy link
Member

But we wanted the user to be able to select the correct dependency themselves? If someone wants to use iptables, they should do. Maybe deleting the dependency completely would be a solution?

@pktpls
Copy link
Author

pktpls commented Nov 14, 2024

But we wanted the user to be able to select the correct dependency themselves? If someone wants to use iptables, they should do. Maybe deleting the dependency completely would be a solution?

Yes you're probably right, better to not force iptables-nft. I'll update it

With the switch from OPKG to APK, we can't continue the
sloppy use of virtual packages. We now need to specify the
providing package. We don't want to force iptables-nft on
everyone though. The simplest solution is to drop the
dependency entirely - users will most likely already
depend on it separately.

For reference, the attempt to install the virtual package
results in the following error from APK:

ERROR: unable to select packages:
  ip6tables (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: ip6tables-nft
                 ip6tables-zz-legacy
    required by: olsrd-2024.06.09~d72be9ad-r1[ip6tables]
  iptables (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: iptables-nft iptables-zz-legacy
    required by: olsrd-2024.06.09~d72be9ad-r1[iptables]

Suggested-by: Packet Please <[email protected]>
Link: openwrt#1085
[Due to the real name policy, list the author as me, with
permission granted by Packet Please.]
Signed-off-by: Nick Hainke <[email protected]>
@PolynomialDivision
Copy link
Member

I changed the author to myself to ensure a valid sign-off, with approval from @pktpls. It seems the real name discussion is still ongoing: openwrt/actions-shared-workflows@12d9551

@pktpls
Copy link
Author

pktpls commented Nov 15, 2024

This PR is not needed, sorry, I was using it wrong 😬

If any packages declares iptables/ip6tables as its dependency, then something needs to select a package providing it. I just selected iptables-nft and ip6tables-nft further up the dependency tree, and it's now fine.

The change with APK is not that we can't depend on virtual packages anymore, it's apparantly that there's no default provider selection anymore.

@pktpls pktpls closed this Nov 15, 2024
@pktpls pktpls deleted the olsrd-apk branch November 15, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants