On Mon, Aug 24, 2015 at 9:12 AM, Marcin Juszkiewicz <mjuszkiewicz@redhat.com> wrote:
Hi

During last few days I fetched over 26 thousand of Fedora package repositories. Plan to go though all spec files and submit some patches mainly related to my aarch64 work.

We live in a world where most of Linux systems are either 32 or 64 bit. But do you know how many 64-bit architectures Fedora and RHEL have?

According to spec files we have at least 8 while current Fedora has 1 primary and 4 secondary ones.

x86-64 is main one which most of developers use for everything
aarch64 is my favourite secondary one
ppc64 is probably fastest one
ppc64le is little endian version of previous
s390x is fridge size mainframe (is such small exist)

Specs also mention ia64 (not supported Itanium), alpha (I have some friends who still own them but do not run), sparc64/sparcv9 (even Debian got rid of sparc support).

But why I write?

Because there are lot of code like:

%ifarch x86_64 ppc64 ia64 s390x sparc64
    USE_64=1
%endif

Where is should be:

%if 0%{?__isa_bits} == 64
 USE_64=1
%endif

Which works since RHEL6 (from what I know). And it automatically covers all 64-bit architectures not only those which maintainer remembers.

So please do me a favour and take a look at your packages and adapt their spec files. Otherwise sooner or later such patch may land in bugtracker but instead I could fix some other package at same time.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

​Oh, yes! I was trying to find something like this all weekend for my Copr for reprepro. I have to make a patch to access apt-methods in /usr/lib64 on 64-bit systems, but on 32-bit systems it should remain /usr/lib.

You just made my day. ​


--
真実はいつも一つ!/ Always, there's only one truth!