rpm flags shared libraries of ELFCLASS64 with '(64bit)' on all architectures except Alpha (which thankfully we don't support). My question is, are ELFCLASS64 libraries always installed in /usr/lib64 on all Fedora platforms, or am I going to have to read the elf class of the file to be sure?
On Wed, 2016-01-13 at 16:03 -0700, Orion Poplawski wrote:
rpm flags shared libraries of ELFCLASS64 with '(64bit)' on all architectures except Alpha (which thankfully we don't support). My question is, are ELFCLASS64 libraries always installed in /usr/lib64 on all Fedora platforms, or am I going to have to read the elf class of the file to be sure?
If you consider ia64 to be a Fedora platform - and I would totally forgive you if you didn't - then no, %{_libdir} is /usr/lib there. But it's not clear to me from the question why you're trying to work this out from the file type instead of just using %{_lib} or %_{libdir}.
- ajax
On 01/14/2016 07:24 AM, Adam Jackson wrote:
On Wed, 2016-01-13 at 16:03 -0700, Orion Poplawski wrote:
rpm flags shared libraries of ELFCLASS64 with '(64bit)' on all architectures except Alpha (which thankfully we don't support). My question is, are ELFCLASS64 libraries always installed in /usr/lib64 on all Fedora platforms, or am I going to have to read the elf class of the file to be sure?
If you consider ia64 to be a Fedora platform - and I would totally forgive you if you didn't - then no, %{_libdir} is /usr/lib there. But it's not clear to me from the question why you're trying to work this out from the file type instead of just using %{_lib} or %_{libdir}.
- ajax
I want BLAS/LAPACK implementations to do something like:
%if <ELFCLASS64> Provides: libblas.so.3()(64bit) %else Provides: libblas.so.3 %endif
But not sure how to construct the <ELFCLASS64> conditional. I was hoping to avoid something like:
%(readelf -h %{_libdir}/libc.so.* | awk '$1 == "Class:" { print $2 }') == "ELF64"
but maybe that's the way to go.
It would be interesting to know the elf class on ia64...
Am 14.01.2016 um 15:42 schrieb Orion Poplawski:
I want BLAS/LAPACK implementations to do something like:
%if <ELFCLASS64> Provides: libblas.so.3()(64bit) %else Provides: libblas.so.3 %endif
not sure why you think you need to specify that explicitly while rpmbuild does that on it's own, but anyways, you would likely use soemthing like that
libblas.so.3%{?_isa}
https://fedoraproject.org/wiki/Packaging:Guidelines and look for %{?_isa} there as well as http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
On Thu, 14 Jan 2016 15:42:48 +0100, Orion Poplawski wrote:
I want BLAS/LAPACK implementations to do something like:
%if <ELFCLASS64> Provides: libblas.so.3()(64bit) %else Provides: libblas.so.3 %endif
https://lists.fedoraproject.org/pipermail/devel/2015-August/213021.html
%if %{__isa_bits} = 64 Requires: libFOO.so.X()(64bit) %else Requires: libFOO.so.X %endif
Jan