Article View: linux.debian.bugs.dist
Article #6222Bug#1069907: dh_apache2: please output reproducible module package pre/post scripts.
From: Vagrant Cascadian
Date: Wed, 25 Nov 2026 23:10
Date: Wed, 25 Nov 2026 23:10
63 lines
4206 bytes
4206 bytes
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On 2026-11-25, James McCoy wrote:
> From 979654bae43fe845e6a748543a4b5059b0a80409 Mon Sep 17 00:00:00 2001
> From: James McCoy <jamessan@debian.org>
> Date: Mon, 23 Nov 2026 22:12:26 -0500
> Subject: [PATCH] dh_apache2: Sort File::Find results
>
> When no .apache2 file is present, the has_a_* arrays are populated by
> using File::Find::find() to gather relevant files and pushing the
> garnered data into the has_a_* arrays. Since the order the files are fed
> to find() can vary, this produces non-reproducible results.
>
> Use find()'s preprocess key to sort the files first.
>
> Closes: #1069907
> Signed-off-by: James McCoy <jamessan@debian.org>
> ---
> debian/debhelper/dh_apache2.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/debian/debhelper/dh_apache2.in b/debian/debhelper/dh_apache2=
.in
> index 862d2f85..8e5dbaf6 100755
> --- a/debian/debhelper/dh_apache2.in
> +++ b/debian/debhelper/dh_apache2.in
> @@ -462,6 +462,7 @@ foreach my $package ((@{$dh{DOPACKAGES}}))
> {
> # do black magic only if there is no .apache2 configuration file
> find({ no_chdir =3D> 1,
> + preprocess =3D> sub { sort },
> wanted =3D> sub
> {
> my ($dir, $file) =3D (dirname($File::Find::name), basename($File::Fi=
nd::name));
> --=20
> 2.53.0
Looks close! Thanks for working on it! ... but triggers FTBFS in
subversion:
make[1]: Leaving directory '/build/reproducible-path/subversion-1.15.0'
dh_apache2 -a -O--builddirectory=3DBUILD
Not enough arguments for sort at /usr/bin/dh_apache2 line 465, near "sort }"
Execution of /usr/bin/dh_apache2 aborted due to compilation errors.
live well,
vagrant
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCawdpoAAKCRDcUY/If5cW
qmQbAQC/5MWETnqVHaGZ0RbMnV6Rz0P83MhWVz+kjK794ke7TAEAn3lhwUVGPwyW
j1XgaJ4rf8/1WBO3gWdEPvRmY9Dmew4=
=d3nj
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID:
<O3uhI-e9Ih-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<IxBiN-9c5j-1@gated-at.bofh.it> <IxBiN-9c5j-1@gated-at.bofh.it> <O37O9-dXH2-7@gated-at.bofh.it> <O3sSC-e8Tb-17@gated-at.bofh.it> <IxBiN-9c5j-1@gated-at.bofh.it> <O3sSC-e8Tb-17@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1069907: dh_apache2: please output reproducible module package pre/post scripts. Date: Thu, 26 Nov 2026 00:10:02 +0100 Message-ID: <O3uhI-e9Ih-5@gated-at.bofh.it> References: <IxBiN-9c5j-1@gated-at.bofh.it> <IxBiN-9c5j-1@gated-at.bofh.it> <O37O9-dXH2-7@gated-at.bofh.it> <O3sSC-e8Tb-17@gated-at.bofh.it> <IxBiN-9c5j-1@gated-at.bofh.it> <O3sSC-e8Tb-17@gated-at.bofh.it> X-Original-To: James McCoy <jamessan@debian.org>, 1069907@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 25 23:07:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1069907@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-apache@lists.debian.org X-Debian-Pr-Message: followup 1069907 X-Debian-Pr-Package: apache2-dev X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: apache2 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005089 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 63 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: James Addison <jay@jp-hosting.net> X-Original-Date: Wed, 25 Nov 2026 15:05:04 -0800 X-Original-Message-ID: <87pkvsh5r3.fsf@wireframe> X-Original-References: <171416628730.3394.11446425578811945454.reportbug@frontier> <171416628730.3394.11446425578811945454.reportbug@frontier> <87wlq1u94i.fsf@wireframe> <awdTa5-kOvd2eMCq@localhost> <171416628730.3394.11446425578811945454.reportbug@frontier> <awdTa5-kOvd2eMCq@localhost>