pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/lua-posix
Module Name: pkgsrc
Committed By: ryoon
Date: Mon Mar 5 12:46:03 UTC 2018
Modified Files:
pkgsrc/devel/lua-posix: DESCR Makefile PLIST distinfo
Added Files:
pkgsrc/devel/lua-posix/patches: patch-ext_posix_stdlib.c patch-lukefile
Removed Files:
pkgsrc/devel/lua-posix/patches: patch-config.h.in patch-configure
patch-configure.ac patch-ext_curses_curses.c
patch-ext_posix_posix.c
Log Message:
Update to 34.0.4
Changelog:
## Noteworthy changes in release 34.0.4 (2018-02-20) [stable]
### Bugs Fixed
- `posix.time.clock_getres`, `posix.time.clock_gettime`
`posix.time.CLOCK_MONOTONIC`, `posix.time.CLOCK_REALTIME`,
`posix.time.CLOCK_PROCESS_CPUTIME_ID` and
`posix.time.CLOCK_THREAD_CPUTIME_ID` are all properly elided
on macOS again.
- `spec/spec_helper.lua` now looks in the correct objdir
for object modules built by luke, instead of hard-coding
`./linux/?.so`, so specl examples work on macOS and others
again.
## Noteworthy changes in release 34.0.3 (2018-02-19) [stable]
### Bugs Fixed
- `posix.deprecated.fadvise` is properly elided on macOS and other
hosts that have no `posix.fcntl.posix_fadvise` implementation.
## Noteworthy changes in release 34.0.2 (2018-02-17) [stable]
### Incompatible Changes
- `require 'posix'` (or any of its submodules) always returns a
populated module table, but no longer sets `_G.posix` or any
other global symbol on Lua 5.1 (including LuaJIT). If you were
relying on this behaviour, please change your require statments
to an assignment:
```lua
local posix = require 'posix'
```
### Bugs Fixed
- `posix.sys.wait.wait` returns `<childpid>, "running"` when the
child has not exited yet, and `wait` was called with `WNOHANG`
set.
- specs don't fail on valid -1 return values from `posix.sysconf`.
- loading posix (or any of its submodules) no longer leaks symbols
into the global namespace on Lua 5.1 (including LuaJIT).
## Noteworthy changes in release 34.0.1 (2017-07-09) [stable]
### Bugs Fixed
- `posix.sys.socket` works correctly on macOS again.
- `posix.sys.socket` abstract namespaces work correctly on Linux.
- `posix.syslog.openlog` keeps a copy of it's ident parameter string
in the Lua registry to ensure we don't hang on to a dangling
pointer.
- latest `build-aux/luke` and upgraded lukefile work correctly on
macOS now.
## Noteworthy changes in release 34.0 (2017-05-06) [stable]
### Incompatible Changes
- `posix.syslog` constants `LOG_AUTHPRIV`, `LOG_FTP` and `LOG_SYSLOG`
are no longer documented, and only defined when supported by the
host C library. They are not part of the POSIX API, and prevented
compilation of luaposix on AIX and Solaris.
- `getopt.getopt` was a binding to the GNU `getopt_long` extension,
which is not a POSIX API, and prevents luaposix from compiling on
hosts that do not provide the extended API. Instead we now correctly
bind POSIX getopt(3) in `posix.unistd`.
If you still have code that uses the old non-POSIX binding, then
LuaRocks has the Lua only `alt-getopt` module which is very similar,
and works even when the host C library has no `getopt_long` API;
alternatively, you should consider migrating to the far more
powerful Lua-only `optparse` library, also available from LuaRocks.
### New Features
- Replaced all Autotools and supporting Slingshot code with new Lua-
based `build-aux/luke` and `lukefile` describing how to compile and
install everything. Building with LuaRocks now leverages this too.
- New `posix.sys.socket.getsockopt` and `posix.sys.socket.getpeername`
bindings.
- New `posix.sys.msg.msgctl` binding, and `posix.sys.msg.IPC_RMID`,
`posix.sys.msg.IPC_SET` and `posix.sys.msg.IPC_STAT` constants to
use with it.
- New `posix.unistd.ftruncate` and `posix.unistd.truncate` bindings.
- `posix.fcntl.fcntl` now accepts undocumented `posix.fcntl.O_TMPFILE`
value where supported by the host C library.
### Bugs Fixed
- `posix.unistd.ttyname` now returns an error message in addition to
`nil` when it fails.
## Noteworthy changes in release 33.4.0 (2016-02-27) [stable]
### Incompatible Changes
- posix.curses has been split back out into its own separate
project again. If you want to upgrade your posix.curses using
project, something like the following minimal change will work
equivalently (assuming you have the new lcurses on your package
path):
```lua
local posix = require 'posix'
posix.curses = posix.curses or require 'lcurses'
```
### New Features
- New `posix.stdio.rename` binding.
- New `posix.fcntl.FD_CLOEXEC` flag for `posix.fcntl.fcntl`.
- New `posix.fcntl.O_CLOEXEC` flag for `posix.fcntl.open`, where
supported by the underlying system. Falling back to FD_CLOEXEC is
an exercise to the caller, so that non-atomicity is surfaced:
```lua
-- without error checking, for clarity
fd = fcntl.open ("/foo/bar", fcntl.O_CLOEXEC, stat.S_IRWXU)
if fcntl.O_CLOEXEC == 0 then
local flags = fcntl.fcntl (fd, fcntl.F_GETFD)
fcntl.fcntl (fd, fcntl.F_SETFD, bit.bor (flags, fcntl.FD_CLOEXEC)
end
```
- New `posix.unistd.tcgetpgrp` and `posix.unistd.tcsetpgrp` bindings
where supported by host C library.
- `posix.sys.socket` AF_UNIX path handling improvements enable use of
Linux only abstract namespace sockets.
- Documentation links now point at the newer OpenGroup issue 7 specs.
### Bugs Fixed
- Workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=15088.
Predicate use of POSIX sched.h APIs on presence of sched.h, since glibc
defines _POSIX_PRIORITY_SCHEDULING erroneously, and musl libc
provides the sched.h APIs but doesn't define _POSIX_PRIORITY_SCHEDULING.
- `posix.sys.socket` AF_UNIX APIs pass path arguments by length
instead of terminating at the first \0 byte.
- `posix.unistd.readlink` no longer fails when reading a link to an
unsized buffer or character special device node.
- `execx` is no longer leaked into the global namespace after loading
the posix module.
- `examples/fork2.lua` works correctly again.
- `posix.timeradd`, `posix.timercmp` and `posix.timersub` correctly
handle tables from the modern thin wrapper API (posix.sys.time),
while retaining compatibility with the legacy compatibility wrappers
(posix.gettimeofday).
## Noteworthy changes in release 33.3.1 (2015-03-01) [stable]
### Incompatible Changes
- The briefly lived `posix.system` API has been removed. It was renamed
to `posix.spawn` shortly after introduction, and can still be accessed
by the new symbol name.
### Bugs Fixed
- `local posix = require "posix"` works again, fixing the regression
introduced in the last release. The automated Travis checks have been
improved to catch this sort of bug in future.
## Noteworthy changes in release 33.3.0 (2015-02-28) [stable]
### New Features
- Improved documentation of `sockaddr` tables for `posix.sys.socket` calls.
- New `posix.sys.socket.getsockname` binding.
- Remove the `posix.bit32` library, and use Lua’s built-in `bit32` library.
- Can now be linked against NetBSD curses, albeit with several functions
not implemented by that library returning a "not implemented" error as
a consequence.
- New functions `popen`, `popen_pipeline` and `pclose` mimic the POSIX
functions of the same name while allowing tasks to be Lua functions.
- `fdopen` has been re-added, working on all supported Lua versions.
- `execx` allows a Lua function or command to be exec’d; `spawn` is now
implemented in terms of it.
### Incompatible Changes
- The ncurses-only `KEY_MOUSE` definition has been removed from
`posix.curses`.
### Bugs Fixed
- `posix.sys.resource` only provides RLIM_SAVED_CUR and RLIM_SAVED_MAX if
they are defined by the C library (which FreeBSD 10 does not).
- `posix.dirent.dir` and `posix.dirent.files` now raise a Lua `error()`
when unable to open the path argument, for orthogonality with `io.lines`.
- Workaround for manifest key clash between `posix.so` and `posix.lua` in
LuaRocks.
## Noteworthy changes in release 33.2.1 (2015-01-04) [stable]
### Bugs Fixed
- Install posix.curses.html documentation file correctly.
## Noteworthy changes in release 33.2.0 (2015-01-03) [stable]
### New Features
- QNX support.
### Bugs Fixed
- `posix.time.gmtime` and `posix.time.localtime` specifications now
work correctly in January too!
## Noteworthy changes in release 33.1.0 (2014-12-19) [stable]
### New Features
- New `posix.bit32` module with band, bnot and bor functions that can be
used from any supported Lua release, without worrying about loading an
external bit operations library.
- Preliminary Lua 5.3.0 compatibility.
### Bugs Fixed
- No more 'Bad Hints' errors from `posix.sys.socket.getaddrinfo` on many
hosts.
- `stdlib.setenv` accepts a 3rd argument again.
## Noteworthy changes in release 33.0.0 (2014-11-04) [stable]
### New Features
- The curses library is fully integrated into luaposix, including reasonably
comprehensive LDoc documentation (certainly much better than the single
wooly web-page in previous releases). For backwards compatibility, all
APIs are re-exported from the `curses` module.
- Most constants available through luaposix are now listed in the LDocs of
the submodule that defines them.
- For backwards compatibility, everything is still lumped together in the
`posix.???` namespace, but, now raw APIs have been reorganised according to
the POSIX header files they belong to:
```lua
local posix = require "posix"
local fcntl = require "posix.fcntl"
local unistd = require "posix.unistd"
local fd = fcntl.open ("x",
bit32.bor (posix.O_WRONLY, posix.O_CREAT), "u=rw")
unistd.write (fd, "Hello, World!\n")
unistd.close (fd)
```
This makes the documentation easier to navigate, and for a better mapping
between luaposix APIs and the C functions they wrap, so translating from
C is now easier than ever.
- Each of the newly separated submodules is self-contained, and can be copied
to another project for compiling and/or loading in a custom Lua runtime. If
you want to make use of this, in addition to the source for the modules you
copy, you'll also need at least the files `ext/posix/_helpers.c` and
`ext/include/lua52compat.c`, and also `ext/include/strlcat.c` for one or
two of them.
- Where submodule calls return a table representation of a similar C struct
from a POSIX API, the Lua return tables have an appropriate `_type` field
metatable entry compatible with lua-stdlib `std.object.type`.
- `posix.signal.signal` now accepts the constants `posix.signal.SIG_DFL` or
`posix.signal.SIG_IGN` in place of the strings "SIG_DFL" and "SIG_IGN".
- The submodule bindings `posix.time.gmtime`, `posix.time.localtime`,
`posix.time.mktime`, `posix.time.strftime` and `posix.time.strptime` now
accept or create PosixTm tables with 1-to-1 field name mappings with the
POSIX `struct tm`. The old APIs with custom field names is still available
as `posix.gmtime`, `posix.localtime`, `posix.mktime`, `posix.strftime` and
`posix.strptime`.
- Similarly, `posix.time.nanosleep` now takes and returns a PosixTimespec
table. The old API is still available as `posix.nanosleep`.
- Where supported by the underlying system, `posix.time.clock_getres` and
`posix.time.clock_gettime` now require a constant inte argument (newly
defined in the `posix.time` submodule), and returns a PosixTimespec table.
The old APIs are still available as `posix.clock_getres` and
`posix.clock_gettime`.
- Add `posix.unistd.gethostid`. The old `posix.hostid` API is still available
as an alias.
- Add group APIs from grp.h: `posix.grp.endgrent`, `posix.grp.getgrent`,
`posix.grp.getgrgid`, `posix.grp.getgrnam` and `posix.grp.setgrent`.
Consequently, `posix.getgroup` is now reimplemented in Lua over the POSIX
APIs.
- `posix.getgroup` defaults to current effective group when called with no
arguments, for consistency with `posix.getpasswd` API.
- Add pwd APIs from pwd.h: `posix.pwd.endpwent`, `posix.grp.getpwent`,
`posix.pwd.getpwnam`, `posix.pwd.getpwuid` and `posix.pwd.setpwent`.
Consequently, `posix.getpasswd` is now reimplemented in Lua over the POSIX
APIs.
- Add missing constants from sys/resource.h:
`posix.sys.resource.RLIM_INFINITY`, `posix.sys.resource.RLIM_SAVED_CUR`,
`posix.sys.resource.RLIM_SAVED_MAX`, `posix.sys.resource.RLIMIT_CORE`,
`posix.sys.resource.RLIMIT_CPU`, `posix.sys.resource.RLIMIT_DATA`,
`posix.sys.resource.RLIMIT_FSIZE`, `posix.sys.resource.RLIMIT_NOFILE`,
`posix.sys.resource.RLIMIT_STACK`, `posix.sys.resource.RLIMIT_AS`.
- Add missing APIs from unistd.h: `posix.unistd.getegid`,
`posix.unistd.geteuid`, `posix.unistd.getgid`, `posix.unistd.getuid`,
`posix.unistd.getpgrp`, `posix.unistd.getpid`, `posix.unistd.getppid`.
Consequently, `posix.getpid` is now reimplemented in Lua over the POSIX
APIs.
- Add missing constants from signal.h; `posix.signal.SIG_DFL` and
`posix.signal.SIG_IGN'.
- Add missing APIs from sys/stat.h: `posix.sys.stat.S_ISBLK`,
`posix.sys.stat.S_ISCHR`, `posix.sys.stat.S_ISDIR`,
`posix.sys.stat.S_ISFIFO`, `posix.sys.stat.S_ISLNK`,
`posix.sys.stat.S_ISREG`, `posix.sys.stat.S_ISSOCK`.
- Add missing constants from sys/stat.h: `posix.sys.stat.S_IFMT`,
`posix.sys.stat.S_IFBLK`, `posix.sys.stat.S_IFCHR`,
`posix.sys.stat.S_IFDIR`, `posix.sys.stat.S_IFIFO`,
`posix.sys.stat.S_IFLNK`, `posix.sys.stat.S_IFREG`,
`posix.sys.stat.S_IRWXU`, `posix.sys.stat.S_IRUSR`,
`posix.sys.stat.S_IWUSR`, `posix.sys.stat.S_IXUSR`,
`posix.sys.stat.S_IRWXG`, `posix.sys.stat.S_IRGRP`,
`posix.sys.stat.S_IWGRP`, `posix.sys.stat.S_IXGRP`,
`posix.sys.stat.S_IRWXO`, `posix.sys.stat.S_IROTH`,
`posix.sys.stat.S_IWOTH`, `posix.sys.stat.S_IXOTH`,
`posix.sys.stat.S_ISGID`, `posix.sys.stat.S_ISUID`.
- Add missing constants from syslog.h: `posix.syslog.LOG_CONS`,
`posix.syslog.LOG_NDELAY` and `posix.syslog.LOG_PID`.
- Add missing API from syslog.h: `posix.syslog.LOG_MASK`. Use this to
convert syslog priority constants into mask bits suitable for bitwise
ORing as the argument to `posix.syslog.setlogmask`.
- Add missing constants from time.h: `posix.time.CLOCK_MONOTONIC`,
`posix.time.CLOCK_PROCESS_CPUTIME_ID`, `posix.time.CLOCK_REALTIME` and
`posix.time.CLOCK_THREAD_CPUTIME_ID`.
- New `posix.unistd.exec` and `posix.unistd.execp` require a table of
arguments, with [0] defaulting to the command name. The old string
tuple passing API is still available as `posix.exec` and `posix.execp`.
- `posix.util.openpty` has moved to `posix.openpty`. The old API is still
available as an alias.
- All posix APIs now fully and correctly diagnose extraneous and wrong
type arguments with an error.
- Add `posix.IPC_NOWAIT`, `posix.MSG_EXCEPT` and `posix.MSG_NOERROR`
constants for message queues.
- Add `posix.IPPROTO_UDP` for socket programming.
- Add `posix.AI_NUMERICSERV` for posix.getaddrinfo hints flags.
- Add `posix.WUNTRACED` for posix.wait flags.
- Add `curses.A_COLOR` (where supported by the underlying curses library) for
extracting color pair assignments from the results of `curses.window.winch`.
- Add missing `curses.KEY_F31` constant.
### Bugs Fixed
- `posix.fadvise` is now spelled `posix.fcntl.posix_fadvise` and takes a
file descriptor first argument rather than a Lua file handle. The old
misspelled bad argument type version is undocumented but still works.
- `posix.getpasswd`, `posix.getpid`, `posix.pathconf`, `posix.stat`,
`posix.statvfs`, `posix.sysconf` and `posix.times` process a single table
argument with a list of types correctly.
- `posix.syslog.openlog` now takes the bitwise OR of those constants. The
old string option specified API is still available as `posix.openlog`.
- `posix.syslog.setlogmask` now takes the bitwise OR of bits returned by
passing priority constants to `posix.syslog.LOG_MASK`. The old API will
continue to be available as `posix.setlogmask`.
- `posix.readlink` is much more robust, and reports errors accurately.
- configured installation installs `posix.so` into the lua cpath directory
correctly.
- fixed a long-standing bug where the stdio buffers were not restored after
some posix.fcntl() examples, resulting in the `make check` output being
truncated -- often before terminal colors were returned to normal.
## Noteworthy changes in release 32 (2014-05-30) [stable]
### New Features
- Support for posix.socketpair call and posix.AF_UNIX constant.
- Previously undocumented spawn, pipeline, pipeline_iterator, pipeline_slurp,
euidaccess, timeradd, timercmp and timersub have been moved from the posix
table, which is reserved for strictly POSIX APIs to the posix.sys subtable.
The sys submodule automatically loads on first reference, so no need to
require it manually if you already have the main posix module loaded.
- posix api documentation is separated into groups for better discovery.
### Bugs Fixed
- Builds correctly on hosts with no IPV6 capability.
- Small improvements in organisation of generated html docs.
- posix.openpty doesn't crash.
- configure now detects Lua correctly with busybox grep.
- Many fine portability fixes from latest gnulib.
- Missing docs for accept, bind, connect, getaddrinfo, listen, recv,
recvfrom, send, sendto, setsockopt, shutdown, socket and socketpair apis
is now provided.
- Missng docs for tcdrain, tcflow, tcflush, tcgetattr, tcsendbreak and
tcsetattr terminal apis are now provided.
- Docs for apis implemented in Lua are now shown correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-posix/DESCR
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/lua-posix/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/lua-posix/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/lua-posix/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/lua-posix/patches/patch-config.h.in \
pkgsrc/devel/lua-posix/patches/patch-ext_curses_curses.c \
pkgsrc/devel/lua-posix/patches/patch-ext_posix_posix.c
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/lua-posix/patches/patch-configure \
pkgsrc/devel/lua-posix/patches/patch-configure.ac
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/lua-posix/patches/patch-ext_posix_stdlib.c \
pkgsrc/devel/lua-posix/patches/patch-lukefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/lua-posix/DESCR
diff -u pkgsrc/devel/lua-posix/DESCR:1.1 pkgsrc/devel/lua-posix/DESCR:1.2
--- pkgsrc/devel/lua-posix/DESCR:1.1 Sat Sep 14 09:06:48 2013
+++ pkgsrc/devel/lua-posix/DESCR Mon Mar 5 12:46:02 2018
@@ -1 +1,5 @@
-A POSIX library (including curses) for lua.
+This is a POSIX binding for LuaJIT, Lua 5.1, 5.2 and 5.3; like most
+libraries it simply binds to C APIs on the underlying system, so
+it won't work on non-POSIX systems. However, it does try to detect
+the level of POSIX conformance of the underlying system and bind
+only available APIs.
Index: pkgsrc/devel/lua-posix/Makefile
diff -u pkgsrc/devel/lua-posix/Makefile:1.14 pkgsrc/devel/lua-posix/Makefile:1.15
--- pkgsrc/devel/lua-posix/Makefile:1.14 Sat Jul 9 06:38:10 2016
+++ pkgsrc/devel/lua-posix/Makefile Mon Mar 5 12:46:02 2018
@@ -1,26 +1,18 @@
-# $NetBSD: Makefile,v 1.14 2016/07/09 06:38:10 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2018/03/05 12:46:02 ryoon Exp $
-DISTNAME= luaposix-release-v31
-PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/:S/release-v//}
-PKGREVISION= 6
+DISTNAME= luaposix-34.0.4
+PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/}
CATEGORIES= devel
-MASTER_SITES= -https://github.com/luaposix/luaposix/archive/release-v31.tar.gz
+MASTER_SITES= ${MASTER_SITE_GITHUB:=luaposix/}
+GITHUB_PROJECT= luaposix
+GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= ryoon%NetBSD.org@localhost
HOMEPAGE= https://github.com/luaposix/luaposix
-COMMENT= POSIX library (including curses) for lua
+COMMENT= POSIX library for Lua language
LICENSE= mit
-LUA_VERSIONS_INCOMPATIBLE= 53
-
-GNU_CONFIGURE= yes
USE_LANGUAGES= c c99
-USE_TOOLS+= perl:build
-USE_LIBTOOL= yes
-
-GNU_CONFIGURE_LIBDIR= ${PREFIX}/${LUA_CDIR}
-CONFIGURE_ARGS+= --docdir=${PREFIX}/${LUA_DOCDIR}
-CONFIGURE_ARGS+= --datadir=${PREFIX}/${LUA_LDIR}
INSTALLATION_DIRS+= ${LUA_LDIR} ${LUA_CDIR}
@@ -30,8 +22,19 @@ INSTALLATION_DIRS+= ${LUA_LDIR} ${LUA_CD
DEPENDS+= lua51-BitOp-[0-9]*:../../devel/lua-BitOp
.endif
-post-patch:
- ${TOUCH} ${WRKSRC}/configure ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in
+LIBFLAG+= ${LDFLAGS} -shared -fPIC
+
+do-build:
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} \
+ ${LUA_INTERPRETER} ./build-aux/luke LIBFLAG=${LIBFLAG:Q}
+
+do-install:
+ cd ${WRKSRC} && \
+ env ${MAKE_ENV} \
+ ${LUA_INTERPRETER} ./build-aux/luke \
+ PREFIX=${DESTDIR}${PREFIX} \
+ install
.include "../../lang/lua/module.mk"
.include "../../lang/lua/tool.mk"
Index: pkgsrc/devel/lua-posix/PLIST
diff -u pkgsrc/devel/lua-posix/PLIST:1.3 pkgsrc/devel/lua-posix/PLIST:1.4
--- pkgsrc/devel/lua-posix/PLIST:1.3 Sat May 3 13:01:24 2014
+++ pkgsrc/devel/lua-posix/PLIST Mon Mar 5 12:46:02 2018
@@ -1,9 +1,36 @@
-@comment $NetBSD: PLIST,v 1.3 2014/05/03 13:01:24 alnsn Exp $
-${LUA_LDIR}/curses.lua
-${LUA_LDIR}/posix.lua
-${LUA_CDIR}/curses_c.la
-${LUA_CDIR}/posix_c.la
-${LUA_DOCDIR}/curses.html
-${LUA_DOCDIR}/curses_c.html
-${LUA_DOCDIR}/index.html
-${LUA_DOCDIR}/ldoc.css
+@comment $NetBSD: PLIST,v 1.4 2018/03/05 12:46:02 ryoon Exp $
+${LUA_CDIR}/posix/ctype.so
+${LUA_CDIR}/posix/dirent.so
+${LUA_CDIR}/posix/errno.so
+${LUA_CDIR}/posix/fcntl.so
+${LUA_CDIR}/posix/fnmatch.so
+${LUA_CDIR}/posix/glob.so
+${LUA_CDIR}/posix/grp.so
+${LUA_CDIR}/posix/libgen.so
+${LUA_CDIR}/posix/poll.so
+${LUA_CDIR}/posix/pwd.so
+${LUA_CDIR}/posix/sched.so
+${LUA_CDIR}/posix/signal.so
+${LUA_CDIR}/posix/stdio.so
+${LUA_CDIR}/posix/stdlib.so
+${LUA_CDIR}/posix/sys/msg.so
+${LUA_CDIR}/posix/sys/resource.so
+${LUA_CDIR}/posix/sys/socket.so
+${LUA_CDIR}/posix/sys/stat.so
+${LUA_CDIR}/posix/sys/statvfs.so
+${LUA_CDIR}/posix/sys/time.so
+${LUA_CDIR}/posix/sys/times.so
+${LUA_CDIR}/posix/sys/utsname.so
+${LUA_CDIR}/posix/sys/wait.so
+${LUA_CDIR}/posix/syslog.so
+${LUA_CDIR}/posix/termio.so
+${LUA_CDIR}/posix/time.so
+${LUA_CDIR}/posix/unistd.so
+${LUA_CDIR}/posix/utime.so
+${LUA_LDIR}/posix/_base.lua
+${LUA_LDIR}/posix/compat.lua
+${LUA_LDIR}/posix/deprecated.lua
+${LUA_LDIR}/posix/init.lua
+${LUA_LDIR}/posix/sys.lua
+${LUA_LDIR}/posix/util.lua
+${LUA_LDIR}/posix/version.lua
Index: pkgsrc/devel/lua-posix/distinfo
diff -u pkgsrc/devel/lua-posix/distinfo:1.4 pkgsrc/devel/lua-posix/distinfo:1.5
--- pkgsrc/devel/lua-posix/distinfo:1.4 Tue Nov 3 03:27:48 2015
+++ pkgsrc/devel/lua-posix/distinfo Mon Mar 5 12:46:02 2018
@@ -1,11 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 03:27:48 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/03/05 12:46:02 ryoon Exp $
-SHA1 (luaposix-release-v31.tar.gz) = 8cce36b34f7b1742b14e989f26f021e14053a6dd
-RMD160 (luaposix-release-v31.tar.gz) = 4a3f893f34a96570627a3840ac99a8088e230b82
-SHA512 (luaposix-release-v31.tar.gz) = 263d0ffdb4043199a37bccc2f74419e72d6d812f74104fae6bd979a13217ab58275c6d6e21a0aaa4232851fa29941eececa22bc441fb37bebbdc2842b1c37c3f
-Size (luaposix-release-v31.tar.gz) = 528979 bytes
-SHA1 (patch-config.h.in) = 37315685228cddfd6972c2d65684fdcfcf7407eb
-SHA1 (patch-configure) = 4aa876d026793424eaf1d700012ae366cbc6d111
-SHA1 (patch-configure.ac) = ef891429af91c5e220bcd04e8b9a94e12a538cc3
-SHA1 (patch-ext_curses_curses.c) = fd06c59d4d4f8f69eed4233a995841496e786d32
-SHA1 (patch-ext_posix_posix.c) = f2ec88b0be842af327c13c0898de1bfe0d165477
+SHA1 (luaposix-34.0.4.tar.gz) = 848b18807f7906386354e0be74079c0ccc56aab9
+RMD160 (luaposix-34.0.4.tar.gz) = 6aa8c5a57b1df85c00ffa3f24c5e6cecf28169c0
+SHA512 (luaposix-34.0.4.tar.gz) = c6399d87d490ab5bc3e220183dc181121fe3ac0d802b6f6400dbe71c491d810b4e705ab098242ac195a0b179b9b22c098072c05b7f8e534a6a60a12931ee1585
+Size (luaposix-34.0.4.tar.gz) = 175194 bytes
+SHA1 (patch-ext_posix_stdlib.c) = 1ab4263d3578288ef54649ec6c91115019e664ce
+SHA1 (patch-lukefile) = 41773ee71524080a35c924bd623a250c44791a2b
Added files:
Index: pkgsrc/devel/lua-posix/patches/patch-ext_posix_stdlib.c
diff -u /dev/null pkgsrc/devel/lua-posix/patches/patch-ext_posix_stdlib.c:1.1
--- /dev/null Mon Mar 5 12:46:03 2018
+++ pkgsrc/devel/lua-posix/patches/patch-ext_posix_stdlib.c Mon Mar 5 12:46:02 2018
@@ -0,0 +1,20 @@
+$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
+
+
+ /***
Index: pkgsrc/devel/lua-posix/patches/patch-lukefile
diff -u /dev/null pkgsrc/devel/lua-posix/patches/patch-lukefile:1.1
--- /dev/null Mon Mar 5 12:46:03 2018
+++ pkgsrc/devel/lua-posix/patches/patch-lukefile Mon Mar 5 12:46:02 2018
@@ -0,0 +1,18 @@
+$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