Bug#917205: dh-fortran-mod: must not act on arch:all packages

Andreas Beckmann anbe at debian.org
Mon Dec 24 01:12:03 GMT 2018


Package: dh-fortran-mod
Version: 0.7
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects: src:openmpi

Hi,

during a test with piuparts I noticed the postrm snippets inserted by
your package cause errors.

>From the attached log (scroll to the bottom...):

  Purging configuration files for openmpi-common (3.1.3-6) ...
  rmdir: failed to remove '/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15': No such file or directory
  dpkg: error processing package openmpi-common (--purge):
   installed openmpi-common package post-removal script subprocess returned error exit status 1

This was a test on i386, openmpi-common is an arch:all package
built on amd64. As an arch:all package it must not contain
arch-specific stuff.

Why is anything inserted into the maintainer scripts anyway if
there are no fortran mods at all in the package?


There could be another bug as can be seen in libopenmpi3:amd64:

  Purging configuration files for libopenmpi3:amd64 (3.1.3-6) ...
  rmdir: failed to remove '/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15': No such file or directory
  dpkg: error processing package libopenmpi3:amd64 (--purge):
   installed libopenmpi3:amd64 package post-removal script subprocess returned error exit status 1

I don't know if this was built against dh-fortran-mod 0.6 and
should be fixed by rebuilding against 0.7 ...


src:openmpi will need a sourceful upload to rebuild the arch:all
packages against a fixed dh-fortran-mod, again.

And *PLEASE* do *source-only* uploads unless you have something
that needs to go through NEW.


cheers,

Andreas

*not amused*



More information about the debian-science-maintainers mailing list