RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES rpm/scripts/ rpm2cpio

From: Anders F Björklund <afb@rpm5.org>
Date: Sun 14 Oct 2007 - 17:32:12 CEST
Message-Id: <a97201cff09e26a30a849e2f90080066@rpm5.org>
Jeff Johnson wrote:

>> Shouldn't this use the new "lzma" command from LZMA Utils 4.32,
>> rather than the old "lzmash" shell wrapper script for LZMA SDK ?
>> (the old "lzma" command from LZMA Utils 4.27 and/or LZMA SDK has
>> now been renamed as "lzma_alone" instead, to avoid name conflicts)
>
> (aside) It never ceases to amaze me how much effort
> is put into toy scripts like gendiff and rpm2cpio in
> order to make them perfect. Scripts are disposable,
> just like diapers are.
>
> Here's an alternative rpm2cpio script from PLD:

> case "$comp" in
>     BZh)      dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 ;;
>     "$gz"*)   dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip ;;
>     # no magic in old lzma format, if unknown we assume that's lzma 
> for now
>     *)        dd if="$pkg" ibs=$o skip=1 2>/dev/null | lzma d -si -so 
> ;;
>     #*)        echo "Unrecognized rpm file: $pkg"; return 1 ;;
> esac

Similar issue with this one, it should probably use "lzma -dc"
rather than this old "lzma d -si -so" syntax (from LZMA SDK) ?

This lzma snippet / script above will give a syntax error when
using modern versions (from LZMA Utils): "invalid option -- s"

--anders
Received on Sun Oct 14 17:32:19 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.