Thread View: linux.debian.bugs.dist
3 messages
3 total messages
Started by Vagrant Cascadian
Mon, 26 Oct 2026 22:20
Bug#1126440: Help with libsoup reproducibility
Author: Vagrant Cascadian
Date: Mon, 26 Oct 2026 22:20
Date: Mon, 26 Oct 2026 22:20
111 lines
6253 bytes
6253 bytes
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
On 2026-10-25, Jochen Sprickerhof wrote:
> * Jeremy B=C3=ADcha <jbicha@debian.org> [2026-10-23 18:57]:
>>Could I have some help with libsoup not being reproducible with debrebuil=
d?
>>
>>The initial bug is https://bugs.debian.org/1126440
>>
>>The issue can be reproduced on Salsa CI, on reproduce.debian.net and loca=
lly
>>https://reproduce.debian.net/excuses.html?source_name=3Dlibsoup
>>
>>There is a complex check for Apache and its configuration at
>>https://gitlab.gnome.org/GNOME/libsoup/-/blob/master/meson.build#L236
>>
>>The check fails in the debrebuild environment but passes in more
>>typical build environments.
>
> The problem is that apache2 depends on /run/apache2 being present. You=20
> can get the same result with:
>
> sbuild -d unstable libsoup --starting-build-commands=3D'rm -r /run/apache=
2'
So, I don't have a soluation, but figured I would share what I found...
I was able to reproduce the error message from the build log with this:
./get_apache_modules_dirs.py /usr/sbin/apache2
[Mon Oct 26 21:54:09.862824 2026] [core:warn] [pid 57:tid 57] AH00111: Co=
nfig variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRun=
timeDir must be a valid directory, absolute or relative to ServerRoot
Something went wrong when calling /usr/sbin/apache2!
I suspect it detects that apachectl is present, but it cannot be run:
./get_apache_modules_dirs.py /usr/sbin/apachectl
mkdir: cannot create directory =E2=80=98/run/apache2=E2=80=99: Permission=
denied
Something went wrong when calling /usr/sbin/apachectl!
So meson.build follows the codepath that leads to the original error in
the build log, by first trying apachectl and then falling back to
calling apache2 directly:
if have_apache
apache_modules_dirs_out =3D run_command('get_apache_modules_dirs.py', a=
pachectl.full_path(), check: false)
have_apache =3D (apache_modules_dirs_out.returncode() =3D=3D 0)
# Same as above, using apachectl might fail, try apache directly.
if not have_apache
apache_modules_dirs_out =3D run_command('get_apache_modules_dirs.py',=
apache_httpd2.full_path(), check: false)
have_apache =3D (apache_modules_dirs_out.returncode() =3D=3D 0)
endif
/usr/sbin/apachectl contains these calls:
[ ! -d ${APACHE_RUN_DIR:-/run/apache2}/socks ] && mkdir_chown ${APACHE_RU=
N_USER:-www-data} ${APACHE_RUN_DIR:-/run/apache2}/socks
[ ! -d ${APACHE_LOCK_DIR:-/run/lock/apache2} ] && mkdir_chown ${APACHE_RU=
N_USER:-www-data} ${APACHE_LOCK_DIR:-/run/lock/apache2}
Which would fail for a non-root user... so the attempt to call apachectl
is always going to fail if /run/apache2 is not already set up and
owned by www-data.
And calling apache2 (a.k.a. httpd) directly without setting up the
environment variables is also going to fail...
>>There clearly are some differences or limitations in debrebuild's
>>environment but I haven't seen a list of these posted in the usual
>>places I would expect. For instance: https://reproduce.debian.net/
>
> The list is here:
>
> https://release.debian.org/reproducible-builds-host-requirements.html
>
> And it states that builds should not rely on the content of /run.
I vaguely was aware of some quirks with /run, but nice to have that
specific list, thanks!
> There is already a similar bug for gnome-settings-daemon with more=20
> discussion:
>
> https://bugs.debian.org/1150166
I do not see any more discussion there, just the initial report.
live well,
vagrant
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCat/PngAKCRDcUY/If5cW
qgLDAP94jWQuRbvGrp/fe6whLsdeqi0TRTXQtCsMkWct+F4UhgEAiaTMIGOsgHJ/
FgCo3JAsLqXP7OeK6BrRS8OAjnB77gM=
=VPE7
-----END PGP SIGNATURE-----
--=-=-=--
Bug#1150166: Bug#1126440: Help with libsoup reproducibility
Author: Jeremy Bícha
Date: Tue, 27 Oct 2026 11:30
Date: Tue, 27 Oct 2026 11:30
19 lines
4032 bytes
4032 bytes
On Tue, Oct 27, 2026 at 7:57 AM Jochen Sprickerhof <jspricke@debian.org> wrote: > To give some more insights: debrebuild uses mmdebstrap to create the > chroot which cleans up /run by default, as it is assumed to be a tmpfs. > So to make sbuild and debrebuild consistent we could either cleanup /run > in sbuild or call mmdebstrap with --skip=cleanup/run. Would be happy to > hear opinions and how other distributions handle this. I didn't look closely at gnome-settings-daemon yet. However, the GNOME desktop requires systemd and it makes sense to me that gnome-settings-daemon would have build tests that would ensure that its sytemd services are working. Therefore, if it's possible for https://reproduce.debian.net/ to also support /run , that seems to be to be the better solution than breaking some build tests that require /run . In this particular case, gnome-settings-daemon also runs those tests as autopkgtests but not all packages are set up for that yet. Thank you, Jeremy Bícha
Bug#1126440: Help with libsoup reproducibility
Author: Jeremy Bícha
Date: Tue, 27 Oct 2026 14:50
Date: Tue, 27 Oct 2026 14:50
18 lines
3947 bytes
3947 bytes
On Tue, Oct 27, 2026 at 2:57 PM Jochen Sprickerhof <jspricke@debian.org> wrote: > To be clear, systemd is not run during a normal build in sbuild so that > can't be an argument here. Also debrebuild (and thus reproduce.d.n) > support /run just fine, just that the content can be different. > Also note that I am only aware of two packages, gnome-settings-daemon > and libsoup depending on state in /run so I think it is a good time to > discuss it now. If we don't find a good solution in time we can just > hint libsoup into testing (I did that for gnome-settings-daemon > already). I think we have enough information to fix libsoup, but I don't have the available time to work on it this week. I think we'll patch meson.build to give it the specific Apache details it needs. That might be a Debian-specific patch. Thank you, Jeremy Bícha
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads