hiredis: set rdepends on virtual-redis

Now hiredis can be used not only with Redis, but also with Valkey, an
open source key/value datastore that is fully compatible with Redis. As
Redis changed its license, many users have switched to Valkey. Add
RPROVIDES virtual-redis in both redis and valkey, and set it as the
runtime dependency of hiredis.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao 2025-03-11 22:54:27 +08:00 committed by Khem Raj
parent c08b0046f4
commit 59b904920b
No known key found for this signature in database
GPG Key ID: BB053355919D3314
4 changed files with 6 additions and 1 deletions

View File

@ -60,6 +60,7 @@ PREFERRED_PROVIDER_android-tools-conf ?= "android-tools-conf"
PREFERRED_PROVIDER_coreutils = "coreutils"
PREFERRED_PROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
PREFERRED_RPROVIDER_virtual-opencl-icd ?= "opencl-icd-loader"
PREFERRED_RPROVIDER_virtual-redis ?= "redis"
SIGGEN_EXCLUDERECIPES_ABISAFE += " \
fbset-modes \

View File

@ -35,5 +35,5 @@ do_install_ptest() {
FILES:${PN}-dev += "${datadir}/hiredis_ssl ${prefix}/build"
RDEPENDS:${PN} = "redis"
RDEPENDS:${PN} = "virtual-redis"
RDEPENDS:${PN}-ptest = "${@bb.utils.contains('PACKAGECONFIG', 'testssl', 'openssl-bin', '', d)}"

View File

@ -20,6 +20,8 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
SRC_URI[sha256sum] = "72c081e3b8cfae7144273d26d76736f08319000af46c01515cad5d29765cead5"
RPROVIDES:${PN} = "virtual-redis"
inherit autotools-brokensep pkgconfig update-rc.d systemd useradd
FINAL_LIBS:x86:toolchain-clang = "-latomic"

View File

@ -21,6 +21,8 @@ SRCREV = "d6a2f561e2751d4ab246ad084e4fa185526fa479"
S = "${WORKDIR}/git"
RPROVIDES:${PN} = "virtual-redis"
inherit autotools-brokensep pkgconfig update-rc.d systemd useradd
FINAL_LIBS:x86:toolchain-clang = "-latomic"