Package: sbuild-qemu
Version: 0.83.1
Severity: normal

Trying to build our venerable userdir-ldap package[1] fails under
sbuild-qemu, if we build it against unstable, because it can't find
the Python 2.7 dependency. That sounds okay, but the *way* if fails is
it just *hangs* with this message:

Setting up dose-distcheck (7.0.0-1+b1) ...
Setting up sbuild-build-depends-dose3-dummy (0.invalid.0) ...
(I)Doseparse: Parsing and normalizing...
(I)Dose_deb: Parsing Packages file -...

... and then it's just *stuck* there forever. In fact, even getting
rid of that thing is hard: just one good old control-c doesn't cut
it. You need to ^C the *heck* out of it and it eventually succeeds.

I would expect this to fail early. In fact, there *is* an error in apt
earlier, but it seems the error is ignored as it just carries on from
there:

The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy : Depends: python (>= 2.7) but it is not 
installable
E: Unable to correct problems, you have held broken packages.
apt-get failed.
E: Package installation failed

Full log follows.

[1]: https://gitweb.torproject.org/admin/userdir-ldap.git/

-- System Information:
Debian Release: 11.3
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable'), 
(1, 'unstable'), (1, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-14-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.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-qemu depends on:
ii  autopkgtest      5.21
ii  python3          3.9.2-3
ii  python3-pexpect  4.8.0-2
ii  python3-psutil   5.8.0-1
ii  qemu-system-x86  1:5.2+dfsg-11+deb11u2
ii  qemu-utils       1:5.2+dfsg-11+deb11u2
ii  sbuild           0.81.2
ii  vmdb2            0.22-1

Versions of packages sbuild-qemu recommends:
ii  qemu-system-arm  1:5.2+dfsg-11+deb11u2
ii  qemu-system-ppc  1:5.2+dfsg-11+deb11u2

sbuild-qemu suggests no packages.

-- debconf-show failed

anarcat@curie:userdir-ldap$ sbuild
dpkg-source: warning: no source format specified in debian/source/format, see 
dpkg-source(1)
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'userdir-ldap' is not 
<sourcepackage>-<upstreamversion> 'userdir-ldap-0.3.104~tpo3'
dpkg-source: info: building userdir-ldap in userdir-ldap_0.3.104~tpo3.tar.gz
dpkg-source: info: building userdir-ldap in userdir-ldap_0.3.104~tpo3.dsc
sbuild (Debian sbuild) 0.81.2 (31 January 2021) on curie.anarc.at

+==============================================================================+
| userdir-ldap 0.3.104~tpo3 (amd64)            Wed, 25 May 2022 15:29:36 +0000 |
+==============================================================================+

Package: userdir-ldap
Version: 0.3.104~tpo3
Source Version: 0.3.104~tpo3
Distribution: UNRELEASED
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64
Build Type: full

I: NOTICE: Log filtering will replace 'autopkgtest-virt-dummy-location' with 
'<<CHROOT>>'
I: NOTICE: Log filtering will replace 
'build/userdir-ldap-YObsEj/resolver-8PBA4q' with '<<RESOLVERDIR>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 https://deb.debian.org/debian unstable InRelease [165 kB]
Get:2 https://deb.debian.org/debian unstable/main Sources.diff/Index [63.6 kB]
Get:3 https://deb.debian.org/debian unstable/main amd64 Packages.diff/Index 
[63.6 kB]
Get:4 https://deb.debian.org/debian unstable/main Sources 
T-2022-05-25-1405.37-F-2022-05-25-0808.24.pdiff [30.9 kB]
Get:4 https://deb.debian.org/debian unstable/main Sources 
T-2022-05-25-1405.37-F-2022-05-25-0808.24.pdiff [30.9 kB]
Get:5 https://deb.debian.org/debian unstable/main amd64 Packages 
T-2022-05-25-1405.37-F-2022-05-25-0808.24.pdiff [18.2 kB]
Get:5 https://deb.debian.org/debian unstable/main amd64 Packages 
T-2022-05-25-1405.37-F-2022-05-25-0808.24.pdiff [18.2 kB]
Fetched 342 kB in 6s (53.5 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  apparmor busybox dbus-user-session libldap-common libsasl2-modules os-prober
  zstd
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Local sources
-------------

/home/anarcat/src/tor/userdir-ldap_0.3.104~tpo3.dsc exists in 
/home/anarcat/src/tor; copying to chroot
I: NOTICE: Log filtering will replace 
'build/userdir-ldap-YObsEj/userdir-ldap-0.3.104~tpo3' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/userdir-ldap-YObsEj' with 
'<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper (>= 7), dh-python, yodl, python (>= 2.7) | 
python2, python3, build-essential, fakeroot
Filtered Build-Depends: debhelper (>= 7), dh-python, yodl, python (>= 2.7), 
python3, build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-main-dummy' in 
'/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-main-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [957 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [393 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [469 B]
Fetched 1819 B in 0s (84.9 kB/s)
Reading package lists...
Reading package lists...

Install main build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sbuild-build-depends-main-dummy : Depends: python (>= 2.7) but it is not 
installable
E: Unable to correct problems, you have held broken packages.
apt-get failed.
E: Package installation failed
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  apparmor busybox dbus-user-session libldap-common libsasl2-modules os-prober
  zstd
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  apparmor busybox dbus-user-session libldap-common libsasl2-modules os-prober
  zstd
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Setup apt archive
-----------------

Merged Build-Depends: dose-distcheck
Filtered Build-Depends: dose-distcheck
dpkg-deb: building package 'sbuild-build-depends-dose3-dummy' in 
'/<<RESOLVERDIR>>/apt_archive/sbuild-build-depends-dose3-dummy.deb'.
Ign:1 copy:/<<RESOLVERDIR>>/apt_archive ./ InRelease
Get:2 copy:/<<RESOLVERDIR>>/apt_archive ./ Release [963 B]
Ign:3 copy:/<<RESOLVERDIR>>/apt_archive ./ Release.gpg
Get:4 copy:/<<RESOLVERDIR>>/apt_archive ./ Sources [523 B]
Get:5 copy:/<<RESOLVERDIR>>/apt_archive ./ Packages [602 B]
Fetched 2088 B in 0s (103 kB/s)
Reading package lists...
Reading package lists...

Install dose3 build dependencies (apt-based resolver)
-----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  apparmor busybox dbus-user-session libldap-common libsasl2-modules os-prober
  zstd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  dose-distcheck
The following NEW packages will be installed:
  dose-distcheck sbuild-build-depends-dose3-dummy
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1067 kB of archives.
After this operation, 4362 kB of additional disk space will be used.
Get:1 copy:/<<RESOLVERDIR>>/apt_archive ./ sbuild-build-depends-dose3-dummy 
0.invalid.0 [852 B]
Get:2 https://deb.debian.org/debian unstable/main amd64 dose-distcheck amd64 
7.0.0-1+b1 [1066 kB]
Fetched 1067 kB in 0s (4209 kB/s)
Selecting previously unselected package dose-distcheck.
(Reading database ... 24505 files and directories currently installed.)
Preparing to unpack .../dose-distcheck_7.0.0-1+b1_amd64.deb ...
Unpacking dose-distcheck (7.0.0-1+b1) ...
Selecting previously unselected package sbuild-build-depends-dose3-dummy.
Preparing to unpack .../sbuild-build-depends-dose3-dummy_0.invalid.0_amd64.deb 
...
Unpacking sbuild-build-depends-dose3-dummy (0.invalid.0) ...
Setting up dose-distcheck (7.0.0-1+b1) ...
Setting up sbuild-build-depends-dose3-dummy (0.invalid.0) ...
(I)Doseparse: Parsing and normalizing...
(I)Dose_deb: Parsing Packages file -...
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
Traceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
    time.sleep(0.2)
KeyboardInterrupt
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
Exception ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
Traceback (most recent call last):
Traceback (most recent call last):
E: ABORT: Received INT signal (requesting cleanup and shutdown)
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 
    lock.acquire()
KeyboardInterrupt: 

+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Not removing build depends: as requested
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 
E: Can't unlink /<<RESOLVERDIR>>: Interrupted system call
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 
E: Can't unlink /etc/apt/sources.list.d/sbuild-build-depends-archive.list: 
Interrupted system call
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 
E: Can't unlink /etc/apt/sources.list.d/sbuild-extra-repositories.list: 
Interrupted system call
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 
E: Can't unlink /etc/apt/sources.list.d/sbuild-extra-packages-archive.list: 
Interrupted system call
^CTraceback (most recent call last):
  File "/tmp/autopkgtest-qemu.covwpt3c/runcmd", line 79, in <module>
E: ABORT: Received INT signal (requesting cleanup and shutdown)
    time.sleep(0.2)
KeyboardInterrupt
^CException ignored in: <module 'threading' from 
'/usr/lib/python3.9/threading.py'>
Traceback (most recent call last):
E: ABORT: Received INT signal (requesting cleanup and shutdown)
  File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
    lock.acquire()
KeyboardInterrupt: 

+------------------------------------------------------------------------------+
| Post Build Failed Commands                                                   |
+------------------------------------------------------------------------------+


/usr/bin/notify-send "Build completed" "Build of 
/home/anarcat/src/tor/userdir-ldap_0.3.104~tpo3.dsc on 
%SBUILD_DISTRIBUTION-amd64 completed."
----------------------------------------------------------------------------------------------------------------------------------------------


I: Finished running '/usr/bin/notify-send "Build completed" "Build of 
/home/anarcat/src/tor/userdir-ldap_0.3.104~tpo3.dsc on 
%SBUILD_DISTRIBUTION-amd64 completed."'.

Finished processing commands.
--------------------------------------------------------------------------------
qemu-system-x86_64: terminating on signal 15 from pid 768200 (/usr/bin/python3)
E: Package build dependencies not satisfied; skipping

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build Type: full
Build-Space: n/a
Build-Time: 0
Distribution: UNRELEASED
Fail-Stage: install-deps
Host Architecture: amd64
Install-Time: 0
Job: /home/anarcat/src/tor/userdir-ldap_0.3.104~tpo3.dsc
Machine Architecture: amd64
Package: userdir-ldap
Package-Time: 0
Source-Version: 0.3.104~tpo3
Space: n/a
Status: given-back
Version: 0.3.104~tpo3
--------------------------------------------------------------------------------
Finished at 2022-05-25T15:29:36Z
Build needed 00:00:00, no disk space
E: Package build dependencies not satisfied; skipping

Reply via email to