Bug#992065: mpich: libhdf5-mpich-dev upgrade problems if libmpich1.0-dev is still installed
Andreas Beckmann
anbe at debian.org
Tue Aug 10 15:40:30 BST 2021
Package: mpich
Version: 3.4.1-4
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects -1 + libhdf5-mpich-dev
During an piuparts upgrade test of libhdf5-mpich-dev on the upgrade path
squeeze -> wheezy -> jessie -> stretch -> buster -> bullseye
I observed this failure:
Setting up libhdf5-mpich-dev (1.10.6+repack-4) ...
update-alternatives: priority must be an integer
Use 'update-alternatives --help' for program usage information.
dpkg: error processing package libhdf5-mpich-dev (--configure):
installed libhdf5-mpich-dev package post-installation script subprocess returned error exit status 2
mpi alternative setting after the failure
(after upgrade squeeze...bullseye):
# update-alternatives --query mpi
Name: mpi
Link: /usr/include/mpi
Slaves:
libmpi++.a /usr/lib/libmpi++.a
libmpi++.so /usr/lib/libmpi++.so
libmpi.a /usr/lib/libmpi.a
libmpi.so /usr/lib/libmpi.so
mpiCC /usr/bin/mpiCC
mpiCC.1.gz /usr/share/man/man1/mpiCC.1.gz
mpicc /usr/bin/mpicc
mpicc.1.gz /usr/share/man/man1/mpicc.1.gz
mpicxx /usr/bin/mpicxx
mpicxx.1.gz /usr/share/man/man1/mpicxx.1.gz
mpif77 /usr/bin/mpif77
mpif77.1.gz /usr/share/man/man1/mpif77.1.gz
mpif90 /usr/bin/mpif90
mpif90.1.gz /usr/share/man/man1/mpif90.1.gz
mpireconfig /usr/bin/mpireconfig
mpireconfig.1.gz /usr/share/man/man1/mpireconfig.1.gz
Status: auto
Best: /usr/lib/mpich/include
Value: /usr/lib/mpich/include
Alternative: /usr/lib/mpich/include
Priority: 10
Slaves:
libmpi++.a /usr/lib/mpich/lib/libpmpich++.a
libmpi++.so /usr/lib/mpich/lib/shared/libpmpich++.so
libmpi.a /usr/lib/mpich/lib/libmpich.a
libmpi.so /usr/lib/mpich/lib/shared/libmpich.so
mpiCC /usr/bin/mpiCC.mpich
mpiCC.1.gz /usr/share/man/man1/mpiCC.mpich.1.gz
mpicc /usr/bin/mpicc.mpich
mpicc.1.gz /usr/share/man/man1/mpicc.mpich.1.gz
mpicxx /usr/bin/mpicxx.mpich
mpicxx.1.gz /usr/share/man/man1/mpicxx.mpich.1.gz
mpif77 /usr/bin/mpif77.mpich
mpif77.1.gz /usr/share/man/man1/mpif77.mpich.1.gz
mpif90 /usr/bin/mpif90.mpich
mpif90.1.gz /usr/share/man/man1/mpif90.mpich.1.gz
mpireconfig /usr/bin/mpireconfig.mpich
mpireconfig.1.gz /usr/share/man/man1/mpireconfig.mpich.1.gz
and after fresh installation in bullseye:
# update-alternatives --query mpi
Name: mpi
Link: /usr/bin/mpicc
Slaves:
hdf5-mpi.pc /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5-mpi.pc
mpiCC /usr/bin/mpiCC
mpic++ /usr/bin/mpic++
mpicxx /usr/bin/mpicxx
mpif77 /usr/bin/mpif77
mpif90 /usr/bin/mpif90
mpifort /usr/bin/mpifort
Status: auto
Best: /usr/bin/mpicc.mpich
Value: /usr/bin/mpicc.mpich
Alternative: /usr/bin/mpicc.mpich
Priority: 40
Slaves:
hdf5-mpi.pc /usr/lib/x86_64-linux-gnu/pkgconfig/hdf5-mpich.pc
mpiCC /usr/bin/mpicxx.mpich
mpic++ /usr/bin/mpicxx.mpich
mpicxx /usr/bin/mpicxx.mpich
mpif77 /usr/bin/mpifort.mpich
mpif90 /usr/bin/mpifort.mpich
mpifort /usr/bin/mpifort.mpich
OK, that is still an ancient mpi alternative at the time
libhdf5-mpich-dev.postinst runs ...
Probably caused by libmpich1.0-dev providing libmpich-dev and therefore
no newer libmpich-dev getting installed.
Trying to add some Breaks/Replaces ... tests running ...
BTW, installing libmpich-dev in the failure state causes
Selecting previously unselected package mpich.
Preparing to unpack .../31-mpich_3.4.1-4_amd64.deb ...
Unpacking mpich (3.4.1-4) ...
dpkg: error processing archive /tmp/apt-dpkg-install-S2t7dN/31-mpich_3.4.1-4_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mpicc.mpich', which is also in package libmpich1.0-dev 1.2.7-9.1
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhdf5-mpich-dev_1.10.6+repack-4.log.gz
Type: application/gzip
Size: 71917 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210810/f2e455a7/attachment-0001.gz>
More information about the debian-science-maintainers
mailing list