Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/external/public-domain/xz Pull up following revision(s) (...



details:   https://anonhg.NetBSD.org/src/rev/ea181b013c8d
branches:  netbsd-6
changeset: 774293:ea181b013c8d
user:      riz <riz%NetBSD.org@localhost>
date:      Wed Jul 04 19:45:31 2012 +0000

description:
Pull up following revision(s) (requested by jdc in ticket #378):
        external/public-domain/xz/prepare-import.sh: revision 1.3
        external/public-domain/xz/include/config.h: revision 1.2
Determine WORDS_BIGENDIAN at build time, rather than hardcoding it to 0.
Makes liblzma work on sparc64 (and probably other big endian hosts too).
Add a note to the import script.

diffstat:

 external/public-domain/xz/include/config.h  |   9 ++-------
 external/public-domain/xz/prepare-import.sh |  11 ++++++++++-
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (43 lines):

diff -r a7a513e01b5c -r ea181b013c8d external/public-domain/xz/include/config.h
--- a/external/public-domain/xz/include/config.h        Wed Jul 04 19:43:10 2012 +0000
+++ b/external/public-domain/xz/include/config.h        Wed Jul 04 19:45:31 2012 +0000
@@ -286,14 +286,9 @@
 
 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
    significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
+#include <sys/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
 #  define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-/* #  undef WORDS_BIGENDIAN */
-# endif
 #endif
 
 /* Number of bits in a file offset, on hosts where this is settable. */
diff -r a7a513e01b5c -r ea181b013c8d external/public-domain/xz/prepare-import.sh
--- a/external/public-domain/xz/prepare-import.sh       Wed Jul 04 19:43:10 2012 +0000
+++ b/external/public-domain/xz/prepare-import.sh       Wed Jul 04 19:45:31 2012 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: prepare-import.sh,v 1.1.8.1 2012/03/07 22:33:25 riz Exp $
+# $NetBSD: prepare-import.sh,v 1.1.8.2 2012/07/04 19:45:31 riz Exp $
 
 set -e
 
@@ -31,3 +31,12 @@
 # build-aux/* from autoconf
 # lib/*
 # m4/*
+
+# Changes to config.h
+echo Add build-time endian test to include/config.h:
+cat << EOE
+#include <sys/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#  define WORDS_BIGENDIAN 1
+#endif
+EOE



Home | Main Index | Thread Index | Old Index