#1121699 dh-exec: Spurious dh_missing error in openssh

Package:
dh-exec
Source:
dh-exec
Description:
Scripts to help with executable debhelper files
Submitter:
Colin Watson
Date:
2025-11-30 21:01:01 UTC
Severity:
normal
#1121699#5
Date:
2025-11-30 20:59:02 UTC
From:
To:
In
https://salsa.debian.org/ssh-team/openssh/-/commit/53462c50b25a298bea74e0c470538495b6f7db52,
I removed a workaround for https://bugs.debian.org/1017023.  This caused
failures in Salsa CI, but only with "sbuild --arch-any --no-arch-all".
The failure can be seen in
https://salsa.debian.org/ssh-team/openssh/-/jobs/8675672, and looks like
this:

   dh_missing -a
dh_missing: warning: etc/ssh/sshd_config exists in debian/tmp but is not installed to anywhere (related file: "debian/tmp/dh-exec.ZmmIpkD4/usr/share/openssh/sshd_config")
dh_missing: error: missing files, aborting
        While detecting missing files, dh_missing noted some files with a similar name to those
        that were missing.  This error /might/ be resolved by replacing references to the
        missing files with the similarly named ones that dh_missing found - assuming the content
        is identical.
        As an example, you might want to replace:
         * debian/tmp/dh-exec.ZmmIpkD4/usr/share/openssh/sshd_config
        with:
         * etc/ssh/sshd_config
        in a file in debian/ or as argument to one of the dh_* tools called from debian/rules.

openssh-server is Architecture: any, and debian/openssh-server.install
has "debian/tmp/etc/ssh/sshd_config => usr/share/openssh/sshd_config".
After the failure, "find debian -name sshd_config" says:

  debian/tmp/dh-exec.pZjN08Ud/usr/share/openssh/sshd_config
  debian/tmp/etc/ssh/sshd_config
  debian/openssh-server/usr/share/openssh/sshd_config

This might be similar to https://bugs.debian.org/1068632, but I'm
sufficiently unsure that it seemed better to file a new bug.  I'll
revert 53462c50b25a298bea74e0c470538495b6f7db52 for now to get my builds
working again, but you should be able to reproduce it by checking out
openssh at that commit.

Thanks,