Package: sbuild
Version: 0.87.0
Severity: normal

Piuparts fails when trying to use a pre-build tarball with unshare.

(Note that there might be some overlap with #1088304 and #).

When building with unshare according to the instructions at:

https://wiki.debian.org/sbuild

(and after doing the things in the other bug reports to get Piuparts to
use the pre-build tarball) I receive the following error:

piuparts
--------

0m0.0s INFO: 
------------------------------------------------------------------------------
0m0.0s INFO: To quickly glance what went wrong, scroll down to the bottom of 
this logfile.
0m0.0s INFO: FAQ available at https://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: The FAQ also explains how to contact us in case you think piuparts 
is wrong.
0m0.0s INFO: 
------------------------------------------------------------------------------
0m0.0s INFO: piuparts version 1.5.1 starting up.
0m0.0s INFO: Command line arguments: /usr/bin/piuparts 
--basetgz=/home/soren/.cache/sbuild/unstable-amd64.tar.xz --no-eatmydata 
--fake-essential-packages=systemd-sysv --distribution=unstable 
/home/soren/Debian/python-trezor/python-trezor_0.13.9-5_amd64.changes
0m0.0s INFO: Running on: Linux soren-desktop 6.11.7-amd64 #1 SMP 
PREEMPT_DYNAMIC Debian 6.11.7-1 (2024-11-09) x86_64
0m0.0s DEBUG: Starting command: ['dpkg', '--info', 
'/home/soren/Debian/python-trezor/python3-trezor_0.13.9-5_all.deb']
0m0.0s DUMP: 

[snip, package description]

0m0.0s DEBUG: Command ok: ['dpkg', '--info', 
'/home/soren/Debian/python-trezor/python3-trezor_0.13.9-5_all.deb']
0m0.0s DEBUG: Starting command: ['dpkg', '--info', 
'/home/soren/Debian/python-trezor/trezor_0.13.9-5_all.deb']
0m0.0s DUMP: 

[snip, package description]

0m0.0s DEBUG: Command ok: ['dpkg', '--info', 
'/home/soren/Debian/python-trezor/trezor_0.13.9-5_all.deb']
0m0.0s DEBUG: Created temporary directory /tmp/tmplbhnn26l
0m0.0s DEBUG: Unpacking /home/soren/.cache/sbuild/unstable-amd64.tar.xz into 
/tmp/tmplbhnn26l
0m0.0s DEBUG: Starting command: ['tar', '-C', '/tmp/tmplbhnn26l', 
'--auto-compress', '-xf', '/home/soren/.cache/sbuild/unstable-amd64.tar.xz']
0m0.5s DUMP: 
  tar: ./dev/console: Cannot mknod: Operation not permitted
  tar: ./dev/full: Cannot mknod: Operation not permitted
  tar: ./dev/null: Cannot mknod: Operation not permitted
  tar: ./dev/ptmx: Cannot mknod: Operation not permitted
  tar: ./dev/random: Cannot mknod: Operation not permitted
  tar: ./dev/tty: Cannot mknod: Operation not permitted
  tar: ./dev/urandom: Cannot mknod: Operation not permitted
  tar: ./dev/zero: Cannot mknod: Operation not permitted
  tar: Exiting with failure status due to previous errors
0m0.5s ERROR: Command failed (status=2): ['tar', '-C', '/tmp/tmplbhnn26l', 
'--auto-compress', '-xf', '/home/soren/.cache/sbuild/unstable-amd64.tar.xz']
  tar: ./dev/console: Cannot mknod: Operation not permitted
  tar: ./dev/full: Cannot mknod: Operation not permitted
  tar: ./dev/null: Cannot mknod: Operation not permitted
  tar: ./dev/ptmx: Cannot mknod: Operation not permitted
  tar: ./dev/random: Cannot mknod: Operation not permitted
  tar: ./dev/tty: Cannot mknod: Operation not permitted
  tar: ./dev/urandom: Cannot mknod: Operation not permitted
  tar: ./dev/zero: Cannot mknod: Operation not permitted
  tar: Exiting with failure status due to previous errors
  
0m0.7s DEBUG: Starting command: ['rm', '-rf', '--one-file-system', 
'/tmp/tmplbhnn26l']
0m0.8s DEBUG: Command ok: ['rm', '-rf', '--one-file-system', '/tmp/tmplbhnn26l']
0m0.8s DEBUG: Removed directory tree at /tmp/tmplbhnn26l
0m0.8s ERROR: piuparts run ends.

E: Piuparts run failed.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages sbuild depends on:
ii  adduser         3.137
ii  libsbuild-perl  0.87.0
ii  perl            5.40.0-7

Versions of packages sbuild recommends:
ii  autopkgtest  5.42
ii  debootstrap  1.0.137
ii  mmdebstrap   1.5.4-2
ii  schroot      1.6.13-5
ii  uidmap       1:4.16.0-5

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  e2fsprogs  1.47.1-1+b1
ii  kmod       33+20240816-2
ii  wget       1.24.5-2+b1

-- no debconf information

Reply via email to