Hi,
On Wed, Oct 25, 2017 at 08:44:59PM +0200, Vincent Bernat wrote:
> Package: git-buildpackage
> Version: 0.9.0
> Severity: normal
> File: /usr/bin/gbp
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Hey!
> 
> Since upgrading to 0.9, I get the following error:
> 
> gbp:info: Extracting ant_1.9.6.orig.tar.gz to 
> '/home/bernat/code/exoscale/packages/build-area/ant-tmp'
> gbp:debug: tar ['-C', 
> '/home/bernat/code/exoscale/packages/build-area/ant-tmp', '-a', '-xf', 
> '/home/bernat/code/exoscale/packages/pkg-ant/ant_1.9.6.orig.tar.gz'] []
> gbp:debug: Moving 
> /home/bernat/code/exoscale/packages/build-area/ant-tmp/apache-ant-1.9.6 to 
> /home/bernat/code/exoscale/packages/build-area/ant-tmp
> gbp:info: Exporting 'HEAD' to 
> '/home/bernat/code/exoscale/packages/build-area/ant-tmp'
> gbp:info: Moving '/home/bernat/code/exoscale/packages/build-area/ant-tmp' to 
> '/home/bernat/code/exoscale/packages/build-area/ant-1.9.6'
> gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
> gbp:debug: git-pbuilder ['-nc', "'-i.*\\.orig\\.tar\\..*'"] []
> Building with cowbuilder for distribution trusty
> W: /home/bernat/.pbuilderrc does not exist
> I: using cowbuilder as pbuilder
> dpkg-checkbuilddeps: error: Unmet build dependencies: gcj-native-helper 
> libjdepend-java liboro-java maven-repo-helper (>> 1.0)
> W: Unmet build-dependency in source
> dpkg-source: info: applying 0002-do-not-build-test-jars.patch
> dpkg-source: info: applying 0006-fix-ANT_HOME-path.patch
> dpkg-source: info: applying 0007-use-build.classpath.patch
> dpkg-source: info: applying 0008-junit4-replace-assumeFalse.patch
> dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream 
> tarball found at ../ant_1.9.6.orig.tar.{bz2,gz,lzma,xz}
> gbp:error: 'git-pbuilder -nc '-i.*\.orig\.tar\..*'' failed: it exited with 25
> 
> I am using this command:
> 
> gbp buildpackage \
>     --git-debian-branch=trusty \
>     --git-dist=trusty \
>     --git-cleaner=/bin/true \
>     --git-pbuilder \
>     --git-no-create-orig --git-tarball-dir=$PWD \
      ^^^^^^^^^^^^^^^^^^^^

That's the culprit. With it all tarball "creation", even symlinking
existing ones is skipped.

>     --git-overlay \
>     --git-export-dir=../build-area \
>     --git-compression=gzip \
>     --git-verbose \
>     -nc \
>     -i'.*\.orig\.tar\..*'
> 
> And I have the following odd layout:
> 
> ant_1.9.6.orig.tar.gz
> debian/
> 
> No problem with previous versions. As a side note, I have to add
> "--git-compression=gzip", otherwise, it says:
> 
> gbp:error: Unknown compression type 'auto'

This is fixed in git now (and I used this bugnumber as reference).

> Maybe related?
Somewhat. Both are a fallout of the export-orig split out and me not
caring much about overlay mode until last debconf (sorry!). We have a
test for that now

    
https://github.com/agx/git-buildpackage/blob/master/tests/component/deb/test_buildpackage.py#L193

which will hopefully make sure we don't regress (since I'm not using it
myself). I've added a check for the missing upstream tarballs as well:

     
https://github.com/agx/git-buildpackage/commit/53c0e7c3cefb52f3b7eeb4729bf10a7aaae670aa

Cheers,
 -- Guido

Reply via email to