Robert Marko dea839773c include/package-pack: add default 'provider_priority' for APK packages
Currently, trying to use APK to install a package that has a dependency on
a virtual package that needs to be resolved via 'provides' it will fail if
package does not have 'DEFAULT_VARIANT:=1' like:
apk add usbutils
ERROR: unable to select packages:
  libudev (virtual):
    note: please select one of the 'provided by' packages explicitly
    provided by: libudev-zero
    required by: usbutils-017-r1[libudev]

Issue is that we dont set 'provider_priority' that APK uses to break ties
when choosing a virtual package to satisfy a dependency and thus despite
only one package providing the dependency it will still end up with a tie
and just error out.

So, lets simply fix this by providing a default value for
'provider_priority' when 'DEFAULT_VARIANT' is not set and then APK will
be able to resolve dependencies.

Fixes: 
Link: https://github.com/openwrt/openwrt/pull/17008
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-11-19 11:24:07 +01:00
..
2024-09-09 10:36:47 +02:00
2024-11-12 02:31:06 +00:00
2021-02-05 14:54:47 +01:00
2024-11-16 00:25:14 +01:00
2024-05-04 14:14:16 +08:00
2024-11-12 02:31:06 +00:00
2024-10-22 00:52:03 +02:00
2022-11-27 00:52:06 +01:00
2023-04-05 08:24:49 -03:00
2021-10-24 18:20:50 +02:00