George Sapkin 5ed650acbf build: add support for virtual provides
Allow defining virtual provides using the PROVIDES field by prefixing
them with @, e.g.:

PROVIDES:=@ca-certs

Virtual provides don't own the provided name and multiple packages with
the same virtual provides can be installed side-by-side. Packages must
still take care not to override each other's files.

Add an implicit self-provide to packages. apk can't handle self
provides, be it versioned or virtual, so opt for a suffix instead. This
allows several variants to provide the same virtual package without
adding extra provides to the default one, e.g. wget implicitly provides
wget-any and is marked as default, so wget-ssl can explicitly provide
@wget-any as well.

Filter out virtual provides when generating metadata.

Filter out virtual provides prefix and self provide where appropriate.

Signed-off-by: George Sapkin <george@sapk.in>
Link: https://github.com/openwrt/openwrt/pull/21288
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-12-31 18:16:48 +01:00
..
2021-02-05 14:54:47 +01:00
2025-12-12 22:06:06 +00:00
2024-12-02 19:30:22 +00:00
2024-10-22 00:52:03 +02:00
2022-11-27 00:52:06 +01:00
2025-10-20 00:55:06 +02:00
2025-11-27 20:26:37 +01:00
2025-09-27 22:04:57 +02:00
2021-10-24 18:20:50 +02:00