summaryrefslogtreecommitdiff
path: root/lang/LuaJIT2
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2018-06-02 20:01:21 +0000
committerhe <he@pkgsrc.org>2018-06-02 20:01:21 +0000
commit0aaef98d671e8d7e2c83f0b00f113e2169a4c5a7 (patch)
treec0ed65d29d33217426a289674767bc900f2cf481 /lang/LuaJIT2
parentbb727a68e2c8a5f3d53eef48cc23b9519c5fb817 (diff)
downloadpkgsrc-0aaef98d671e8d7e2c83f0b00f113e2169a4c5a7.tar.gz
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 (limited to 'lang/LuaJIT2')
-rw-r--r--lang/LuaJIT2/Makefile3
-rw-r--r--lang/LuaJIT2/distinfo3
-rw-r--r--lang/LuaJIT2/patches/patch-src_lj__arch.h32
3 files changed, 36 insertions, 2 deletions
diff --git a/lang/LuaJIT2/Makefile b/lang/LuaJIT2/Makefile
index be60c9364da..68bf457839b 100644
--- a/lang/LuaJIT2/Makefile
+++ b/lang/LuaJIT2/Makefile
@@ -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 --git a/lang/LuaJIT2/distinfo b/lang/LuaJIT2/distinfo
index 3510bc63b3b..9eff05684cc 100644
--- a/lang/LuaJIT2/distinfo
+++ b/lang/LuaJIT2/distinfo
@@ -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) = 2636675602b4a060b0571c05220db2061dd2f38568e35b2be
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 --git a/lang/LuaJIT2/patches/patch-src_lj__arch.h b/lang/LuaJIT2/patches/patch-src_lj__arch.h
new file mode 100644
index 00000000000..55835241d1e
--- /dev/null
+++ b/lang/LuaJIT2/patches/patch-src_lj__arch.h
@@ -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"