Commit graph

9 commits

Author SHA1 Message Date
alnsn
175d053f66 Update lang/lua53 to version 5.3.3.
This bugfix version fixes the following problems:

1. Metatable may access its own deallocated field when it has a
   self reference in __newindex.
2. Label between local definitions can mix-up their initializations.
3. gmatch iterator fails when called from a coroutine different
   from the one that created it.
2016-06-06 22:18:07 +00:00
dholland
41c6e246f4 Add patch comments. 2015-12-29 23:34:43 +00:00
alnsn
225552cb24 Update Lua to version 5.3.2 and link with pthreads to fix pkg/47587.
Lua 5.3.2 fixes all bugs listed in
        http://www.lua.org/bugs.html#5.3.1 [1]

Lua 5.3.2 also contains several internal improvements and includes a
revised reference manual:
	http://www.lua.org/manual/5.3/

[1]
    1. io.lines does not check maximum number of options.
       reported by Patrick Donnell on 10 Jul 2015. existed since 3.0.
       Example:
-- can crash in some machines
t ={}; for i = 1, 253 do t[i] = 1 end
io.lines("someexistingfile", table.unpack(t))()
2015-12-05 22:50:26 +00:00
alnsn
8fbf13b25d Fix manual pages: .1 is not a teeny number, it's lua5.3(1). 2015-12-01 22:20:31 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +00:00
alnsn
2917180621 Update DESCR of Lua 5.x and LuaJIT 2.0 packages 2015-10-31 21:37:52 +00:00
wiz
25cc733919 Instead of having only lua.pc, provide both the versioned pkg-config file
and the unversioned one.

As discussed on tech-pkg.
2015-07-20 11:30:54 +00:00
alnsn
c9de2ae71d Update lang/lua53 to 5.3.1.
The following bugs have been fixed (from http://www.lua.org/bugs.html):
    1. string.format("%f") can cause a buffer overflow (only when
       'lua_Number' is long double!).
       reported by Roberto on 13 Jan 2015. existed since 5.3. fixed in
       5.3.1.
    2. debug.getlocal on a coroutine suspended in a hook can crash the
       interpreter.
       reported by on 11 Feb 2015. existed since 5.2. fixed in 5.3.1.
       Example: See
       http://lua-users.org/lists/lua-l/2015-02/msg00146.html.
    3. Suspended __le metamethod can give wrong result.
       reported by Eric Zhong on 07 Apr 2015. existed since 5.2. fixed in
       5.3.1.
       Example:
mt = {__le = function (a,b) coroutine.yield("yield"); return a.x <= b.x end}
t1 = setmetatable({x=1}, mt)
t2 = {x=2}
co = coroutine.wrap(function (a,b) return t2 <= t1 end)
co()
print(co())   --> true  (should be false)
    4. Return hook may not see correct values for active local variables
       when function returns.
       reported by Philipp Janda and Peng Yi on 19 May 2015. existed since
       5.0. fixed in 5.3.1.
       Example: See
       http://lua-users.org/lists/lua-l/2015-05/msg00376.html.
2015-06-20 18:22:56 +00:00
alnsn
80bae7f752 Initial import of Lua 5.3.0.
Lua is a powerful, light-weight programming language designed for
extending applications. Lua is also frequently used as a
general-purpose, stand-alone language.

Lua combines simple procedural syntax (similar to Pascal) with
powerful data description constructs based on associative arrays and
extensible semantics. Lua is dynamically typed, interpreted from
bytecodes, and has automatic memory management, making it ideal for
configuration, scripting, and rapid prototyping.

Lua is a language engine that you can embed into your application.
This means that, besides syntax and semantics, Lua has an API that
allows the application to exchange data with Lua programs and also to
extend Lua with C functions. In this sense, Lua can be regarded as a
language framework for building domain-specific languages.

Lua is implemented as a small library of C functions, written in ANSI
C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.
The result is a fast language engine with small footprint, making it
ideal in embedded systems too.
2015-01-17 17:50:23 +00:00