Package: git-buildpackage
Version: 0.9.14
Severity: normal

The problem is that the prepare_upstream_tarballs uses the output_dir option
to store the generated tarball, but later when the export_source is called
it tries to use the tarball_dir variable to find the file.

In default case the two variable (output_dir and tarball_dir) point to the
same directory, except when the tarball-dir option is used.

the problem is at gbp/scripts/buildpackage.py, line 541:
            # Export to another build dir if requested:
            if options.export_dir:
                export_source(repo, tree, source, options, tmp_dir, tarball_dir)

where the tarball_dir should be output_dir

Debug log:
sasa@sasalaptop:~/tmp/boxfort/boxfort$ gbp buildpackage --git-verbose
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: /bin/true [] []
gbp:debug: ['git', 'status', '--porcelain']
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/debian/latest']
gbp:debug: ['git', 'ls-tree', 'HEAD']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/changelog']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:info: Building with (cowbuilder) for sid
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'log', '--pretty=format:%H', '--no-merges', 
'--grep=pristine-tar .* boxfort_0.0.0-git20200808-ac0507b\\.orig.tar\\.', 
'pristine-tar', '--']
gbp:debug: Found pristine-tar commit at 
'2423786d51396bd15dcf787521bbbaba91ef51cc'
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 
'2423786d51396bd15dcf787521bbbaba91ef51cc^0']
gbp:debug: ['git', 'show', 
'--pretty=format:%an%x00%ae%x00%ad%x00%cn%x00%ce%x00%cd%x00%s%x00%f%x00%b%x00', 
'-z', '--date=raw', '--no-renames', '--name-status', '--no-show-signature', 
'2423786d51396bd15dcf787521bbbaba91ef51cc']
gbp:debug: Determined compression type 'gzip'
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: Looking for orig tarballs 
'boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz' at '../'
gbp:info: Tarballs 'boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz' not found at 
'../'
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:info: Creating 
/home/sasa/tmp/boxfort/build-area/boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: pristine-tar [] ['checkout', 
'/home/sasa/tmp/boxfort/build-area/boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz']
gbp:debug: pristine-tar [] ['--help']
gbp:debug: pristine-tar [] ['verify', 
'/home/sasa/tmp/boxfort/build-area/boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format']
gbp:info: Extracting 'boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz' to 
'/home/sasa/tmp/boxfort/build-area/boxfort-tmp'
gbp:debug: tar ['-C', '/home/sasa/tmp/boxfort/build-area/boxfort-tmp', '-a', 
'-xf', '../boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz'] []
tar: ../boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz: Cannot open: No such 
file or directory
tar: Error is not recoverable: exiting now
gbp:error: Couldn't unpack '../boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz': 
it exited with 2
sasa@sasalaptop:~/tmp/boxfort/boxfort$ ls -l ../build-area/
total 48
-rw-r--r-- 1 sasa sasa 41590 Aug 29 11:16 
boxfort_0.0.0-git20200808-ac0507b.orig.tar.gz
drwxr-xr-x 2 sasa sasa  4096 Aug 29 11:16 boxfort-tmp
sasa@sasalaptop:~/tmp/boxfort/boxfort$ ls -l ../build-area/..
total 8
drwxr-xr-x 9 sasa sasa 4096 Aug 29 11:15 boxfort
drwxr-xr-x 3 sasa sasa 4096 Aug 29 11:16 build-area
sasa@sasalaptop:~/tmp/boxfort/boxfort$ grep dir debian/gbp.conf 
export-dir = ../build-area/
tarball-dir = ../
sasa@sasalaptop:~/tmp/boxfort/boxfort$ 



-- System Information:
Debian Release: 10.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-10-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git-buildpackage depends on:
ii  devscripts             2.19.5+deb10u1
ii  git                    1:2.20.1-2+deb10u3
ii  man-db                 2.8.5-2
ii  python3                3.7.3-1
ii  python3-dateutil       2.7.3-3
ii  python3-pkg-resources  40.8.0-1
ii  sensible-utils         0.0.12

Versions of packages git-buildpackage recommends:
ii  cowbuilder        0.88
ii  pbuilder          0.230.4
ii  pristine-tar      1.46
ii  python3-requests  2.21.0-1

Versions of packages git-buildpackage suggests:
pn  python3-notify2  <none>
ii  sudo             1.8.27-1+deb10u2
ii  unzip            6.0-23+deb10u1

-- no debconf information

Reply via email to