Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-posix lua-posix: Update to 35.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f8445e4270b
branches:  trunk
changeset: 435754:2f8445e4270b
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jul 14 12:41:21 2020 +0000

description:
lua-posix: Update to 35.0

Incompatible Changes

    Internally, we use our own bitwise operation wrapper functions
    rather than bit32 where possible. This means bitwise operations
    when running under Lua 5.3+ work on 64bit integers.

Bugs Fixed

    posix.deprecated.getrlimit and posix.deprecated.setrlimit pass
    tests again.

New Features

    Initial support for Lua 5.4.

diffstat:

 devel/lua-posix/Makefile                         |  13 ++-
 devel/lua-posix/PLIST                            |  70 +++++++++++++++++++++++-
 devel/lua-posix/distinfo                         |  13 +--
 devel/lua-posix/patches/patch-ext_posix_stdlib.c |  20 ------
 devel/lua-posix/patches/patch-ext_posix_time.c   |  21 -------
 devel/lua-posix/patches/patch-lukefile           |  18 ------
 6 files changed, 82 insertions(+), 73 deletions(-)

diffs (212 lines):

diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/Makefile
--- a/devel/lua-posix/Makefile  Tue Jul 14 12:39:03 2020 +0000
+++ b/devel/lua-posix/Makefile  Tue Jul 14 12:41:21 2020 +0000
@@ -1,19 +1,21 @@
-# $NetBSD: Makefile,v 1.22 2020/07/11 15:14:29 nia Exp $
+# $NetBSD: Makefile,v 1.23 2020/07/14 12:41:21 nia Exp $
 
-DISTNAME=      luaposix-34.1.1
-PKGNAME=       ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/}
+DISTNAME=      luaposix-35.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
 CATEGORIES=    devel lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=luaposix/}
 GITHUB_PROJECT=        luaposix
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 
-MAINTAINER=    ryoon%NetBSD.org@localhost
+kAINTAINER=    ryoon%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/luaposix/luaposix
 COMMENT=       POSIX library for Lua language
 LICENSE=       mit
 
-USE_LANGUAGES= c c99
+USE_LANGUAGES= c99
+USE_TOOLS+=    pax
 
+INSTALLATION_DIRS+=    ${LUA_DOCDIR}
 INSTALLATION_DIRS+=    ${LUA_LDIR} ${LUA_CDIR}
 
 .include "../../lang/lua/luaversion.mk"
@@ -37,6 +39,7 @@
                ${LUA_INTERPRETER} ./build-aux/luke \
                        PREFIX=${DESTDIR}${PREFIX} \
                        install
+       cd ${WRKSRC}/doc && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/${LUA_DOCDIR}
 
 .include "../../lang/lua/module.mk"
 .include "../../lang/lua/tool.mk"
diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/PLIST
--- a/devel/lua-posix/PLIST     Tue Jul 14 12:39:03 2020 +0000
+++ b/devel/lua-posix/PLIST     Tue Jul 14 12:41:21 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2020/01/29 11:30:01 nia Exp $
+@comment $NetBSD: PLIST,v 1.6 2020/07/14 12:41:21 nia Exp $
 ${LUA_CDIR}/posix/ctype.so
 ${LUA_CDIR}/posix/dirent.so
 ${LUA_CDIR}/posix/errno.so
@@ -27,7 +27,75 @@
 ${LUA_CDIR}/posix/time.so
 ${LUA_CDIR}/posix/unistd.so
 ${LUA_CDIR}/posix/utime.so
+${LUA_DOCDIR}/examples/abstract-ns-client.lua
+${LUA_DOCDIR}/examples/abstract-ns-client.lua.html
+${LUA_DOCDIR}/examples/abstract-ns-server.lua
+${LUA_DOCDIR}/examples/abstract-ns-server.lua.html
+${LUA_DOCDIR}/examples/dir.lua
+${LUA_DOCDIR}/examples/dir.lua.html
+${LUA_DOCDIR}/examples/dup2.lua
+${LUA_DOCDIR}/examples/dup2.lua.html
+${LUA_DOCDIR}/examples/fork.lua
+${LUA_DOCDIR}/examples/fork.lua.html
+${LUA_DOCDIR}/examples/fork2.lua
+${LUA_DOCDIR}/examples/fork2.lua.html
+${LUA_DOCDIR}/examples/getopt.lua
+${LUA_DOCDIR}/examples/getopt.lua.html
+${LUA_DOCDIR}/examples/glob.lua
+${LUA_DOCDIR}/examples/glob.lua.html
+${LUA_DOCDIR}/examples/limit.lua
+${LUA_DOCDIR}/examples/limit.lua.html
+${LUA_DOCDIR}/examples/lock.lua
+${LUA_DOCDIR}/examples/lock.lua.html
+${LUA_DOCDIR}/examples/netlink-uevent.lua
+${LUA_DOCDIR}/examples/netlink-uevent.lua.html
+${LUA_DOCDIR}/examples/ping.lua
+${LUA_DOCDIR}/examples/ping.lua.html
+${LUA_DOCDIR}/examples/poll.lua
+${LUA_DOCDIR}/examples/poll.lua.html
+${LUA_DOCDIR}/examples/rt_sched.lua
+${LUA_DOCDIR}/examples/rt_sched.lua.html
+${LUA_DOCDIR}/examples/signal.lua
+${LUA_DOCDIR}/examples/signal.lua.html
+${LUA_DOCDIR}/examples/socket.lua
+${LUA_DOCDIR}/examples/socket.lua.html
+${LUA_DOCDIR}/examples/termios.lua
+${LUA_DOCDIR}/examples/termios.lua.html
+${LUA_DOCDIR}/examples/tree.lua
+${LUA_DOCDIR}/examples/tree.lua.html
+${LUA_DOCDIR}/index.html
+${LUA_DOCDIR}/ldoc.css
+${LUA_DOCDIR}/modules/posix.ctype.html
+${LUA_DOCDIR}/modules/posix.dirent.html
+${LUA_DOCDIR}/modules/posix.errno.html
+${LUA_DOCDIR}/modules/posix.fcntl.html
+${LUA_DOCDIR}/modules/posix.fnmatch.html
+${LUA_DOCDIR}/modules/posix.glob.html
+${LUA_DOCDIR}/modules/posix.grp.html
+${LUA_DOCDIR}/modules/posix.html
+${LUA_DOCDIR}/modules/posix.libgen.html
+${LUA_DOCDIR}/modules/posix.poll.html
+${LUA_DOCDIR}/modules/posix.pwd.html
+${LUA_DOCDIR}/modules/posix.sched.html
+${LUA_DOCDIR}/modules/posix.signal.html
+${LUA_DOCDIR}/modules/posix.stdio.html
+${LUA_DOCDIR}/modules/posix.stdlib.html
+${LUA_DOCDIR}/modules/posix.sys.msg.html
+${LUA_DOCDIR}/modules/posix.sys.resource.html
+${LUA_DOCDIR}/modules/posix.sys.socket.html
+${LUA_DOCDIR}/modules/posix.sys.stat.html
+${LUA_DOCDIR}/modules/posix.sys.statvfs.html
+${LUA_DOCDIR}/modules/posix.sys.time.html
+${LUA_DOCDIR}/modules/posix.sys.times.html
+${LUA_DOCDIR}/modules/posix.sys.utsname.html
+${LUA_DOCDIR}/modules/posix.sys.wait.html
+${LUA_DOCDIR}/modules/posix.syslog.html
+${LUA_DOCDIR}/modules/posix.termio.html
+${LUA_DOCDIR}/modules/posix.time.html
+${LUA_DOCDIR}/modules/posix.unistd.html
+${LUA_DOCDIR}/modules/posix.utime.html
 ${LUA_LDIR}/posix/_base.lua
+${LUA_LDIR}/posix/_bitwise.lua
 ${LUA_LDIR}/posix/_strict.lua
 ${LUA_LDIR}/posix/compat.lua
 ${LUA_LDIR}/posix/deprecated.lua
diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/distinfo
--- a/devel/lua-posix/distinfo  Tue Jul 14 12:39:03 2020 +0000
+++ b/devel/lua-posix/distinfo  Tue Jul 14 12:41:21 2020 +0000
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.9 2020/02/08 15:32:33 nia Exp $
+$NetBSD: distinfo,v 1.10 2020/07/14 12:41:21 nia Exp $
 
-SHA1 (luaposix-34.1.1.tar.gz) = ac392070e898faae9c5160347bfd74c0141efd21
-RMD160 (luaposix-34.1.1.tar.gz) = dd4d4e7f43de478a87ecafe8226ecd77b01daa33
-SHA512 (luaposix-34.1.1.tar.gz) = 324f149bd97c2ad5d6431d6d8717a50e43018bf4bb7db85911590a05671b4be8fe0e1b5ed39f73cd261963cae76d7aa647d0c028cc05662e15fd391de2d73687
-Size (luaposix-34.1.1.tar.gz) = 177685 bytes
-SHA1 (patch-ext_posix_stdlib.c) = 1ab4263d3578288ef54649ec6c91115019e664ce
-SHA1 (patch-ext_posix_time.c) = 2ef51e2a5db9e41afa557954edf2ac6aff33e3f2
-SHA1 (patch-lukefile) = 41773ee71524080a35c924bd623a250c44791a2b
+SHA1 (luaposix-35.0.tar.gz) = 31a8c48fc57ff1a4199df27618e098beabcee946
+RMD160 (luaposix-35.0.tar.gz) = 6ae6a865c21fda8a1caa291cfb2cef7255302dc2
+SHA512 (luaposix-35.0.tar.gz) = 4bb61892b78d9e59418a9a6360b9f611fb9b5438b9261a2c6672f053a1b21dfd9a2060b8d2f0d3eac6185773cf84672c1769c081c4ab53d2ddae2232e4a9269b
+Size (luaposix-35.0.tar.gz) = 178091 bytes
diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/patches/patch-ext_posix_stdlib.c
--- a/devel/lua-posix/patches/patch-ext_posix_stdlib.c  Tue Jul 14 12:39:03 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-ext_posix_stdlib.c,v 1.1 2018/03/05 12:46:02 ryoon Exp $
-
---- ext/posix/stdlib.c.orig    2018-02-21 02:29:31.000000000 +0000
-+++ ext/posix/stdlib.c
-@@ -99,6 +99,7 @@ Pgrantpt(lua_State *L)
- }
- 
- 
-+# if defined(HAVE_MKDTEMP)
- /***
- Create a unique temporary directory.
- @function mkdtemp
-@@ -134,6 +135,7 @@ Pmkdtemp(lua_State *L)
-       return binding_notimplemented(L, "mkdtemp", "C");
- #endif
- }
-+#endif
- 
- 
- /***
diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/patches/patch-ext_posix_time.c
--- a/devel/lua-posix/patches/patch-ext_posix_time.c    Tue Jul 14 12:39:03 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-ext_posix_time.c,v 1.1 2018/11/20 17:45:38 maya Exp $
-
-Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined
-
---- ext/posix/time.c.orig      2018-11-20 17:41:28.954287969 +0000
-+++ ext/posix/time.c
-@@ -350,10 +350,14 @@ luaopen_posix_time(lua_State *L)
- 
- #if defined _POSIX_TIMERS && _POSIX_TIMERS != -1
-       LPOSIX_CONST( CLOCK_MONOTONIC           );
-+#if defined CLOCK_PROCESS_CPUTIME_ID
-       LPOSIX_CONST( CLOCK_PROCESS_CPUTIME_ID  );
-+#endif
-       LPOSIX_CONST( CLOCK_REALTIME            );
-+#if defined CLOCK_THREAD_CPUTIME_ID
-       LPOSIX_CONST( CLOCK_THREAD_CPUTIME_ID   );
- #endif
-+#endif
- 
-       return 1;
- }
diff -r de49ac9f18b6 -r 2f8445e4270b devel/lua-posix/patches/patch-lukefile
--- a/devel/lua-posix/patches/patch-lukefile    Tue Jul 14 12:39:03 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-lukefile,v 1.1 2018/03/05 12:46:02 ryoon Exp $
-
---- lukefile.orig      2018-02-21 02:29:31.000000000 +0000
-+++ lukefile
-@@ -64,7 +64,12 @@ modules  = {
-    },
-    ['posix.signal']        = 'ext/posix/signal.c',
-    ['posix.stdio']         = 'ext/posix/stdio.c',
--   ['posix.stdlib']        = 'ext/posix/stdlib.c',
-+   ['posix.stdlib']        = {
-+      defines   = {
-+         HAVE_MKDTEMP    = {checkfunc='mkdtemp'},
-+      },
-+      sources   = 'ext/posix/stdlib.c',
-+   },
-    ['posix.sys.msg']       = {
-       defines   = {
-          HAVE_SYS_MSG_H    = {checkheader='sys/msg.h'},



Home | Main Index | Thread Index | Old Index