Package: sbuild
Version: 0.81.2
Severity: normal

steps to reproduce:

$ apt source hello
$ cd hello*/
$ sbuild --build-dir=/tmp
$ ls /tmp/hello* ../hello*  # all output files are in ../

whereas building the .dsc

$ cd ..
$ sbuild --build-dir=/tmp/ hello*.dsc
$ ls /tmp/hello*  # files are in /tmp

This is due to:

https://sources.debian.org/src/sbuild/0.81.2/bin/sbuild/#L231

changing it to:

$conf->_set_default('BUILD_DIR', $dscdir);

$ sbuild --build-dir=/tmp
$ ls /tmp/hello*  # files are now in /tmp

Sadly the change breaks autopkgtests:

$ cd hello*/
$ sbuild --build-dir=/tmp/ --run-autopkgtest
[..]
Unexpected error:
Traceback (most recent call last):
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 739, in mainloop
    command()
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 668, in command
    r = f(c, ce)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 602, in cmd_copydown
    copyupdown(c, ce, False)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 490, in copyupdown
    copyupdown_internal(ce[0], c[1:], upp)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 517, in 
copyupdown_internal
    copydown_shareddir(sd[0], sd[1], dirsp, downtmp_host)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 472, in 
copydown_shareddir
    shutil.copy(host, host_tmp)
  File "/usr/lib/python3.9/shutil.py", line 418, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.9/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/hello_2.10.orig.tar.gz'


-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.118
ii  libsbuild-perl  0.81.2
ii  perl            5.32.1-4

Versions of packages sbuild recommends:
ii  autopkgtest  5.16
ii  debootstrap  1.0.123
ii  schroot      1.6.10-12

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  e2fsprogs  1.46.2-2
ii  kmod       28-1
ii  wget       1.21-1+b1

-- no debconf information

Reply via email to