Hi, /etc/subuid and /etc/subgid can be indexed either by login name or UID. According to subuid(5), with large number of entries, it is recommended to use UIDs. sbuild assumes that these files are indexed by login name and does not support the case where they are indexed by UIDs: | $ id aurel32 | uid=1000(aurel32) gid=1000(aurel32) groups=1000(aurel32),20(dialout),27(sudo),46(plugdev) | $ cat /etc/subuid | 1000:100000:65536 | $ sbuild -d sid hello | sbuild (Debian sbuild) 0.89.3 (07 June 2025) on xxxxx.xxx.xxx | | +==============================================================================+ | | hello (amd64) Mon, 11 Aug 2025 21:00:07 +0000 | | +==============================================================================+ | | Package: hello | Distribution: sid | Machine Architecture: amd64 | Host Architecture: amd64 | Build Architecture: amd64 | Build Type: any | | No entry for aurel32 in /etc/subuid | invalid idmap | E: Error creating chroot session: skipping hello | | +------------------------------------------------------------------------------+ | | Summary Mon, 11 Aug 2025 21:00:07 +0000 | | +------------------------------------------------------------------------------+ | | Build Architecture: amd64 | Build Type: any | Build-Space: 0 | Build-Time: 0 | Distribution: sid | Fail-Stage: create-session | Host Architecture: amd64 | Install-Time: 0 | Job: hello | Machine Architecture: amd64 | Package: hello | Package-Time: 0 | Space: 0 | Status: failed | -------------------------------------------------------------------------------- | Finished at 2025-08-11T21:00:07Z | Build needed 00:00:00, 0k disk space | E: Error creating chroot session: skipping hello Regards Aurelien
Hi Aurel, Quoting Aurelien Jarno (2025-08-11 23:02:04) https://salsa.debian.org/debian/sbuild/-/merge_requests/197 Jochen: can you close this bug in that MR? Thank you! cheers, josch
Hi, Nope, i was curious about the possibility to use UIDs in subid/subgid after looking at the changes done by pkern in userdir-ldap. Thanks Jochen for working on that! Regards Aurelien
Hello, Bug #1110876 in sbuild reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/sbuild/-/commit/8779a0219028757a8f85f758476ade43da875653 ------------------------------------------------------------------------ Support UID in /etc/sub(u|g)id Closes: #1110876 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1110876
We believe that the bug you reported is fixed in the latest version of sbuild, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1110876@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Jochen Sprickerhof <jspricke@debian.org> (supplier of updated sbuild package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Wed, 13 Aug 2025 09:14:59 +0200 Source: sbuild Architecture: source Version: 0.90.0 Distribution: unstable Urgency: medium Maintainer: sbuild maintainers <sbuild@packages.debian.org> Changed-By: Jochen Sprickerhof <jspricke@debian.org> Closes: 1110876 Changes: sbuild (0.90.0) unstable; urgency=medium . [ Richard Lewis ] * man/sbuild.1.in: fix typo in markup . [ Andrea Pappacoda ] * d/control: drop dependency on gnupg from libsbuild-perl . [ Hiraku Toyooka ] * Allow BUILD_PATH being empty also in command line options . [ Jochen Sprickerhof ] * Support UID in /etc/sub(u|g)id (Closes: #1110876) * Explicitly select the sbuild-build-depends-main-dummy package arch . [ Chris Hofstaedtler ] * Switch default chroot_mode to unshare Checksums-Sha1: 37b7d52e3ca8de10139256a927cde9bc2ad15dc1 2700 sbuild_0.90.0.dsc 6f7c31383c77ec8cd704370a1196cae50d846b30 263992 sbuild_0.90.0.tar.xz Checksums-Sha256: 891bae55b8cfa4d80ac6dcc981ba17112de39619cf252cef96c9dbf47cac18b2 2700 sbuild_0.90.0.dsc 6b06a6e1f49994147132131c08debc5f83d02a1724d262d295657577d512eaf1 263992 sbuild_0.90.0.tar.xz Files: 66d078e26b2463db364930ae5b334e68 2700 devel optional sbuild_0.90.0.dsc 7dde3965807f92c3ffbc5868b66a502e 263992 devel optional sbuild_0.90.0.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmicO58ACgkQW//cwljm lDPUIBAAkZFwg7T7SqMclYP5xqlgCq4K8RDGQErYbsLd4dMhQiGND0F/VaEL3rCv ro1yB9O97HsPDTorKqg4uUrgE9zYLJOWBVFQELmNJsxEZCiM9vz7L/vObeqhmrxM hj6Xm/xInAnjMwpPwUFc1B2RRSESnAtIihh6MTMw+NLRVYGaRHMGvqmxRKyC0hc9 4wQpNL/znv3NJQnGOeOL6aZLr2Dsbw+iooPGxXbgAh+xXVWWehsxcKrHRgq73WPj 8w+dJAweGP0ocG3OWBsCHE1QDc/G2pAoHe0rYNN4EArKFKyHMFfhxcL9bvBbDZsA N1+rXjKMoDscFnz2lxe/ThV5TjcCx666+DcxjSfeR0DoiAqIbL3y1Qpdy9RE8CI+ TkDvKGMx0bSHWOPjoGbMEUol0ymLmbZpp1gNDmqJDsPyKGNgsosNIt5gU0WWup0H s1F8Ogz27dYdfg4Xf7ymx8J0oHeaJtR598iIY699rlkOCnOKP/UZAokqexhXXHCY x6ITyXQAvP+BR9lT3GGoxDzvvdUX3uppGsYP/FHQ7R4/ACAfYzCMC54yVbFuKLIU UIP/VhjdBdePOQleGgla9WhFt0U4dBM6UgZ7nI8TvBAegp1CM/4kem5gEK7NftT+ Fk73ZScnWbRTVY50KXcqQzTrMxwUjpSJf1ostusX5luu714CSoo= =vZPu -----END PGP SIGNATURE-----