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

Difference in behaviour between pbuilder and sbuild



Hi,

I've recently tried using sbuild rather than pbuilder (inspired by a
blog post[0]), 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.

The consequence of this difference is that for sbuild to produce a
package without the .gitignore I need this extra override:

  dh_installdocs --exclude=.gitignore

So my question is: why is there a difference, and which is "correct"?
And does this mean that if I use pbuilder, upload a package, and it is
later built from source on a buildd, it can have have lint I can't
reproduce locally?

The package versions used are git-buildpackage_0.6.22,
sbuild_0.72.0-2~bpo8+2, pbuilder_0.226.1~bpo8+1.

  [0] https://people.debian.org/~stapelberg/2016/11/25/build-tools.html

-- 
Regards,
Scott.

Attachment: signature.asc
Description: Digital signature


Reply to: