Page MenuHomeFreeBSD

[PowerPC64LE] Fix Lua 5.2 runtime issue
ClosedPublic

Authored by bdragon on Aug 29 2020, 7:37 PM.
Referenced Files
F106586091: D26234.id76842.diff
Thu, Jan 2, 6:51 AM
Unknown Object (File)
Wed, Dec 25, 8:39 AM
Unknown Object (File)
Tue, Dec 10, 11:52 PM
Unknown Object (File)
Nov 25 2024, 12:22 PM
Unknown Object (File)
Nov 20 2024, 4:26 PM
Unknown Object (File)
Nov 20 2024, 4:24 PM
Unknown Object (File)
Nov 20 2024, 2:24 PM
Unknown Object (File)
Nov 1 2024, 8:28 AM
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