debuild: force to compress data.tar with gzip instead of xz

Sergey V. sftp.mtuci at gmail.com
Sun May 11 19:20:32 UTC 2014


В письме от Воскресенье 11 мая 2014 13:06:08 пользователь James McCoy написал:
> On Sun, May 11, 2014 at 05:03:47PM +0400, Sergey V. wrote:
> > В письме от Суббота 10 мая 2014 15:48:49 пользователь James McCoy написал:
> > > c) write a wrapper dpkg-deb script that adds "-Zgzip" to the command
> > > 
> > >    unless a non-xz option is already present
> > > 
> > > Option c is probably the easiest.  Just need to make sure it's present
> > > in $PATH in your build environment before the real dpkg-deb and that it
> > > doesn't call itself when it tries to run the real dpkg-deb.
> > 
> > I like this approach. But seems debuild (or precisely its child
> > tool/process) calls dpkg-deb by direct name, not looking into $PATH:
> > 
> > $ echo $PATH
> > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr
> > /local/games
> The issue is likely that debuild sets $PATH to a sane default.  From
> debuild(1):
> 
>   TERM is set to `dumb' if it is unset, and PATH is set to
>   "/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11".
> 
>   If  a  particular  environment  variable  is required to be passed
>   through untouched to the build process, this may be specified by using
>   a --preserve-envvar envvar (which can also be written as -e envvar
>   option).
> 
> You'll need to override it.
This makes sense, thank you! And sorry that I missed this in man. Now it
works fine.

For the record, I added this alias:
alias debuild="debuild --preserve-envvar PATH"

and modified dpkg-deb wrapper /usr/local/bin/dpkg-deb:
#!/bin/bash
/usr/bin/dpkg-deb -Zgzip $@


> Cheers,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140511/8d918531/attachment.sig>


More information about the devscripts-devel mailing list