Control: tag -1 moreinfo Hi Drew, On Mon, 17 Aug 2020 19:23:05 +0800 Drew Parsons <dpars...@debian.org> wrote: > Package: libhdf5-openmpi-dev > Version: 1.10.6+repack-2 > Severity: normal > > We've set up libhdf5-openmpi-dev (and libhdf5-mpich-dev) to use the > alternatives mechanism to configure a symlink from a generic pkgconfig > file hdf5-mpi.pc to the specific hdf5-openmpi.pc (or hdf5-mpich.pc). > This allows client programs to get libs with 'pkg-config --libs hdf5-mpi' > without needing to know which specific MPI implementation is being > used. > > It's a good and useful service, I think we should keep it. > > But we should document (or fix if possible) that this alternatives > mechanism is a little fragile, and sometimes the link needs to be > refresh with > sudo dpkg-reconfigure libhdf5-openmpi-dev > > What I mean is that sometimes the link seem to just disappear, so we get > $ pkg-config --libs hdf5-mpi > Package hdf5-mpi was not found in the pkg-config search path. > Perhaps you should add the directory containing `hdf5-mpi.pc' > to the PKG_CONFIG_PATH environment variable > No package 'hdf5-mpi' found > > It gets restored by 'dpkg-reconfigure libhdf5-openmpi-dev' > (update-alternative --config hdf5-mpi would also enable it to be reset). > > I'm not sure why exactly the link is being lost or if it's feasible to > make the mechanism for it more robust. I presume it happens when > openmpi gets updated (e.g. recently updated to openmpi 4.0.4). > libhdf5-openmpi-dev.postinst of course is setting the alternatives > link, though I don't understand why the link would be lost just > because openmpi got upgraded. > > Filing this bug so we can document and keep watch on the problem. > Again, the workaround is to run > > sudo dpkg-reconfigure libhdf5-openmpi-dev > > (or dpkg-reconfigure libhdf5-mpich-dev)
Do you have a scenario leading to this alternative disparition? Thanks, _g.
signature.asc
Description: OpenPGP digital signature