Automatically generating needed requires for julia

Florian Weimer fweimer at redhat.com
Fri Jan 29 12:09:00 UTC 2016


On 01/12/2016 05:36 AM, Orion Poplawski wrote:
> The julia language loads libraries at run time by using the .so
> filename.  We work around this in the julia package by symlinking the
> needed sonames into %{_libdir}/julia/, e.g.:
> 
> for lib in arpack cholmod dSFMT git2 fftw3_threads gmp mprf openlibm
> openspecfun pcr2-8 umfpack
> do
>   soname=$(objdump -p %{_libdir}/lib${lib}.so | awk '$1 == "SONAME" {
> print $2}')
>   ln -s ../${soname} %{buildroot}%{_libdir}/julia/lib${lib}.so
> done

This happens at build time, right?

> Now we want to automatically generate the needed rpm requires, e.g.:
> 
> libarpack.so.2()(64bit)

I think this wouldn't be quite right.  You don't need the soname, you
need the path itself.  The dependency above does not express that.

Florian



More information about the Rpm-list mailing list