Hello

I've got an initial implementation of this using the rpm dependency generator hooks, as suggested in the other thread [1].

The resulting scripts are here: https://smani.fedorapeople.org/rpm-mpi-hooks/

There is just one problem: an elf binary in an $MPI_HOME subfolder will now trigger both the elf as well as the mpi dependency generator, resulting in both

libfoo.so()(64bit)
libfoo.so()(64bit)(openmpi-x86_64)

being generated for /usr/lib64/openmpi/lib/libfoo.so. However, to achieve the goal of disambiguating the provides of libfoo and libfoo-openmpi, libfoo-openmpi should only provide "libfoo.so()(64bit)(openmpi-x86_64)".

The only solution which comes to mind is adding

%__elf_exclude_path     ^%{_prefix}/lib(64)/(openmpi|mpich)/.*$

to elf.attr. Is this acceptable?

Thanks,
Sandro


[1] https://lists.fedoraproject.org/pipermail/devel/2015-June/211570.html
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to