[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Difference in behaviour between pbuilder and sbuild



[ disclaimer: pbuilder maintainer here - totally biased ]

On Mon, Nov 28, 2016 at 09:52:39PM +1100, Scott Leggett wrote:
> (inspired by a blog post[0]),
>   [0] https://people.debian.org/~stapelberg/2016/11/25/build-tools.html

I'll only say that 1) I fail to see where is this extrem complications
in the toolchain the author is suggesting 2) neither use of sbuild nor
pbuilder is mandatory to build packages

> I've recently tried using sbuild rather than pbuilder
> and found that the invocation of dh_installdocs differs
> between the two tools. My .docs file has this line:
> 
>   doc/mpls/
> 
> However this directory also contains a .gitignore file. sbuild's
> invocation of dh_installdocs results in this command:
> 
>   cd 'doc/mpls//..' && find 'mpls' \( -type f -or -type l \) -and ! \
>   -empty -print0 | LC_ALL=C sort -z | xargs -0 -I {} cp --reflink=auto \
>   --parents -dp {} \
>   /<<PKGBUILDDIR>>/debian/quagga-doc/usr/share/doc/quagga-doc
> 
> While pbuilder's invocation of dh_installdocs results in this command:
> 
>   cd 'doc/mpls//..' && find 'mpls' \( -type f -or -type l \) -and ! \
>   -empty -and ! \( -regex .\*\\.git.\* -or -regex .\*\\.gitignore.\* \) \
>   -print0 | LC_ALL=C sort -z | xargs -0 -I {} cp --reflink=auto \
>   --parents -dp {} \
>   /build/quagga-1.1.0/debian/quagga-doc/usr/share/doc/quagga-doc
> 
> Note that pbuilder automatically ignores VCS files.

I can very much assure you such difference has nothing to do with the
builder used.
You either have different build-deps installed that behaves differently,
or you're actually building different source packages.  Or in pbuilder
*you* (it's not done by pbuilder itself) are exporting DH_ALWAYS_EXCLUDE
from somewhere and you're not doing it in sbuild.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: