Package: debhelper
Version: 12.2.3
Severity: normal

https://tests.reproducible-builds.org/debian/dbd/unstable/i386/gnupg2_2.2.17-3.diffoscope.html

shows that the postinst script for gpg-agent, which has several
.socket units appears to be re-ordered depending on the different
build, in the section of the postinst script that was written by
dh_installsystemduser.

please sort the list of units before adding them to the postinst
script so that the package is reproducible.

Thanks for your work on debhelper.

        --dkg

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'oldstable'), 
(200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debhelper depends on:
ii  autotools-dev            20180224.1
ii  dh-autoreconf            19
ii  dh-strip-nondeterminism  1.2.3-1
ii  dpkg                     1.19.7
ii  dpkg-dev                 1.19.7
ii  dwz                      0.12-3
ii  file                     1:5.35-4
ii  libdpkg-perl             1.19.7
ii  man-db                   2.8.5-2
ii  perl                     5.28.1-6
ii  po-debconf               1.0.21

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  <none>

-- no debconf information
--- 
/srv/reproducible-results/rbuild-debian/tmp.0HmW2U2m2k/b1/gnupg2_2.2.17-3_i386.changes
+++ 
/srv/reproducible-results/rbuild-debian/tmp.0HmW2U2m2k/b2/gnupg2_2.2.17-3_i386.changes
├── Files
│ @@ -4,15 +4,15 @@
│   bae99730ed5d2b93aac5c6140e62f755 406380 oldlibs optional 
gnupg-agent_2.2.17-3_all.deb
│   9d1608700cd69a5505efdfc6eda1d48b 1030488 localization optional 
gnupg-l10n_2.2.17-3_all.deb
│   9c4b507704bcf63536dd341fff03285a 1440104 debug optional 
gnupg-utils-dbgsym_2.2.17-3_i386.deb
│   459e046bd95920343711a22ff919983e 924620 utils optional 
gnupg-utils_2.2.17-3_i386.deb
│   72d3fd7ee92b06a368d4c15fb092feb1 406500 oldlibs optional 
gnupg2_2.2.17-3_all.deb
│   50b75664ee135bffbfbb0111e49b8c0f 738068 utils optional 
gnupg_2.2.17-3_all.deb
│   44d0e5096d44c40c807a07e92c0a8321 793072 debug optional 
gpg-agent-dbgsym_2.2.17-3_i386.deb
│ - bf5b4f0320c3a66f84cf03e938c93738 653596 utils optional 
gpg-agent_2.2.17-3_i386.deb
│ + 05d52ba2c17824a5e9fd9a72e1e2cae4 653596 utils optional 
gpg-agent_2.2.17-3_i386.deb
│   fafac4ecc89533e75ac53a20cb2f60ee 1040080 debug optional 
gpg-dbgsym_2.2.17-3_i386.deb
│   43000f6999b0fb6e79fd82bf550cd89e 250904 debug optional 
gpg-wks-client-dbgsym_2.2.17-3_i386.deb
│   d351315b46792264414faba0018d74e1 509536 utils optional 
gpg-wks-client_2.2.17-3_i386.deb
│   d52656ef46a93ecb9f9cc46e0be317cd 233720 debug optional 
gpg-wks-server-dbgsym_2.2.17-3_i386.deb
│   ed6950d2c9e98b2cdfab18f4f5a80abe 500676 utils optional 
gpg-wks-server_2.2.17-3_i386.deb
│   8d2b5cdebcdeabe95a1831e05261c655 920180 utils optional gpg_2.2.17-3_i386.deb
│   d81632f875e868f5fa81afbbbc96f290 292948 debug optional 
gpgconf-dbgsym_2.2.17-3_i386.deb
├── gpg-agent_2.2.17-3_i386.deb
│ ├── control.tar.xz
│ │ ├── control.tar
│ │ │ ├── ./postinst
│ │ │ │┄ ordering differences only
│ │ │ │ @@ -16,25 +16,25 @@
│ │ │ │                 deb-systemd-helper --user update-state 
'gpg-agent-ssh.socket' >/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  # End automatically added section
│ │ │ │  # Automatically added by dh_installsystemduser/12.2.2
│ │ │ │  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
│ │ │ │         # This will only remove masks created by d-s-h on package 
removal.
│ │ │ │ -       deb-systemd-helper --user unmask 'gpg-agent-browser.socket' 
>/dev/null || true
│ │ │ │ +       deb-systemd-helper --user unmask 'gpg-agent.socket' >/dev/null 
|| true
│ │ │ │  
│ │ │ │         # was-enabled defaults to true, so new installations run enable.
│ │ │ │ -       if deb-systemd-helper --quiet --user was-enabled 
'gpg-agent-browser.socket' ; then
│ │ │ │ +       if deb-systemd-helper --quiet --user was-enabled 
'gpg-agent.socket' ; then
│ │ │ │                 # Enables the unit on first installation, creates new
│ │ │ │                 # symlinks on upgrades if the unit file has changed.
│ │ │ │ -               deb-systemd-helper --user enable 
'gpg-agent-browser.socket' >/dev/null || true
│ │ │ │ +               deb-systemd-helper --user enable 'gpg-agent.socket' 
>/dev/null || true
│ │ │ │         else
│ │ │ │                 # Update the statefile to add new symlinks (if any), 
which need to be
│ │ │ │                 # cleaned up on purge. Also remove old symlinks.
│ │ │ │ -               deb-systemd-helper --user update-state 
'gpg-agent-browser.socket' >/dev/null || true
│ │ │ │ +               deb-systemd-helper --user update-state 
'gpg-agent.socket' >/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  # End automatically added section
│ │ │ │  # Automatically added by dh_installsystemduser/12.2.2
│ │ │ │  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
│ │ │ │         # This will only remove masks created by d-s-h on package 
removal.
│ │ │ │         deb-systemd-helper --user unmask 'gpg-agent-extra.socket' 
>/dev/null || true
│ │ │ │ @@ -50,21 +50,21 @@
│ │ │ │                 deb-systemd-helper --user update-state 
'gpg-agent-extra.socket' >/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  # End automatically added section
│ │ │ │  # Automatically added by dh_installsystemduser/12.2.2
│ │ │ │  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
│ │ │ │         # This will only remove masks created by d-s-h on package 
removal.
│ │ │ │ -       deb-systemd-helper --user unmask 'gpg-agent.socket' >/dev/null 
|| true
│ │ │ │ +       deb-systemd-helper --user unmask 'gpg-agent-browser.socket' 
>/dev/null || true
│ │ │ │  
│ │ │ │         # was-enabled defaults to true, so new installations run enable.
│ │ │ │ -       if deb-systemd-helper --quiet --user was-enabled 
'gpg-agent.socket' ; then
│ │ │ │ +       if deb-systemd-helper --quiet --user was-enabled 
'gpg-agent-browser.socket' ; then
│ │ │ │                 # Enables the unit on first installation, creates new
│ │ │ │                 # symlinks on upgrades if the unit file has changed.
│ │ │ │ -               deb-systemd-helper --user enable 'gpg-agent.socket' 
>/dev/null || true
│ │ │ │ +               deb-systemd-helper --user enable 
'gpg-agent-browser.socket' >/dev/null || true
│ │ │ │         else
│ │ │ │                 # Update the statefile to add new symlinks (if any), 
which need to be
│ │ │ │                 # cleaned up on purge. Also remove old symlinks.
│ │ │ │ -               deb-systemd-helper --user update-state 
'gpg-agent.socket' >/dev/null || true
│ │ │ │ +               deb-systemd-helper --user update-state 
'gpg-agent-browser.socket' >/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  # End automatically added section
│ │ │ ├── ./postrm
│ │ │ │ @@ -1,16 +1,16 @@
│ │ │ │  #!/bin/sh
│ │ │ │  set -e
│ │ │ │  # Automatically added by dh_installsystemduser/12.2.2
│ │ │ │  if [ "$1" = "remove" ]; then
│ │ │ │         if [ -x "/usr/bin/deb-systemd-helper" ] ; then
│ │ │ │ -               deb-systemd-helper --user mask 'gpg-agent-ssh.socket' 
'gpg-agent-browser.socket' 'gpg-agent-extra.socket' 'gpg-agent.socket' 
>/dev/null || true
│ │ │ │ +               deb-systemd-helper --user mask 'gpg-agent-ssh.socket' 
'gpg-agent.socket' 'gpg-agent-extra.socket' 'gpg-agent-browser.socket' 
>/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  
│ │ │ │  if [ "$1" = "purge" ]; then
│ │ │ │         if [ -x "/usr/bin/deb-systemd-helper" ] ; then
│ │ │ │ -               deb-systemd-helper --user purge 'gpg-agent-ssh.socket' 
'gpg-agent-browser.socket' 'gpg-agent-extra.socket' 'gpg-agent.socket' 
>/dev/null || true
│ │ │ │ -               deb-systemd-helper --user unmask 'gpg-agent-ssh.socket' 
'gpg-agent-browser.socket' 'gpg-agent-extra.socket' 'gpg-agent.socket' 
>/dev/null || true
│ │ │ │ +               deb-systemd-helper --user purge 'gpg-agent-ssh.socket' 
'gpg-agent.socket' 'gpg-agent-extra.socket' 'gpg-agent-browser.socket' 
>/dev/null || true
│ │ │ │ +               deb-systemd-helper --user unmask 'gpg-agent-ssh.socket' 
'gpg-agent.socket' 'gpg-agent-extra.socket' 'gpg-agent-browser.socket' 
>/dev/null || true
│ │ │ │         fi
│ │ │ │  fi
│ │ │ │  # End automatically added section

Reply via email to