Your message dated Thu, 20 Feb 2025 13:35:14 +0000
with message-id <[email protected]>
and subject line Bug#1071736: fixed in sbuild 0.88.4
has caused the Debian Bug report #1071736,
regarding sbuild --chroot-mode=unshare fails when /etc/resolv.conf is a symlink 
/etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1071736: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071736
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.85.8

Hi Johannes and Jochen,

while working with debusine.debian.net, I ran into a rather crazier kind
of issue with the unshare backend. It seems like debusine.debian.net
creates a chroot.tar where resolv.conf is a symbolic link:

| lrwxrwxrwx 0/0               0 2024-05-20 17:15 ./etc/resolv.conf -> 
../run/systemd/resolve/stub-resolv.conf

Notably, /run/systemd/resolve does not exist inside the tar nor does
sbuild run systemd-resolved nor systemd-tmpfiles for creating this
location. When building, the unshare backend tries to bind mount
/etc/resolv.conf:

| --: 13: cannot create /tmp/tmp.sbuild.OQ0pOU6LQg/etc/resolv.conf: Directory 
nonexistent
https://debusine.debian.net/artifact/427489/hostname_3.23+nmu2_amd64-2024-05-24T10:06:30Z.build

This fails, because mount attempts to dereference the symbolic link and
finds that an intermediate directory does not exist. As a result, this
fails and network generally does not work resulting in all sorts of
badness.

Technically speaking, you can bind mount onto a symbolic link. You just
cannot do so using the mount(2) API nor the mount(1) command. Unless you
pass MOVE_MOUNT_T_SYMLINKS to move_mount(2), it will not dereference a
symlink being pointed at. I'm not sure we want to go this extra mile
though.

On the debusine side, I think we want to work around this issue in some
way to avoid imposing a high version constraint in sbuild. I am
reporting it here as it kinda is a bug (up to your judgement) and it
helps having the diagnosis written down.

Helmut

--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.88.4
Done: Jochen Sprickerhof <[email protected]>

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 20 Feb 2025 13:39:25 +0100
Source: sbuild
Architecture: source
Version: 0.88.4
Distribution: unstable
Urgency: medium
Maintainer: sbuild maintainers <[email protected]>
Changed-By: Jochen Sprickerhof <[email protected]>
Closes: 1071736 1094239
Changes:
 sbuild (0.88.4) unstable; urgency=medium
 .
   [ Samuel Thibault ]
   * bin/buildd-vlog: Fix against perl 5.40.
 .
   [ Richard Lewis ]
   * .perltidyrc: Use tabs for consistency with .editorconfig
   * Add test/check-perltidy to run perltidy on perl files
   * run test/check-perltidy -w
   * make lib/Sbuild/Sysconfig.pm.in perltidy
   * make everything perltidy - additional changes from unstable version
 .
   [ Jochen Sprickerhof ]
   * Obey $TMPDIR for unshare_tmpdir_template
   * Use root for Rules-Requires-Root: binary-targets
     (enable with $build_as_root_when_needed = 1)
   * Error out when running sbuild-* in unshare mode (Closes: #1094239)
   * AUTOPKGTEST_OPTIONS: no longer pass --apt-upgrade to unshare
   * sbuild-usernsexec: unlink resolv.conf before creating it (Closes: #1071736)
   * Use GET to set WANNA_BUILD_SSH_CMD value
Checksums-Sha1:
 0771ed5d262111952d95d90e287ec9a4dee121d3 2698 sbuild_0.88.4.dsc
 8cc3522eaca6960fa4fd7499c1f7bd702458163f 259672 sbuild_0.88.4.tar.xz
Checksums-Sha256:
 8b0602123c351b30d5457c00665b291221c100647737d6e92bcfc7fc0dd80d53 2698 
sbuild_0.88.4.dsc
 931edbf252be2d0a36b5563817c31c2db43e2f64e1dbe7c26423f7357dd417dd 259672 
sbuild_0.88.4.tar.xz
Files:
 49200670d7d1fdd82180f6f0061bddc9 2698 devel optional sbuild_0.88.4.dsc
 81f2bab596f590c31bc970794ec2bc8a 259672 devel optional sbuild_0.88.4.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAme3KsoACgkQW//cwljm
lDO0DhAAoH68gBJso7LlcIUZA5cUOnLKLBq2O50c2TnfHscFSXtv6M6hUnWg1YDR
BRjjXk7/vZYMYb+k5u7jcLOihyKxYqkhyskaefjUXo8HktjvNVmwDwqSDBWDc3fA
87jvccVOf5yyBZn9lBOf1anb9kNjWckq3e1XlUc+CzFKgOKZwx0VJr+3WgyHKSzq
1LqfOXpKzyXLbhnvZTZe1aoayjVndSY2EiupSFbNEFLSrGTzQAdjCQ8x6MxFIh88
jrk57zTdGpgNzLflice/sbo7/Gkf+sgmYA2WXmjam/5OBSWJEKguRNwd3sqE0epO
iKJF4a5DnR1z5fdTe5Hc64is7l4+9juiUWZgqpFOpqKdkDm4y73cBSCMMiPgms9W
6jq03HPaC3nebc82CUdxxSiPb+75xxachkEt1XMD0JVOWsHaLh+maw+tmKMoOI1K
TOp+MufaCXqZpmuvYOxcJOg4LyXIcnb2nYsCGgIAskS+uVsYgS31uHK+l0dOdNOI
hfhcGPHl0bWohzrGIGDokgcIhCRKdQT+GhS97egciuew9IKs0vzcmnmBwHzGA/0H
OMLCdFbHsJXUt5/3xSCl+gjxc0xaec4mzYMb/QH1mUhXAmtGD1pu3i83cn6S2tYf
OQzT90R6C7nQegpuvBovuC/3Y5VbN/eWnln2Cb/YJrhg1iT1g5Y=
=B3fy
-----END PGP SIGNATURE-----

Attachment: pgpfCPxVE_qqn.pgp
Description: PGP signature


--- End Message ---

Reply via email to