openwrt/include
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: #16976
Link: https://github.com/openwrt/openwrt/pull/17008
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-11-19 11:24:07 +01:00
..
site build: remove ac_cv_header_netinet_sctp_h=no from pre-cached variables 2024-09-22 16:04:09 +02:00
autotools.mk include: autotools: do not symlink files in autoreconf 2024-08-29 20:04:02 +02:00
bpf.mk bpf: fix llvm version check 2024-09-09 10:36:47 +02:00
cmake.mk include: cmake.mk: honor CONFIG_DEBUG 2024-11-12 02:31:06 +00:00
debug.mk
default-packages.mk imagebuilder: move handling of DEFAULT_PACKAGES into shareable place 2024-11-17 19:29:06 +01:00
depends.mk
device_table.txt
download.mk download: don't overwrite VERSION variable 2024-04-29 08:39:25 +02:00
feeds.mk build: add APK package build capabilities 2024-05-17 23:21:26 +03:00
hardened-ld-pie.specs
hardening.mk
host-build.mk build: add support for host building in a subdirectory 2024-07-27 20:32:20 +02:00
image-commands.mk image: ignore errors from more commands 2024-10-30 14:17:34 +01:00
image.mk image: apk: remove explicit distfeeds handling 2024-11-17 11:57:45 +01:00
kernel-6.6 kernel: bump 6.6 to 6.6.61 2024-11-16 00:25:14 +01:00
kernel-build.mk kernel-build.mk: Fix multi-core build warning. 2024-10-06 13:49:39 +02:00
kernel-defaults.mk kernel: rework Initramfs compile cpio handling 2024-09-19 01:07:25 +02:00
kernel-version.mk
kernel.mk loongarch64: new target 2024-05-04 14:14:16 +08:00
logo.png
logo.svg
meson.mk include: meson.mk: honor CONFIG_DEBUG 2024-11-12 02:31:06 +00:00
netfilter.mk iptables: update to 1.8.10 2024-10-22 00:52:03 +02:00
nls.mk
openssl-module.mk
package-bin.mk
package-defaults.mk build: add support for PKG_SUBDIRS variable 2024-07-08 08:49:42 +02:00
package-dumpinfo.mk build: remove duplicate MAINTAINER from package-dumpinfo.mk 2024-05-07 22:24:10 +02:00
package-pack.mk include/package-pack: add default 'provider_priority' for APK packages 2024-11-19 11:24:07 +01:00
package-seccomp.mk
package.mk build: add support for PKG_SUBDIRS variable 2024-07-08 08:49:42 +02:00
prereq-build.mk prereq-build: limit python distutils check to <v3.12 2024-10-16 22:36:43 +02:00
prereq.mk
quilt.mk
rootfs.mk imagebuilder: fix APK for packages dir and cache 2024-11-09 16:46:35 +01:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk target,base-files: unify handling of procd-ujail 2024-11-17 19:29:06 +01:00
toolchain-build.mk
toplevel.mk toplevel.mk: add target feeds in 'make distclean' 2024-10-08 22:50:50 +02:00
trusted-firmware-a.mk include/trusted-firmware-a.mk: allow overriding package install template 2024-05-07 22:01:42 +02:00
u-boot.mk u-boot.mk: pass CROSS_COMPILE during config 2024-09-02 12:42:05 +02:00
uclibc++.mk
unpack.mk
verbose.mk
version.mk base-files: add SOURCE_DATE_EPOCH as OPENWRT_BUILD_DATE to os-release 2024-10-20 23:30:27 +02:00