[Bug 810059] opencl-utils - Useful OpenCL tools and utilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=810059

--- Comment #6 from Alec Leamas <leamas.alec@xxxxxxxxx> 2012-04-05 14:31:46 EDT ---
The soname stuff. First, add a new linker flag
-Wl,-soname=libclrun.so.%{version} to the  gcc link phase, which sets the
soname on the library libclrun.

Now, if you define version to 0.0.16 you should rename the resulting library to
libclrun.so.0.0.16 i. e., libclrun.so.%{version}

You will need the links lbclrun.so.0.0, libclrun.so.0 and libclrun.so, all
linked to libclrun.so.%{version}. These can be setup using following in
%install:

sofile=libclrun.so.%{version}
mkdir -p %{buildroot}%{_libdir}
install -m 755 $sofile %{buildroot}%{_libdir}
cd %{buildroot}%{_libdir}
ln -sf $sofile ${sofile%%.*}
ln -sf $sofile ${sofile%%.*.*}
ln -sf $sofile ${sofile%%.*.*.*}

The libclrun.so (*.so) link belongs to the devel package, the rest (*.so.*) 
goes to base package. Standard ldconfig %post and %postun scriptlets.

There are certainly other ways to do this. In particular, there's a debate on
how to choose so-name. Since we havn't really any stable API:s here, I think
this schema makes most sense, though.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]