pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/LuaJIT2
Module Name: pkgsrc
Committed By: he
Date: Sat Jun 2 20:01:21 UTC 2018
Modified Files:
pkgsrc/lang/LuaJIT2: Makefile distinfo
Added Files:
pkgsrc/lang/LuaJIT2/patches: patch-src_lj__arch.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/LuaJIT2/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/LuaJIT2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/LuaJIT2/patches/patch-src_lj__arch.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/LuaJIT2/Makefile
diff -u pkgsrc/lang/LuaJIT2/Makefile:1.11 pkgsrc/lang/LuaJIT2/Makefile:1.12
--- pkgsrc/lang/LuaJIT2/Makefile:1.11 Sat Sep 16 19:53:51 2017
+++ pkgsrc/lang/LuaJIT2/Makefile Sat Jun 2 20:01:21 2018
@@ -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/
Index: pkgsrc/lang/LuaJIT2/distinfo
diff -u pkgsrc/lang/LuaJIT2/distinfo:1.9 pkgsrc/lang/LuaJIT2/distinfo:1.10
--- pkgsrc/lang/LuaJIT2/distinfo:1.9 Mon May 29 21:47:31 2017
+++ pkgsrc/lang/LuaJIT2/distinfo Sat Jun 2 20:01:21 2018
@@ -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 @@ SHA512 (LuaJIT-2.0.5.tar.gz) = 263667560
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
Added files:
Index: pkgsrc/lang/LuaJIT2/patches/patch-src_lj__arch.h
diff -u /dev/null pkgsrc/lang/LuaJIT2/patches/patch-src_lj__arch.h:1.1
--- /dev/null Sat Jun 2 20:01:21 2018
+++ pkgsrc/lang/LuaJIT2/patches/patch-src_lj__arch.h Sat Jun 2 20:01:21 2018
@@ -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