F23 Self Contained Change: RPM MPI Requires Provides

Sandro Mani manisandro at gmail.com
Tue Jul 7 09:12:05 UTC 2015


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


More information about the devel mailing list