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...
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxxxxxxx
Boulder, CO 80301 http://www.cora.nwra.com
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx