diff options
author | alnsn <alnsn@pkgsrc.org> | 2015-12-05 22:50:26 +0000 |
---|---|---|
committer | alnsn <alnsn@pkgsrc.org> | 2015-12-05 22:50:26 +0000 |
commit | a495ee42c6999dcca3e423deacc8351fb040117f (patch) | |
tree | d88501c1eac5704dd3cab3728e4b21f9d34fd443 /lang/lua53 | |
parent | e3a506130fe63a79216666d59ca8a74a5c4ac0ad (diff) | |
download | pkgsrc-a495ee42c6999dcca3e423deacc8351fb040117f.tar.gz |
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))()
Diffstat (limited to 'lang/lua53')
-rw-r--r-- | lang/lua53/Makefile | 12 | ||||
-rw-r--r-- | lang/lua53/distinfo | 10 | ||||
-rw-r--r-- | lang/lua53/version.mk | 4 |
3 files changed, 18 insertions, 8 deletions
diff --git a/lang/lua53/Makefile b/lang/lua53/Makefile index c90e18619d8..b054d4d9ea3 100644 --- a/lang/lua53/Makefile +++ b/lang/lua53/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2015/01/17 17:50:23 alnsn Exp $ +# $NetBSD: Makefile,v 1.2 2015/12/05 22:50:26 alnsn Exp $ DISTNAME= lua-${LUA_VERSION} PKGNAME= lua53-${LUA_VERSION} @@ -24,6 +24,16 @@ MAKE_ENV+= DLLIB=${BUILDLINK_LDADD.dl:Q} MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q} CFLAGS+= -DLUA_ROOT=\"${PREFIX}/\" +# Address pkg/47587 lua not linked to pthread causes issues with modules +PTHREAD_OPTS+= native + +.include "../../mk/pthread.buildlink3.mk" + +.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" +CFLAGS+= -pthread +LDFLAGS+= -pthread +.endif + PKGCONFIG_OVERRIDE= ${WRKSRC}/lua.pc INSTALLATION_DIRS+= lib/pkgconfig share/doc/lua-5.3 diff --git a/lang/lua53/distinfo b/lang/lua53/distinfo index a7f0399ba0a..d4e73352b67 100644 --- a/lang/lua53/distinfo +++ b/lang/lua53/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.3 2015/11/03 22:50:38 agc Exp $ +$NetBSD: distinfo,v 1.4 2015/12/05 22:50:26 alnsn Exp $ -SHA1 (lua-5.3.1.tar.gz) = 1676c6a041d90b6982db8cef1e5fb26000ab6dee -RMD160 (lua-5.3.1.tar.gz) = 01fcb542ea0a69246c0594bb2578dc108547a49a -SHA512 (lua-5.3.1.tar.gz) = 94c5e77d25172c1f5de0ea5457fe62f2bea618e573659df989297d1a8cb1b062c4b0133b88ffa9ce74cdbe98d0d1ea356c69115cae308030e1f989a3f6f26321 -Size (lua-5.3.1.tar.gz) = 282401 bytes +SHA1 (lua-5.3.2.tar.gz) = 7a47adef554fdca7d0c5536148de34579134a973 +RMD160 (lua-5.3.2.tar.gz) = aed238309d2439a832a3befe5e4da9f01473a990 +SHA512 (lua-5.3.2.tar.gz) = c8c7908ca927bcafe6739fb8b0226d77c796226c1e6770a38f1b1b577a73f7fb08ead64fe40809d5fff9a13db50e932e9f7164e4524e9d4fb3678182ec3d4d28 +Size (lua-5.3.2.tar.gz) = 288235 bytes SHA1 (patch-Makefile) = 44c9a812569c2a0f0221f197c95a672b059af84a SHA1 (patch-src_Makefile) = 975b1d4d6907524aad9527ffe18793c6bc93f1b4 SHA1 (patch-src_luaconf.h) = dc2f535a1d0f407db4f62dab37a2d680ea794264 diff --git a/lang/lua53/version.mk b/lang/lua53/version.mk index 1f1d54c1624..5b46a4bcc72 100644 --- a/lang/lua53/version.mk +++ b/lang/lua53/version.mk @@ -1,6 +1,6 @@ -# $NetBSD: version.mk,v 1.2 2015/06/20 18:22:56 alnsn Exp $ +# $NetBSD: version.mk,v 1.3 2015/12/05 22:50:26 alnsn Exp $ -LUA_VERSION= 5.3.1 +LUA_VERSION= 5.3.2 LUA_VERSION_MAJOR= ${LUA_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/} LUA_VERSION_MINOR= ${LUA_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/} |