Article View: linux.debian.bugs.dist
Article #2325Bug#1126440: Help with libsoup reproducibility
From: 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-----
--=-=-=--
Technical Details
Message-ID:
<NSBcR-85uN-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NSaPt-7PzO-221@gated-at.bofh.it> <NSaPt-7PzO-219@gated-at.bofh.it> <Mhy6t-dvfB-1@gated-at.bofh.it> <NSaPt-7PzO-219@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1126440: Help with libsoup reproducibility Date: Mon, 26 Oct 2026 23:20:01 +0100 Message-ID: <NSBcR-85uN-3@gated-at.bofh.it> References: <NSaPt-7PzO-221@gated-at.bofh.it> <NSaPt-7PzO-219@gated-at.bofh.it> <Mhy6t-dvfB-1@gated-at.bofh.it> <NSaPt-7PzO-219@gated-at.bofh.it> X-Original-To: Jochen Sprickerhof <rb-general@jochen.sprickerhof.de>, rb-general@lists.reproducible-builds.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 26 22:18:12 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1126440@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-gnome-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: followup 1126440 X-Debian-Pr-Package: src:libsoup X-Debian-Pr-Keywords: forky sid X-Debian-Pr-Source: libsoup MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Greylist: delayed 376 seconds by postgrey-1.37 at buxtehude; Mon, 26 Oct 2026 22:15:58 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999109 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 111 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1126440@bugs.debian.org X-Original-Date: Mon, 26 Oct 2026 15:09:34 -0700 X-Original-Message-ID: <878q3k8675.fsf@wireframe> X-Original-References: <CAAajCMaxer1Ef0bixM7m7xjCqhCwZWVw=SJUWao4YjDk=psSAQ@mail.gmail.com> <at2x9XAKY_0b7o0D@mpd> <CAAajCMZAKCyqf_-GX7ka8Y32TDgTtL4e8p7JRs2OH_mEkpdXjA@mail.gmail.com> <at2x9XAKY_0b7o0D@mpd>