Bug#1109327: sbuild: unshare backend does not work with Debian Ports architectures

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <175256984429.3816478.5804173363272569569.reportbug__45417.6699322247$1752569970$gmane$org@login1.physik.fu-berlin.de>
Source: sbuild
Version: 0.89.3
Severity: normal
User: [email protected]
Usertags: powerpc
X-Debbugs-Cc: [email protected]

Hello,

I just tried the unshare backend in Debian Ports for the first time.

After adding the subuids and subgids, I could start the build but it immediately
failed as the FTP server used for mmdebstrap does not support the Debian Ports
architecture powerpc:

buildd@kapitsa:/srv/debian$ export export DEB_BUILD_OPTIONS="nobench nocheck parallel=16" ; sbuild -d sid --arch=powerpc --apt-update --nolog --no-arch-all --chroot-mode=unshare xbill_2.1-10.dsc 
I: consider moving your ~/.sbuildrc to /var/lib/buildd/.config/sbuild/config.pl
The Debian buildds switched to the "unshare" backend and sbuild will default to it in the future.
To start using "unshare" add this to your `~/.config/sbuild/config.pl`:
        $chroot_mode = "unshare";
If you want to keep the old "schroot" mode even in the future, add the following to your `~/.config/sbuild/config.pl`:
        $chroot_mode = "schroot";
        $schroot = "schroot";
sbuild (Debian sbuild) 0.89.3 (07 June 2025) on kapitsa.east.ru

+==============================================================================+
| xbill 2.1-10 (powerpc)                       Tue, 15 Jul 2025 08:50:10 +0000 |
+==============================================================================+

Package: xbill
Version: 2.1-10
Source Version: 2.1-10
Distribution: sid
Machine Architecture: powerpc
Host Architecture: powerpc
Build Architecture: powerpc
Build Type: any

I: No tarballs found in /var/lib/buildd/.cache/sbuild
I: Creating chroot on-demand by running:
mmdebstrap --variant=buildd --arch=powerpc --skip=output/mknod --format=tar sid -
I: Unpacking tarball from STDIN to /tmp/tmp.sbuild.LvUBjxhvIo...
I: automatically chosen mode: unshare
I: chroot architecture powerpc is equal to the host's architecture
I: finding correct signed-by value...
I: using /tmp/mmdebstrap.HvItBoJYL4 as tempdir
I: skipping output/mknod as requested for ./dev/console
I: skipping output/mknod as requested for ./dev/full
I: skipping output/mknod as requested for ./dev/null
I: skipping output/mknod as requested for ./dev/ptmx
I: skipping output/mknod as requested for ./dev/random
I: skipping output/mknod as requested for ./dev/tty
I: skipping output/mknod as requested for ./dev/urandom
I: skipping output/mknod as requested for ./dev/zero
I: running apt-get update...
W: apt-get indextargets output is empty
I: Type: one-line
I: Content:
I:   deb http://deb.debian.org/debian sid main
I: Package files:
I:  100 /tmp/mmdebstrap.HvItBoJYL4/var/lib/dpkg/status
I:      release a=now
I: Pinned packages:
E: apt-get update did not find any indices for architecture 'powerpc' in suite 'sid'
W: hooklistener errored out: E: received eof on socket

I: main() received signal PIPE: waiting for setup...
I: removing tempdir /tmp/mmdebstrap.HvItBoJYL4...
E: mmdebstrap failed to run
tar: This does not look like a tar archive
mmdebstrap failed
tar: Exiting with failure status due to previous errors
E: auto-creating chroot failed
E: Error creating chroot session: skipping xbill

+------------------------------------------------------------------------------+
| Summary                                      Tue, 15 Jul 2025 08:50:12 +0000 |
+------------------------------------------------------------------------------+

Build Architecture: powerpc
Build Type: any
Build-Space: 0
Build-Time: 0
Distribution: sid
Fail-Stage: create-session
Host Architecture: powerpc
Install-Time: 0
Job: /srv/debian/xbill_2.1-10.dsc
Machine Architecture: powerpc
Package: xbill
Package-Time: 0
Source-Version: 2.1-10
Space: 0
Status: failed
Version: 2.1-10
--------------------------------------------------------------------------------
Finished at 2025-07-15T08:50:10Z
Build needed 00:00:00, 0k disk space
E: Error creating chroot session: skipping xbill
buildd@kapitsa:/srv/debian$

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.