rpm2cpio.sh calls xzcat to decompress,and xzcat is equivalent to: xz --decompress --stdout (-d and -c, in short)
Since commit d1930f8, it is assumed that xz is provided, but 'xzcat' used in rpm2cpio.sh is not listed in HOSTTOOLS. With it being only a symlink, and with commit eb3ec74 replacing bzip2 with bunzip2 in a similar way, this fixes the bin_package class for rpm without adding xzcat to HOSTTOOLS. Signed-off-by: Florin Diaconescu <[email protected]> --- scripts/rpm2cpio.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rpm2cpio.sh b/scripts/rpm2cpio.sh index 8199b43784..9343f70ea3 100755 --- a/scripts/rpm2cpio.sh +++ b/scripts/rpm2cpio.sh @@ -58,7 +58,7 @@ hdrsize=$rsize case "$(_dd $offset bs=2 count=1 | tr -d '\0')" in "$(printf '\102\132')") _dd $offset | bunzip2 ;; # '\x42\x5a' "$(printf '\037\213')") _dd $offset | gunzip ;; # '\x1f\x8b' - "$(printf '\375\067')") _dd $offset | xzcat ;; # '\xfd\x37' + "$(printf '\375\067')") _dd $offset | xz -dc ;; # '\xfd\x37' "$(printf '\135')") _dd $offset | unlzma ;; # '\x5d\x00' "$(printf '\050\265')") _dd $offset | unzstd ;; # '\x28\xb5' *) fatal "Unrecognized payload compression format in rpm file: $pkg" ;;
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#238856): https://lists.openembedded.org/g/openembedded-core/message/238856 Mute This Topic: https://lists.openembedded.org/mt/119817707/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
