Page MenuHomeFreeBSD

[PowerPC64LE] Fix Lua 5.2 runtime issue
ClosedPublic

Authored by bdragon on Aug 29 2020, 7:37 PM.
Referenced Files
Unknown Object (File)
Fri, Nov 1, 8:28 AM
Unknown Object (File)
Fri, Nov 1, 8:28 AM
Unknown Object (File)
Fri, Nov 1, 8:28 AM
Unknown Object (File)
Fri, Nov 1, 5:57 AM
Unknown Object (File)
Sep 26 2024, 11:37 AM
Unknown Object (File)
Sep 22 2024, 5:04 AM
Unknown Object (File)
Sep 16 2024, 8:12 PM
Unknown Object (File)
Sep 8 2024, 7:15 PM
Subscribers

Details

Summary

Lua 5.2 (but not earlier or later versions) have 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>

Test Plan

Before:

root@fledgling:~ # uname -p
powerpc64le
root@fledgling:~ # lua52
lua52: bad conversion number->int; must recompile Lua with proper settings
`

After:

root@fledgling:/fluffy/ports-LE/lang/lua52 # lua52
Lua 5.2.4  Copyright (C) 1994-2015 Lua.org, PUC-Rio
>

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable