On Fri, 25 Jan 2008, Ian Jackson wrote:
> Raphael Hertzog writes ("Bug#456332: dpkg could use an elevated pre-depends
> or depends on lzma"):
> > The debian/control field is the only viable option IMO. It would be
> > somewhat similar to the Package-Type: header which has no real use except
> > influencing the behaviour of another tool during the build.
>
> Having slept on it I think this is the right answer.
> Compression-Type: gzip|bzip2|lzma|...
> converted into
> Pre-Depends: deb-decompressor-lzma
> by dpkg-gencontrol
Ok.
> and into an appropriate -Z option by dpkg-buildpackage, then ?
Well, no. dpkg-buildpackage doesn't call "dpkg-deb --build". dpkg-gencontrol
must push the field in DEBIAN/control and "dpkb-deb --build" must read
that field there and use the corresponding compressor.
I'm still not convinced that this is the right approach, Pre-Depends are
supposed to not be used lightly. Does the package need to be configured,
isn't a simple dependency enough ?
And furthermore, while I can understand the need to not add the dependency
to dpkg itself, in practice most systems will have all the compressors
installed anyway.
And we're speaking of:
$ dpkg -s lzma | grep Installed
Installed-Size: 292
$ dpkg -s bzip2 | grep Installed
Installed-Size: 124
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/