Package: subversion
Severity: normal
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]

The sort order of various modules in the maintainer scripts varies:

--- 
/srv/rebuilderd/tmp/rebuilderd4BrIIh/inputs/libapache2-mod-svn_1.15.0-2_arm64.deb
+++ 
/srv/rebuilderd/tmp/rebuilderd4BrIIh/out/libapache2-mod-svn_1.15.0-2_arm64.deb
├── control.tar.xz
│ ├── control.tar
│ │ ├── ./postinst
│ │ │ @@ -1,12 +1,12 @@
│ │ │  #!/bin/sh
│ │ │  set -e
│ │ │  # Automatically added by dh_apache2/UNDECLARED
│ │ │  if true; then
│ │ │   if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
│ │ │           . /usr/share/apache2/apache2-maintscript-helper
│ │ │ -         for conf in dav_svn authz_svn  ; do
│ │ │ +         for conf in authz_svn dav_svn  ; do
│ │ │                   apache2_invoke enmod $conf  || exit 1
│ │ │           done
│ │ │   fi
│ │ │  fi
│ │ │  # End automatically added section

Although since it only varies between two positions, it is likely to
flip back and forth between reproducible and not reproducible.

This issue is currently confirmed by reproduce.debian.net on some
architectures:

  https://reproduce.debian.net/excuses.html?source_name=subversion

The triggering issue is in apache2-dev, and a fix is a work in progress:

  https://bugs.debian.org/1069907

In the meantime the attached patch works around the issue by specifying
the order in debian/libapache2-mod-svn.apache2.

I believe with this patch applied, subversion should build reproducibly!

Thanks for maintaining subversion!

live well,
  vagrant
From 8d8ab2453b2347af9e4997df4441140b624f2bbc Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Wed, 25 Nov 2026 14:49:27 -0800
Subject: [PATCH] Move installation of dav_svn.conf, dav_svn.load and
 authz_svn.load into debian/libapache2-mod-svn.apache2.

This works around https://bugs.debian.org/1069907
---
 debian/libapache2-mod-svn.apache2 | 3 +++
 debian/libapache2-mod-svn.install | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 debian/libapache2-mod-svn.apache2

diff --git a/debian/libapache2-mod-svn.apache2 b/debian/libapache2-mod-svn.apache2
new file mode 100644
index 0000000..7ae71e7
--- /dev/null
+++ b/debian/libapache2-mod-svn.apache2
@@ -0,0 +1,3 @@
+mod debian/dav_svn.conf
+mod debian/dav_svn.load
+mod debian/authz_svn.load
diff --git a/debian/libapache2-mod-svn.install b/debian/libapache2-mod-svn.install
index f7e2119..21033af 100644
--- a/debian/libapache2-mod-svn.install
+++ b/debian/libapache2-mod-svn.install
@@ -1,4 +1 @@
-debian/authz_svn.load                           etc/apache2/mods-available
-debian/dav_svn.conf                             etc/apache2/mods-available
-debian/dav_svn.load                             etc/apache2/mods-available
 debian/tmp/usr/lib/apache2/modules/*_svn.so	usr/lib/apache2/modules
-- 
2.47.3

Attachment: signature.asc
Description: PGP signature

Reply via email to