Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2020 21:47:58 +0000 (UTC)
From:      Brandon Bergren <bdragon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r548161 - head/lang/lua52/files
Message-ID:  <202009092147.089LlwOA095105@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdragon (src committer)
Date: Wed Sep  9 21:47:58 2020
New Revision: 548161
URL: https://svnweb.freebsd.org/changeset/ports/548161

Log:
  [PowerPC64LE] Fix Lua 5.2 runtime issue
  
  Lua 5.2 (but not earlier or later versions) has a powerpc platform detection
  check.
  
  This check was not using the preferred define `__powerpc__` so fails to
  trigger on gcc.
  
  It also assumes that all of powerpc is big-endian.
  
  Check a more universal preprocessor define, and add support for the
  upcoming FreeBSD PowerPC64LE.
  
  Submitted by:	Daniel Kolesa <daniel@octaforge.org>
  Reviewed by:	luporl
  Approved by:	portmgr (blanket: runtime fix)
  Differential Revision:	https://reviews.freebsd.org/D26234

Added:
  head/lang/lua52/files/patch-src__luaconf.h   (contents, props changed)

Added: head/lang/lua52/files/patch-src__luaconf.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/lua52/files/patch-src__luaconf.h	Wed Sep  9 21:47:58 2020	(r548161)
@@ -0,0 +1,19 @@
+--- src/luaconf.h.old
++++ src/luaconf.h
+@@ -519,10 +519,15 @@
+ #define LUA_IEEE754TRICK
+ #define LUA_IEEEENDIAN		0
+ 
+-#elif defined(__POWERPC__) || defined(__ppc__)			/* }{ */
++#elif defined(__powerpc__)
+ 
+ #define LUA_IEEE754TRICK
++
++#ifdef __LITTLE_ENDIAN__
++#define LUA_IEEEENDIAN		0
++#else
+ #define LUA_IEEEENDIAN		1
++#endif
+ 
+ #else								/* }{ */
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009092147.089LlwOA095105>