Raphael Hertzog writes ("Re: Bug#456332: dpkg could use an elevated pre-depends or depends on lzma"): > On Thu, 24 Jan 2008, Ian Jackson wrote: > > How about if we arrange to pass -Z<something> to dpkg-gencontrol, and > > have a table in dpkg-dev to map <something> to > > deb-decompressor-<something> for values where it is needed ? > > The problematic part is "arrange to pass -Z<something> to > dpkg-gencontrol" ... the -Z of dpkg-buildpackage is for dpkg-source and > not dpkg-deb -b. And even if we knew right from the start what compressor > to use, the dpkg-gencontrol call is hidden in debian/rules and we have no > way to pass anything (except maybe an environment variable which isn't > really nice).
Yes, I obviously hadn't thought about this too deeply. How do we expect to choose which packages will use which compressors ? Ideally in the end the maintainer would decide, so it ought to be in the source package somewhere. But we want to override it too. I think for overriding it, an environment variable is fine. Perhaps we could just tell maintainers to put export DPKG_DEB_COMPRESSOR ?= ... in their rules. Hrm, that doesn't work so well if different packages want different compression schemes. A debian/control file field ? Ian. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]