Package: piuparts
Version: 1.5.1
Severity: normal

In attempting to run piuparts with the instructions at:

https://wiki.debian.org/sbuild#Setup

I noticed that if the changelog targets UNRELEASED and no distribution is 
specified
in either .sbuildrc or via the command line, piuparts fails to resolve apt
because it is looking for UNRELEASED instead of unstable.

0m0.0s DEBUG: Starting command: ['mmdebstrap', '--skip=check/empty', 
'--variant=minbase', '--aptopt=Acquire::http { Proxy "http://127.0.0.1:3142";; 
}', '--keyring=/usr/share/keyrings/debian-archive-keyring.gpg', '--merged-usr', 
'--components=main,contrib,non-free,non-free-firmware', 'UNRELEASED', 
'/tmp/tmpuibo1lsq', 'http://deb.debian.org/debian/']
0m0.7s DUMP: 
  I: the option --merged-usr is a no-op. It only exists for compatibility with 
some debootstrap wrappers.
  I: automatically chosen mode: root
  I: chroot architecture amd64 is equal to the host's architecture
  I: automatically chosen format: directory
  I: skipping check/empty as requested
  I: running apt-get update...
  Ign:1 http://deb.debian.org/debian UNRELEASED InRelease
  Err:2 http://deb.debian.org/debian UNRELEASED Release
    404  Not Found [IP: 127.0.0.1 3142]
  Reading package lists...
  E: The repository 'http://deb.debian.org/debian UNRELEASED Release' does not 
have a Release file.
  E: apt-get update --error-on=any -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false 
failed
  W: hooklistener errored out: E: received eof on socket
  
  I: main() received signal PIPE: waiting for setup...
  E: mmdebstrap failed to run
0m0.7s ERROR: Command failed (status=25): ['mmdebstrap', '--skip=check/empty', 
'--variant=minbase', '--aptopt=Acquire::http { Proxy "http://127.0.0.1:3142";; 
}', '--keyring=/usr/share/keyrings/debian-archive-keyring.gpg', '--merged-usr', 
'--components=main,contrib,non-free,non-free-firmware', 'UNRELEASED', 
'/tmp/tmpuibo1lsq', 'http://deb.debian.org/debian/']
  I: the option --merged-usr is a no-op. It only exists for compatibility with 
some debootstrap wrappers.
  I: automatically chosen mode: root
  I: chroot architecture amd64 is equal to the host's architecture
  I: automatically chosen format: directory
  I: skipping check/empty as requested
  I: running apt-get update...
  Ign:1 http://deb.debian.org/debian UNRELEASED InRelease
  Err:2 http://deb.debian.org/debian UNRELEASED Release
    404  Not Found [IP: 127.0.0.1 3142]
  Reading package lists...
  E: The repository 'http://deb.debian.org/debian UNRELEASED Release' does not 
have a Release file.
  E: apt-get update --error-on=any -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false 
failed
  W: hooklistener errored out: E: received eof on socket
  
  I: main() received signal PIPE: waiting for setup...
  E: mmdebstrap failed to run


Both the build and autopkgtest convert UNRELASED to unstable for the purposes 
of apt.

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

Kernel: Linux 6.11.10-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 piuparts depends on:
ii  debsums          3.0.2.1
ii  libjs-sphinxdoc  7.4.7-4
ii  lsb-release      12.1-1
ii  lsof             4.99.3+dfsg-2
ii  mount            2.40.2-11
ii  piuparts-common  1.5.1
ii  python3          3.12.7-1
ii  python3-debian   0.1.49

Versions of packages piuparts recommends:
ii  adequate     0.17.2
ii  debootstrap  1.0.138
ii  mmdebstrap   1.5.4-2

Versions of packages piuparts suggests:
pn  docker.io  <none>
ii  schroot    1.6.13-5
ii  uidmap     1:4.16.0-5

-- no debconf information

Reply via email to