Bug#916565: libopenmpi3,openmpi-{common,doc}: fails to remove: post-removal script subprocess returned error exit status 1

Samuel Thibault sthibault at debian.org
Wed Dec 19 15:22:21 GMT 2018


Control: reassign -1 dh-fortran-mod
Control: affects -1 + openmpi
Control: tags -1 + patch

>  rm: cannot remove '/usr/lib/x86_64-linux-gnu/fortran/gfortran-8#': No such file or directory
>  rm: cannot remove 'End': No such file or directory
>  rm: cannot remove 'automatically': No such file or directory
>  rm: cannot remove 'added': No such file or directory
>  rm: cannot remove 'section': No such file or directory

Looking at the postrm script, I see

rmdir --ignore-fail-on-non-empty --parents /usr/lib/$multiarch/fortran/$base
[ -d /usr/lib/$multiarch/fortran/$base ] && rm /usr/lib/$multiarch/fortran/$cmplr# End automatically added section

Its seems to be coming from dh-fortran-mod: the postrm-fortran-mod does
not have a \n on the last line. Could you apply the attached patch?
Then we'll have to rebuild openmpi and possibly others with the same
resulting issue.

Samuel
-------------- next part --------------
--- postrm-fortran-mod.orig	2018-12-19 16:20:54.080650624 +0100
+++ postrm-fortran-mod	2018-12-19 16:20:57.120660630 +0100
@@ -3,4 +3,4 @@
 cmplr="#FCOMPILER#"
 
 rmdir --ignore-fail-on-non-empty --parents /usr/lib/$multiarch/fortran/$base
-[ -d /usr/lib/$multiarch/fortran/$base ] && rm /usr/lib/$multiarch/fortran/$cmplr
\ No newline at end of file
+[ -d /usr/lib/$multiarch/fortran/$base ] && rm /usr/lib/$multiarch/fortran/$cmplr


More information about the debian-science-maintainers mailing list