]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/rpm2cpio.sh: Use 'xz -dc' instead of xzcat
authorFlorin Diaconescu <florin.diaconescu009@gmail.com>
Mon, 15 Jun 2026 15:39:44 +0000 (18:39 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2026 10:22:50 +0000 (11:22 +0100)
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 <florin.diaconescu009@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
scripts/rpm2cpio.sh

index 8199b43784d794d00f5d89866d3d1d66f7e8fa8f..9343f70ea3d8a09f558dbc9c7e750f0595f633e4 100755 (executable)
@@ -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" ;;