pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Update lua to 5.0.2, from Bruce J.A. Nourish via tech-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/438b77c63217
branches:  trunk
changeset: 472117:438b77c63217
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Mon Apr 05 02:31:06 2004 +0000

description:
Update lua to 5.0.2, from Bruce J.A. Nourish via tech-pkg@.

Lua 5.0.2 is a bugfix release, which contains the following fixes:

src/ldo.c
        Attempt to resume running coroutine crashed Lua
src/lgc.c
        C functions also may have stacks larger than current top
        Userdata to be collected still counted into new GC threshold
src/lgc.h
        Userdata to be collected still counted into new GC threshold
src/lparser.c
        Syntax `local function' did not increment stack size
src/lvm.c
        `pc' address was invalidated when a coroutine was suspended
        Count hook might be called without being set
src/lib/lbaselib.c
        Buffer overflow for unusual %p representation
        Wrong number of returns from chunks loaded from stdin
src/lib/liolib.c
        `file.close()' could not be called without arguments
        Buffer overflow for unusual %p representation
src/luac/luac.c
        Missing lock/unlock

diffstat:

 doc/CHANGES               |   3 +-
 doc/TODO                  |   3 +-
 lang/lua/Makefile         |  25 ++++++------------
 lang/lua/PLIST            |  17 +++---------
 lang/lua/distinfo         |  14 +++------
 lang/lua/patches/patch-aa |  62 +++++++++++++++++++++++++++++++++++++++++-----
 lang/lua/patches/patch-ab |  46 ++++++++++------------------------
 lang/lua/patches/patch-ac |  32 ------------------------
 lang/lua/patches/patch-ad |  21 ---------------
 lang/lua/patches/patch-ae |  21 ---------------
 lang/lua/patches/patch-af |  15 -----------
 11 files changed, 89 insertions(+), 170 deletions(-)

diffs (truncated from 363 to 300 lines):

diff -r de0973215a1f -r 438b77c63217 doc/CHANGES
--- a/doc/CHANGES       Mon Apr 05 01:34:17 2004 +0000
+++ b/doc/CHANGES       Mon Apr 05 02:31:06 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.5441 2004/04/04 23:21:45 recht Exp $
+$NetBSD: CHANGES,v 1.5442 2004/04/05 02:31:06 xtraeme Exp $
 
 Changes to the packages collection and infrastructure in 2004:
 
@@ -1776,3 +1776,4 @@
        Updated gpg2dot to 1.3 [hubertf 2004-04-04]
        Updated gtk2-engines to 2.2.0nb7 [recht 2004-04-04]
        Updated TeXmacs to 1.0.3.6 [recht 2004-04-04]
+       Updated lua to 5.0.2 [xtraeme 2004-04-05]
diff -r de0973215a1f -r 438b77c63217 doc/TODO
--- a/doc/TODO  Mon Apr 05 01:34:17 2004 +0000
+++ b/doc/TODO  Mon Apr 05 02:31:06 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO,v 1.1572 2004/04/04 23:22:42 recht Exp $
+$NetBSD: TODO,v 1.1573 2004/04/05 02:31:06 xtraeme Exp $
 
 Suggested new packages
 ======================
@@ -243,7 +243,6 @@
        o lilypond-2.2
        o lmbench-2.0.4
        o lout-3.29
-       o lua-5.0.2
        o lwm-1.2.0
        o maildrop-1.5.3 [pkg/22369]
        o maildrop-1.6.3
diff -r de0973215a1f -r 438b77c63217 lang/lua/Makefile
--- a/lang/lua/Makefile Mon Apr 05 01:34:17 2004 +0000
+++ b/lang/lua/Makefile Mon Apr 05 02:31:06 2004 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2004/02/24 00:05:26 cube Exp $
+# $NetBSD: Makefile,v 1.13 2004/04/05 02:31:06 xtraeme Exp $
 
-DISTNAME=      lua-5.0.1
-PKGREVISION=   1
+DISTNAME=      lua-5.0.2
 CATEGORIES=    lang
 MASTER_SITES=  ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
                ftp://ftp.ntua.gr/pub/lang/lua/ \
@@ -16,28 +15,20 @@
                http://mirrors.sunsite.dk/lua/ \
                http://ftp.chg.ru/pub/lang/lua/
 
-MAINTAINER=    tech-pkg%NetBSD.org@localhost
+MAINTAINER=    pkgsrc%bjan.freeshell.org@localhost
 HOMEPAGE=      http://www.lua.org/
 COMMENT=       Powerful light-weight language for extending applications
 
-USE_BUILDLINK3= yes
-MAKE_ENV+=     NOGCCERROR=yes
-
-BUILD_DIRS=    ${WRKSRC}/objdir
-
-post-extract:
-       ${MKDIR} ${BUILD_DIRS}
-
-post-patch:
-       ${CP} ${WRKSRC}/doc/lua.1 ${BUILD_DIRS}/lua
-       ${CP} ${WRKSRC}/doc/luac.1 ${BUILD_DIRS}/luac
+USE_BUILDLINK3=        yes
+ALL_TARGET=    all so
+INSTALL_TARGET=        install soinstall
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lua
-       cd ${WRKSRC}; ${INSTALL_DATA} README COPYRIGHT  \
+       cd ${WRKSRC}; ${INSTALL_DATA} README COPYRIGHT  \
                HISTORY ${PREFIX}/share/doc/lua
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/lua
-       cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.gif  \
+       cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.gif  \
                ${PREFIX}/share/doc/html/lua
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua
        cd ${WRKSRC}/test && ${INSTALL_DATA} README *.lua \
diff -r de0973215a1f -r 438b77c63217 lang/lua/PLIST
--- a/lang/lua/PLIST    Mon Apr 05 01:34:17 2004 +0000
+++ b/lang/lua/PLIST    Mon Apr 05 02:31:06 2004 +0000
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2004/01/25 10:48:21 cube Exp $
-bin/bin2c
+@comment $NetBSD: PLIST,v 1.5 2004/04/05 02:31:06 xtraeme Exp $
 bin/lua
 bin/luac
 include/lauxlib.h
@@ -7,20 +6,13 @@
 include/lualib.h
 lib/liblua.a
 lib/liblua.so
-lib/liblua.so.1
-lib/liblua.so.1.0
-lib/liblua_p.a
-lib/liblua_pic.a
+lib/liblua.so.5.0
 lib/liblualib.a
 lib/liblualib.so
-lib/liblualib.so.1
-lib/liblualib.so.1.0
-lib/liblualib_p.a
-lib/liblualib_pic.a
-man/cat1/lua.0
-man/cat1/luac.0
+lib/liblualib.so.5.0
 man/man1/lua.1
 man/man1/luac.1
+share/doc/html/lua/contents.html
 share/doc/html/lua/logo.gif
 share/doc/html/lua/lua.html
 share/doc/html/lua/luac.html
@@ -32,7 +24,6 @@
 share/examples/lua/README
 share/examples/lua/bisect.lua
 share/examples/lua/cf.lua
-share/examples/lua/compat.lua
 share/examples/lua/echo.lua
 share/examples/lua/env.lua
 share/examples/lua/etc/README
diff -r de0973215a1f -r 438b77c63217 lang/lua/distinfo
--- a/lang/lua/distinfo Mon Apr 05 01:34:17 2004 +0000
+++ b/lang/lua/distinfo Mon Apr 05 02:31:06 2004 +0000
@@ -1,10 +1,6 @@
-$NetBSD: distinfo,v 1.5 2004/01/25 10:48:21 cube Exp $
+$NetBSD: distinfo,v 1.6 2004/04/05 02:31:06 xtraeme Exp $
 
-SHA1 (lua-5.0.1.tar.gz) = 03b47b4785178aca583333f01d8726a8ab9f7ae7
-Size (lua-5.0.1.tar.gz) = 193978 bytes
-SHA1 (patch-aa) = c69676ed0fe3fdb657fce1e5e6b5271461dd4f38
-SHA1 (patch-ab) = 8579e7d691cb9811af599390b657300a644cad51
-SHA1 (patch-ac) = d84dc51de00f31fc0741d3b275cdea5aad20f697
-SHA1 (patch-ad) = c7a1ea9d1e5276a904e44fa407f9bda9badf590d
-SHA1 (patch-ae) = 54987ad95ef87b46a9c8a427022eceb2762606bb
-SHA1 (patch-af) = f09313f59a4ea226cfbe168f2e47e5c32d47ddc9
+SHA1 (lua-5.0.2.tar.gz) = a200cfd20a9a4c7da1206ae45dddf26186a9e0e7
+Size (lua-5.0.2.tar.gz) = 190442 bytes
+SHA1 (patch-aa) = c00182becd052a33c8697b13ef818b456d470859
+SHA1 (patch-ab) = 788834909e1b1ef990805c334071d9ad8761c36f
diff -r de0973215a1f -r 438b77c63217 lang/lua/patches/patch-aa
--- a/lang/lua/patches/patch-aa Mon Apr 05 01:34:17 2004 +0000
+++ b/lang/lua/patches/patch-aa Mon Apr 05 02:31:06 2004 +0000
@@ -1,8 +1,56 @@
-$NetBSD: patch-aa,v 1.4 2004/01/25 10:48:21 cube Exp $
+$NetBSD: patch-aa,v 1.5 2004/04/05 02:31:06 xtraeme Exp $
 
---- objdir/Makefile.orig       2004-01-25 11:30:50.000000000 +0100
-+++ objdir/Makefile
-@@ -0,0 +1,3 @@
-+SUBDIR+= liblua liblualib lua luac bin2c
-+
-+.include <bsd.subdir.mk>
+--- config.orig        Fri Apr 11 14:00:41 2003
++++ config
+@@ -25,7 +25,7 @@ USERCONF=
+ # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
+ # uncomment the next two lines.
+ #
+-#LOADLIB= -DUSE_DLOPEN=1
++LOADLIB= -DUSE_DLOPEN=1
+ #DLLIB= -ldl
+ #
+ # In Linux with gcc, you should also uncomment the next definition for
+@@ -83,7 +83,7 @@ USERCONF=
+ # For partial compatibility with old upvalue behavior in C functions, define
+ # LUA_COMPATUPVALUES. Add these definitions to MYCFLAGS.
+ #
+-# -DLUA_COMPATUPSYNTAX -DLUA_COMPATUPVALUES
++EXTRA_DEFS=-DLUA_COMPATUPSYNTAX -DLUA_COMPATUPVALUES
+ 
+ # ------------------------------------------------------------- Lua interpreter
+ 
+@@ -119,11 +119,11 @@ WARN= -Wall
+ # debug information. If you only want the shared libraries, you may want to
+ # add -fPIC to MYCFLAGS.
+ #
+-MYCFLAGS= -O2
++MYCFLAGS:= $(CFLAGS)
+ #MYCFLAGS= -O3 -fomit-frame-pointer # -fPIC
+ 
+ # Write here any options you may need for your C linker.
+-#MYLDFLAGS=
++MYLDFLAGS= $(LDFLAGS) -Wl,-E
+ 
+ # ------------------------------------------------------------------ librarian
+ 
+@@ -148,7 +148,7 @@ STRIP= strip
+ 
+ # Locations for "make install". You may need to be root do "make install".
+ #
+-INSTALL_ROOT= /usr/local
++INSTALL_ROOT= $(PREFIX)
+ INSTALL_BIN= $(INSTALL_ROOT)/bin
+ INSTALL_INC= $(INSTALL_ROOT)/include
+ INSTALL_LIB= $(INSTALL_ROOT)/lib
+@@ -157,8 +157,8 @@ INSTALL_MAN= $(INSTALL_ROOT)/man/man1
+ # You may prefer to use "install" instead of "cp" if you have it.
+ # If you use "install", you may also want to change the permissions after -m.
+ #
+-INSTALL_EXEC= cp
+-INSTALL_DATA= cp
++INSTALL_EXEC= $(BSD_INSTALL_PROGRAM)
++INSTALL_DATA= $(BSD_INSTALL_DATA)
+ #INSTALL_EXEC= install -m 0755
+ #INSTALL_DATA= install -m 0644
+ 
diff -r de0973215a1f -r 438b77c63217 lang/lua/patches/patch-ab
--- a/lang/lua/patches/patch-ab Mon Apr 05 01:34:17 2004 +0000
+++ b/lang/lua/patches/patch-ab Mon Apr 05 02:31:06 2004 +0000
@@ -1,33 +1,15 @@
-$NetBSD: patch-ab,v 1.3 2003/04/29 23:33:57 jtb Exp $
+$NetBSD: patch-ab,v 1.4 2004/04/05 02:31:06 xtraeme Exp $
 
---- /dev/null
-+++ objdir/liblua/Makefile
-@@ -0,0 +1,28 @@
-+LIB= lua
-+
-+SHLIB_MAJOR= 1
-+SHLIB_MINOR= 0
-+
-+LIBDIR= ${PREFIX}/lib
-+INCDIR= ${PREFIX}/include
-+
-+CPPFLAGS+= -I${.CURDIR}/../../include
-+
-+LDADD+= -lm
-+
-+NOLINT= 1
-+
-+.PATH:        ${.CURDIR}/../../src
-+
-+INCLUDES= lua.h lauxlib.h
-+
-+SRCS= lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c       \
-+      lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltests.c     \
-+      ltm.c lundump.c lvm.c lzio.c
-+
-+afterinstall:
-+      for i in ${INCLUDES}; do                                        \
-+      ${BSD_INSTALL_DATA} ${.CURDIR}/../../include/$$i ${INCDIR};     \
-+      done
-+
-+.include <bsd.lib.mk>
+--- Makefile.orig      Fri Apr 11 00:34:38 2003
++++ Makefile
+@@ -38,8 +38,8 @@ install: all strip
+ 
+ # shared libraries (for Linux)
+ so:
+-      ld -o lib/liblua.so.$V -shared src/*.o
+-      ld -o lib/liblualib.so.$V -shared src/lib/*.o
++      ${CC} ${LDFLAGS} -o lib/liblua.so.$V -shared src/*.o
++      ${CC} ${LDFLAGS} -o lib/liblualib.so.$V -shared src/lib/*.o
+       cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+ 
+ # binaries using shared libraries
diff -r de0973215a1f -r 438b77c63217 lang/lua/patches/patch-ac
--- a/lang/lua/patches/patch-ac Mon Apr 05 01:34:17 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2003/04/29 23:33:57 jtb Exp $
-
---- /dev/null
-+++ objdir/liblualib/Makefile
-@@ -0,0 +1,27 @@
-+LIB= lualib
-+
-+SHLIB_MAJOR= 1
-+SHLIB_MINOR= 0
-+
-+LIBDIR= ${PREFIX}/lib
-+INCDIR= ${PREFIX}/include
-+
-+CPPFLAGS+= -I${.CURDIR}/../../include
-+CPPFLAGS+= -DUSE_DLOPEN=1
-+
-+LDADD+= -R${LIBDIR} -L${.CURDIR}/../liblua -llua -lm
-+
-+NOLINT= 1
-+
-+.PATH:        ${.CURDIR}/../../src/lib
-+
-+INCLUDES= lualib.h
-+
-+SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c ltablib.c lstrlib.c loadlib.c
-+
-+afterinstall:
-+      for i in ${INCLUDES}; do                                        \
-+      ${BSD_INSTALL_DATA} ${.CURDIR}/../../include/$$i ${INCDIR};     \
-+      done
-+
-+.include <bsd.lib.mk>
diff -r de0973215a1f -r 438b77c63217 lang/lua/patches/patch-ad
--- a/lang/lua/patches/patch-ad Mon Apr 05 01:34:17 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-ad,v 1.2 2003/04/29 23:33:57 jtb Exp $
-



Home | Main Index | Thread Index | Old Index