[lapack] Use generic macro to detect 64 bit platforms

Jerry James loganjerry at gmail.com
Tue Oct 14 02:57:31 UTC 2014


On Mon, Oct 13, 2014 at 6:00 PM, Peter Robinson
<pbrobinson at fedoraproject.org> wrote:
> commit 1c07fc6e86ce11c81da77ac6c55b934594f25bee
> Author: Peter Robinson <pbrobinson at gmail.com>
> Date:   Tue Oct 14 01:00:36 2014 +0100
>
>     Use generic macro to detect 64 bit platforms
>
>  lapack.spec |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)
> ---
> diff --git a/lapack.spec b/lapack.spec
> index 0be11ec..c323757 100644
> --- a/lapack.spec
> +++ b/lapack.spec
> @@ -1,7 +1,7 @@
>  %global shortver       3
>  %global mediumver      %{shortver}.5
>
> -%ifarch x86_64 ppc64
> +%if %{__isa_bits} == 64
>  %global arch64 1
>  %else
>  %global arch64 0

I have used this approach in some spec files myself, but I recently
read that the %{__isa_bits} macro is not necessarily defined for all
64-bit platforms, just for those that are multiarch; i.e., that have a
32-bit variant [1].  Is this true for Fedora?  Do we support any
platforms for which %{__isa_bits} is NOT defined?  Even if we don't
now, is there any possibility that we will in the future?  It sure
would be nice to have a macro we can rely on to distinguish between
32-bit and 64-bit platforms for some packages.

Footnotes:
[1] http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
-- 
Jerry James
http://www.jamezone.org/


More information about the devel mailing list