pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/LuaJIT2 Fix the test for endianness on powerpc so...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c33c25e5dd1b
branches:  trunk
changeset: 381277:c33c25e5dd1b
user:      he <he%pkgsrc.org@localhost>
date:      Sat Jun 02 20:01:21 2018 +0000

description:
Fix the test for endianness on powerpc so that NetBSD/powerpc
isn't mis-categorized as little-endian only because _LITTLE_ENDIAN
is defined -- what matters on NetBSD is the value of _BYTE_ORDER.
Retain the old test in the #else clause.
Bump PKGREVISION.

diffstat:

 lang/LuaJIT2/Makefile                     |   3 +-
 lang/LuaJIT2/distinfo                     |   3 +-
 lang/LuaJIT2/patches/patch-src_lj__arch.h |  32 +++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 2 deletions(-)

diffs (64 lines):

diff -r d451d53d20a9 -r c33c25e5dd1b lang/LuaJIT2/Makefile
--- a/lang/LuaJIT2/Makefile     Sat Jun 02 19:13:45 2018 +0000
+++ b/lang/LuaJIT2/Makefile     Sat Jun 02 20:01:21 2018 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.11 2017/09/16 19:53:51 alnsn Exp $
+# $NetBSD: Makefile,v 1.12 2018/06/02 20:01:21 he Exp $
 #
 
 DISTNAME=      LuaJIT-2.0.5
 PKGNAME=       ${DISTNAME:S/LuaJIT/LuaJIT2/}
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  http://luajit.org/download/
 
diff -r d451d53d20a9 -r c33c25e5dd1b lang/LuaJIT2/distinfo
--- a/lang/LuaJIT2/distinfo     Sat Jun 02 19:13:45 2018 +0000
+++ b/lang/LuaJIT2/distinfo     Sat Jun 02 20:01:21 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2017/05/29 21:47:31 alnsn Exp $
+$NetBSD: distinfo,v 1.10 2018/06/02 20:01:21 he Exp $
 
 SHA1 (LuaJIT-2.0.5.tar.gz) = 10427215da7d424fd9e48adbea087966053cdb6f
 RMD160 (LuaJIT-2.0.5.tar.gz) = 5176d34fa112c4586394398c3a5c9ce1ad4d4c72
@@ -6,3 +6,4 @@
 Size (LuaJIT-2.0.5.tar.gz) = 849845 bytes
 SHA1 (patch-Makefile) = edea30d017c9d2938d951bfdee88020906945aee
 SHA1 (patch-src_Makefile) = d7236260dc17f470d7d6e41a57a22dcd3a501c28
+SHA1 (patch-src_lj__arch.h) = 4c34706db4c678b368bb3e38b07505abde01e590
diff -r d451d53d20a9 -r c33c25e5dd1b lang/LuaJIT2/patches/patch-src_lj__arch.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/LuaJIT2/patches/patch-src_lj__arch.h Sat Jun 02 20:01:21 2018 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_lj__arch.h,v 1.1 2018/06/02 20:01:21 he Exp $
+
+Fix the test for endianness so that NetBSD/powerpc isn't
+mis-categorized as little-endian only because _LITTLE_ENDIAN
+is defined -- what matters on NetBSD is the value of _BYTE_ORDER.
+
+--- src/lj_arch.h.orig 2017-05-01 18:11:00.000000000 +0000
++++ src/lj_arch.h
+@@ -339,12 +339,21 @@
+ #if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE)
+ #error "No support for PowerPC CPUs without double-precision FPU"
+ #endif
+-#if defined(_LITTLE_ENDIAN)
+-#error "No support for little-endian PowerPC"
++
++#if defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN)
++# if (_BYTE_ORDER == _LITTLE_ENDIAN)
++#  error "No support for little-endian PowerPC"
++# endif
++#else
++# if defined(_LITTLE_ENDIAN)
++#  error "No support for little-endian PowerPC"
++# endif
+ #endif
++
+ #if defined(_LP64)
+ #error "No support for PowerPC 64 bit mode"
+ #endif
++
+ #elif LJ_TARGET_MIPS
+ #if defined(__mips_soft_float)
+ #error "No support for MIPS CPUs without FPU"



Home | Main Index | Thread Index | Old Index