[atlas] 02/03: d/p/ppc64-endianness.patch: new patch, fix machine detection on ppc64.

Sébastien Villemot sebastien at debian.org
Thu Aug 10 12:07:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository atlas.

commit 7431f6ef071b8dfda4a0316b05107303b8a3f6b4
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Thu Aug 10 14:05:29 2017 +0200

    d/p/ppc64-endianness.patch: new patch, fix machine detection on ppc64.
---
 debian/patches/ppc64-endianness.patch | 18 ++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/ppc64-endianness.patch b/debian/patches/ppc64-endianness.patch
new file mode 100644
index 0000000..5335e8c
--- /dev/null
+++ b/debian/patches/ppc64-endianness.patch
@@ -0,0 +1,18 @@
+Description: Fix endianness detection on ppc64*
+ The __ORDER_LITTLE_ENDIAN__ macro is defined even on big endian systems.
+Author: Sébastien Villemot <sebastien at debian.org>
+Forwarded: no
+Last-Update: 2017-08-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CONFIG/src/SpewMakeInc.c
++++ b/CONFIG/src/SpewMakeInc.c
+@@ -557,7 +557,7 @@ int main(int nargs, char **args)
+    fprintf(fpout, "#  -------------------------------------------------\n");
+    fprintf(fpout, "   ARCH = %s", machnam[mach]);
+    fprintf(fpout, "%d", ptrbits);
+-   #if defined(__powerpc64__) && defined(__ORDER_LITTLE_ENDIAN__)
++   #if defined(__powerpc64__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+       fprintf(fpout, "LE");
+    #endif
+    if (ISAX)
diff --git a/debian/patches/series b/debian/patches/series
index cc42c48..aeb0ee4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ ppc64el-ifdef-files-with-lvx.patch
 powerpc-dcbt.patch
 fix-typos.patch
 missing-cflags.patch
+ppc64-endianness.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/atlas.git



More information about the debian-science-commits mailing list