* Sam Hartman <hartm...@debian.org> [240610 23:13]:
> control: tags -1 +help
> 
> 
>     Chris> Filing with severity: serious as the buildd network has
>     Chris> started switching to sbuild with unshare backend, and
>     Chris> multiple people have reproduced this problem.
> 
> I'm not running sbuild these days; I'm mostly moving toward
> containerized builds for my local development.
> I am currently setting up a new environment and if I can reproduce
> there, I'm happy to  look into it.

> But if it literally happens only on sbuild unshare, I'm going to need
> help because that's not a beast I have a desire to deal with.

A reduced version of the sbuild wiki page [1], which should give you a
working sbuild+unshare on top of a normal, amd64 Debian stable
install (not a container - VM is fine):

$ sudo apt install mmdebstrap uidmap
$ sudo apt install -t stable-backports sbuild
$ mkdir -p ~/.cache/sbuild
$ mmdebstrap --variant=buildd unstable ~/.cache/sbuild/unstable-amd64.tar
$ cat << "EOF" > ~/.sbuildrc
$chroot_mode = 'unshare';
EOF

This assumes you have a recently enough installed Debian stable,
otherwise /etc/subuid and /etc/subgid also need setting up. Example
contents:

% cat /etc/subuid
chris:100000:65536
% cat /etc/subgid
chris:100000:65536

Might need to logout/login after this.

To build/repro the failure:

$ apt source krb5
$ sbuild -d unstable
(...wait...)

Hope this helps,
Chris

[1] 
https://wiki.debian.org/sbuild#Option_1:_Using_unshare_with_mmdebstrap_.28no_root_needed.29

Reply via email to