The Lua team maintains a list of bugs found in each release of Lua since
4.0 [1] with examples that show the bug and a patch when the fix is
available.
This patch adds all three bug fixes available so far. A fourth bug fix
should be made available soon to fix a recently-found bug in coroutines.
To make it easier to track changes for each patch, a GitHub repository
[2] has been created with the Lua distribution and patches so they can
be referenced by commit id.
- Pass MAINTAINER'ship to Submitter, who is also a member of the NetBSD
Lua team. (Thanks!)
[1] https://www.lua.org/bugs.html
[2] https://github.com/salazar/lua
PR: 213658
Submitted by: Guilherme Salazar <gmesalazar gmail com>
MFH: 2014Q4
Since the object files get built into a shared lib, using -fPIC on all
arches is the right thing to do, instead of adding it to each new arch that
comes along which doesn't accidentally allow non-PIC modules in shared libs.
PR: 207324
Approved by: mat(mentor)
Differential Revision: https://reviews.freebsd.org/D5362
The ?= assignment of CFLAGS (not present in earlier lua5x patches) results
in MYCFLAGS, passed from the port makefile, never getting assigned to CFLAGS
during the lua build. The result is a copy of lua that has none of the posix
support functions in it.
CFLAGS set in the outer environment by the user or make.conf get passed in
via the MYCFLAGS mechanism, so remove the -O2 and let the outer environment
control optimization level.
Approved by: mat(mentor)
Differential Revision: https://reviews.freebsd.org/D5256
Prevent /usr/lib/libedit.so from being used over
/usr/local/lib/libedit.so.0 from devel/libedit
Note: libedit should be made into a USES
Reported by: sunpoet
Pointy hat to: myself (pgollucci)