RPM Community Forums

Mailing List Message of <rpm-devel>

isCompressed reports tarballs to be LZMA files

From: Alex Myltsev <avm@altlinux.org>
Date: Sun 24 Jun 2007 - 23:50:56 CEST
Message-ID: <ffae7d540706241450g10e207d8xe4c84ebf7f48007c@mail.gmail.com>
In ALT Linux we often use uncompressed tarballs as RPM Source files.
RPM's LZMA compression support breaks our packages: in many cases, the
tarball will contain zeroes at offsets 9..12, and isCompressed() will
report it to be an LZMA-compressed file.

One possible fix is to use libmagic, which seems to be able to tell
tarballs from LZMA compression. Alternatively, we could check for an
.lzma extension in the filename. (I could just disable LZMA
decompression support in our build, but I don't want to create local
incompatibilities if 4.5 is going to be the "all-round compatible"
version of RPM.)

There are no LZMA-compessed sources in ALT Linux, so any solution will
suit us, as long as it does not try to 'lzma -d' our tarballs.

-- 
Best regards,
Alex V. Myltsev.
Received on Sun Jun 24 23:50:58 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.