libio-compress-perl: Use update alternatives for streamzip and zipdetails

these utilities are also provided by perl-misc package built by
perl recipe. Prefer the one's provided by libio-compress-perl
if its included.

Fixes https://github.com/riscv/meta-riscv/issues/374

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-06-14 21:34:52 -07:00
parent 96097f84dc
commit 909908a451
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -38,4 +38,12 @@ RDEPENDS:${PN} += "\
libcompress-raw-zlib-perl \
"
inherit update-alternatives
ALTERNATIVE_PRIORITY = "39"
ALTERNATIVE:${PN} = "streamzip zipdetails"
ALTERNATIVE_LINK_NAME[streamzip] = "${bindir}/streamzip"
ALTERNATIVE_LINK_NAME[zipdetails] = "${bindir}/zipdetails"
BBCLASSEXTEND = "native"