Bug#968170: apache2-dev: dh_apache2: "dh_missing: warning: … exists in debian/tmp but is not installed to anywhere" despite "conf|mod debian/tmp/…" in debian/….apache2 with debhelper 13

наб <[email protected]>
Newsgroups gmane.linux.debian.devel.apache
Message-ID <w5jthhjzv76cvamrxcxwkdcmzm3slwhxpfj7mwyr3t3xd3roci__40150.8159282216$1733673449$gmane$org@tarta.nabijaczleweli.xyz>
Control: found -1 + 2.4.62-1~deb12u2
Control: retitle -1 apache2-dev: dh_apache2: "dh_missing: warning: … exists in debian/tmp but is not installed to anywhere" despite "conf|mod debian/tmp/…" in debian/….apache2 with debhelper 13

I can repro this for .sos as well.

Given
  debian/libapache2-mod-musicindex.apache2:mod	debian/tmp/usr/lib/apache2/modules/*.so
  debian/libapache2-mod-musicindex.apache2:mod	debian/musicindex.load
  debian/libapache2-mod-musicindex.apache2:mod	debian/musicindex.conf
and
     dh_apache2 -O-v
          Installing module binary debian/tmp/usr/lib/apache2/modules/mod_musicindex.so into debian/libapache2-mod-musicindex//usr/lib/apache2/modules/
  
          cp debian/tmp/usr/lib/apache2/modules/mod_musicindex.so debian/libapache2-mod-musicindex//usr/lib/apache2/modules/
          Installing module configuration musicindex into debian/libapache2-mod-musicindex/etc/apache2/mods-available/
  
          mkdir -p debian/libapache2-mod-musicindex/etc/apache2/mods-available/
          chmod 755 debian/libapache2-mod-musicindex/etc/apache2/mods-available/
          cp debian/musicindex.load debian/libapache2-mod-musicindex/etc/apache2/mods-available/
          chmod 644 debian/libapache2-mod-musicindex/etc/apache2/mods-available//musicindex.load
          cp debian/musicindex.conf debian/libapache2-mod-musicindex/etc/apache2/mods-available/
          chmod 644 debian/libapache2-mod-musicindex/etc/apache2/mods-available//musicindex.conf
          mv debian/libapache2-mod-musicindex.substvars.new debian/libapache2-mod-musicindex.substvars
          echo "# Automatically added by dh_apache2/UNDECLARED">> debian/libapache2-mod-musicindex.postinst.debhelper
          sed "s^W#ACTION#^W^Wg; s^W#CONDITIONAL_VARIABLE#^Wtrue^Wg; s^W#ERROR_HANDLER#^Wexit 1^Wg; s^W#HELPER#^Wenmod^Wg; s^W#NAMES#^Wmusicindex ^Wg; " /usr/share/debhelper/autoscripts/postinst-apache2 >> debian/libapache2-mod-musicindex.postinst.debhelper
          echo '# End automatically added section' >> debian/libapache2-mod-musicindex.postinst.debhelper
          echo "# Automatically added by dh_apache2/UNDECLARED">> debian/libapache2-mod-musicindex.prerm.debhelper
          sed "s^W#ACTION#^W^Wg; s^W#CONDITIONAL_VARIABLE#^Wtrue^Wg; s^W#ERROR_HANDLER#^Wexit 1^Wg; s^W#HELPER#^Wdismod^Wg; s^W#NAMES#^Wmusicindex ^Wg; " /usr/share/debhelper/autoscripts/prerm-apache2 >> debian/libapache2-mod-musicindex.prerm.debhelper
          echo '# End automatically added section' >> debian/libapache2-mod-musicindex.prerm.debhelper
          echo "# Automatically added by dh_apache2/UNDECLARED">> debian/libapache2-mod-musicindex.postrm.debhelper
          sed "s^W#ACTION#^W^Wg; s^W#CONDITIONAL_VARIABLE#^Wtrue^Wg; s^W#ERROR_HANDLER#^Wexit 1^Wg; s^W#HELPER#^Wdismod^Wg; s^W#NAMES#^Wmusicindex ^Wg; " /usr/share/debhelper/autoscripts/postrm-apache2 >> debian/libapache2-mod-musicindex.postrm.debhelper
          echo '# End automatically added section' >> debian/libapache2-mod-musicindex.postrm.debhelper
and
  $ l debian/libapache2-mod-musicindex//usr/lib/apache2/modules/
  total 416k
  -rw-r--r-- 1 nabijaczleweli users 412.4k 12-08 16:49 mod_musicindex.so
I see
  dh_missing: warning: usr/lib/apache2/modules/mod_musicindex.so exists in debian/tmp but is not installed to anywhere
  dh_missing: error: missing files, aborting
          The following debhelper tools have reported what they installed (with files per package)
           * dh_install: libapache2-mod-musicindex (0), mod-musicindex-common (15)
           * dh_installdocs: libapache2-mod-musicindex (0), mod-musicindex-common (4)
          If the missing files are installed by another tool, please file a bug against it.
          When filing the report, if the tool is not part of debhelper itself, please reference the
          "Logging helpers and dh_missing" section from the "PROGRAMMING" guide for debhelper (10.6.3+).
            (in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
          Be sure to test with dpkg-buildpackage -A/-B as the results may vary when only a subset is built
          If the omission is intentional or no other helper can take care of this consider adding the
          paths to debian/not-installed.

Repro by building https://salsa.debian.org/debian/libapache-mod-musicindex
at a16ec0e0b10febe12a54529918602bbbef1cffaa.

Rolling back to debhelper-compat (= 12) works around this.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmdVwX4ACgkQvP0LAY0m
WPFfCxAAlrGC68V+hJrMSY/7bzloH/w0xnd1L1DEaj1cSPxPJbA5bUQi5L0crCLy
oSm4/vv9ej4nHyaztXlRClhBQJdj3q6KrpjnS+M6zjqSg70Z/IrZF1HqnctjU23l
5XEjlSW3NYta3o1TbyWW0Lp0cItIUxjlRya4CY3Nv7EzmXzQ7BqWgYry3YiZkwNI
QQVQtXXZc9BIxd96ZxBURfrEPQ5gfRxGph4TAF2ZXdP/F5Elv4GLyR6l2A2akvY5
GP970uqBPH73V7M4gCBinV+lTPRJxzJe63KZeYR7Qy6a8ny5vqUXV64rbnDrm9w0
H8CJxUhCN3ATvZo+PmH2qpRCiqmxGBoNKSILL7008FHi+DhFPY/TjFrpEVa+Vht7
FQFLGpPY0RZ3eJ1GpjmKdcSiJO3x8SDRfoyItcjhyme4mrKurOJLW3QZsepWqCZp
mWDGckZ6PCKRBO87C3WnMBu3A7dEp06zwt2McPeBJLTDQOzPYlrA9JXuzfzMIjvM
Np0h/1by9qkuKlKlLhPd0uvHEUODCX9XMbH0KYCqUtq+tq6VzaCAtxPUjBypqKBY
8GBDIPXO9KRlbosfZ3I7fqrHmYFf3VMUXmmWdSWnzAdNNrAclTy+A3Q1syDCGKnp
pEottO3pn983nS4nKPQW8tjNEYZ/ltcTlY+5ZHDV9TbsVIWkFYc=
=OLcY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.