debian/0000755000000000000000000000000012315253754007175 5ustar debian/lua5.1.posix.dh-lua.conf0000644000000000000000000000077312267550570013374 0ustar ### mandatory fields PKG_NAME=posix ### things relative to the C library part CLIB_CFLAGS=-D_XOPEN_SOURCE=700 -I. -DHAVE_CONFIG_H CLIB_LDFLAGS=-lcrypt -lrt CLIB_OBJS= lposix.lo VERSION_INFO=1:0:0 ### things relative to the lua library part LUA_HEADER= LUA_SOURCES=posix.lua LUA_MODNAME=posix LUA_MODNAME_CPART=posix_c ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE=-lcrypt PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/watch0000644000000000000000000000027712267550570010236 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-posix # version=3 https://github.com/rrthomas/luaposix/downloads .*/luaposix-(.+).tar.gz debian/lua-curses-dev.docs0000644000000000000000000000001412267550570012703 0ustar curses.html debian/README.source0000644000000000000000000000006712267550570011361 0ustar Please refer to /usr/share/doc/dpatch/README.source.gz debian/lua-posix-dev.docs0000644000000000000000000000000512267550570012541 0ustar doc/ debian/rules0000755000000000000000000000063612315152237010254 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with autoreconf,lua override_dh_auto_configure: ./configure --prefix=/usr/ \ LUA=/usr/bin/lua5.1 LUA_INCLUDE=-I/usr/include/lua5.1/ \ CFLAGS="`pkg-config lua5.1 ncursesw --cflags`" dh_auto_configure override_dh_auto_build: dh_auto_build ldoc . override_dh_auto_test: touch dummy.la dh_auto_test override_dh_auto_clean: rm -f dummy.la dh_auto_clean debian/copyright0000644000000000000000000000555712267550570011146 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: luaposix Upstream-Contact: Reuben Thomas Source: https://github.com/rrthomas/luaposix/ Files: * Copyright: 2009-2011, Reuben Thomas License: MIT/X Files: lcurses.c Copyright: 2004-2007, Tiago Dionizio 2009-2011, Reuben Thomas License: MIT/X Files: lposix.c Copyright: 2010-2012, Reuben Thomas 2008-2010, Natanael Copa License: MIT/X Files: strlcpy.c Copyright: 2004 Free Software Foundation, Inc. License: LGPL-2+ GNU Libltdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . As a special exception to the GNU Lesser General Public License, if you distribute this file as part of a program or library that is built using GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program. . GNU Libltdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with GNU Libltdl; see the file COPYING.LIB. If not, a copy can be downloaded from http://www.gnu.org/licenses/lgpl.html, or obtained by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU Lesser General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. License: MIT/X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/lua5.2.posix.dh-lua.conf0000777000000000000000000000000012267550570017551 2lua5.1.posix.dh-lua.confustar debian/lua5.2.curses.dh-lua.conf0000777000000000000000000000000012267550570020055 2lua5.1.curses.dh-lua.confustar debian/source/0000755000000000000000000000000012267550570010477 5ustar debian/source/format0000644000000000000000000000001412267550570011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012315253677010630 5ustar debian/patches/0002-Fix-compilation-on-kfreebsd.patch0000644000000000000000000000206712267550570017472 0ustar From: Enrico Tassi Date: Sun, 30 Jun 2013 11:59:27 +0200 Subject: Fix compilation on kfreebsd Freebsd kernel on GNU userland: http://www.debian.org/ports/kfreebsd-gnu/ --- lposix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lposix.c b/lposix.c index fa4c0b9..083db4e 100644 --- a/lposix.c +++ b/lposix.c @@ -4150,6 +4150,7 @@ LUALIB_API int luaopen_posix_c (lua_State *L) MENTRY( ONLCR ); MENTRY( OCRNL ); MENTRY( ONLRET ); +#ifndef __FreeBSD_kernel__ MENTRY( OFILL ); #ifndef __GNU__ MENTRY( OFDEL ); @@ -4162,11 +4163,15 @@ LUALIB_API int luaopen_posix_c (lua_State *L) MENTRY( CR1 ); MENTRY( CR2 ); MENTRY( CR3 ); +#endif MENTRY( TABDLY ); MENTRY( TAB0 ); +#ifndef __FreeBSD_kernel__ MENTRY( TAB1 ); MENTRY( TAB2 ); +#endif MENTRY( TAB3 ); +#ifndef __FreeBSD_kernel__ MENTRY( BSDLY ); MENTRY( BS0 ); MENTRY( BS1 ); @@ -4176,6 +4181,7 @@ LUALIB_API int luaopen_posix_c (lua_State *L) MENTRY( FFDLY ); MENTRY( FF0 ); MENTRY( FF1 ); +#endif /* cc */ MENTRY( VINTR ); debian/patches/series0000644000000000000000000000021712315253604012033 0ustar 0001-Fix-build-on-hurd-i386.patch 0002-Fix-compilation-on-kfreebsd.patch fix-ldoc-custom-see-handler.patch add-missing-ldoc-function-tag.patch debian/patches/0001-Fix-build-on-hurd-i386.patch0000644000000000000000000000327312267550570016116 0ustar From: Enrico Tassi Date: Sun, 30 Jun 2013 11:42:21 +0200 Subject: Fix build on hurd-i386 See http://www.debian.org/ports/hurd/ --- lposix.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lposix.c b/lposix.c index 5f3de33..fa4c0b9 100644 --- a/lposix.c +++ b/lposix.c @@ -11,6 +11,9 @@ * With contributions by Roberto Ierusalimschy. * With documentation from Steve Donovan 2012 */ +#ifdef __GNU__ +#define _GNU_SOURCE +#endif #include @@ -673,7 +676,19 @@ Current working directory for this process. */ static int Pgetcwd(lua_State *L) { +#ifdef __GNU__ + char *b = get_current_dir_name(); + if (b != NULL) { + lua_pushstring(L, b); + return 1; + } else { + // we return the same error as below + return pusherror(L, "."); + } +#else long size = pathconf(".", _PC_PATH_MAX); + if (size == -1) + return pusherror(L, "pathconf"); void *ud; lua_Alloc lalloc = lua_getallocf(L, &ud); char *b, *ret; @@ -686,6 +701,7 @@ static int Pgetcwd(lua_State *L) lua_pushstring(L, b); lalloc(ud, b, (size_t)size + 1, 0); return (ret == NULL) ? pusherror(L, ".") : 1; +#endif } /*** @@ -3991,7 +4007,9 @@ LUALIB_API int luaopen_posix_c (lua_State *L) #define MENTRY(_e) set_integer_const(LPOSIX_STR_1(LPOSIX_SPLICE(_SA, _e)), LPOSIX_SPLICE(SA, _e)) MENTRY( _NOCLDSTOP ); #if _POSIX_VERSION >= 20112L +#ifndef __GNU__ MENTRY( _NOCLDWAIT ); +#endif MENTRY( _RESETHAND ); MENTRY( _NODEFER ); #endif @@ -4133,7 +4151,9 @@ LUALIB_API int luaopen_posix_c (lua_State *L) MENTRY( OCRNL ); MENTRY( ONLRET ); MENTRY( OFILL ); +#ifndef __GNU__ MENTRY( OFDEL ); +#endif MENTRY( NLDLY ); MENTRY( NL0 ); MENTRY( NL1 ); debian/patches/add-missing-ldoc-function-tag.patch0000644000000000000000000000112512315253675017360 0ustar From: "Gary V. Vaughan" Date: Thu, 12 Dec 2013 09:17:09 +1300 Subject: [PATCH] doc: add missing LDoc function tag. * ext/posix/posix.c (strptime): Add missing @function tag. Signed-off-by: Gary V. Vaughan Origin: backport, https://github.com/luaposix/luaposix/commit/6640275b2e860521b8ae458b8f1c4ebaf53d7f27 Index: b/lposix.c =================================================================== --- a/lposix.c +++ b/lposix.c @@ -2901,6 +2901,7 @@ /*** Parse a date string. +@function strptime @see strptime(3) @string s @string format same as for `strftime` debian/patches/fix-ldoc-custom-see-handler.patch0000644000000000000000000000212312315253544017042 0ustar From: "Gary V. Vaughan" Date: Thu, 12 Dec 2013 09:15:12 +1300 Subject: [PATCH] doc: fix LDoc manual page custom_see_handler pattern. * ext/posix/config.ld (custom_see_handler): Add a missing closing `%)`. (upat): Pull the format string up per LDoc documentation. Signed-off-by: Gary V. Vaughan Origin: backport, https://github.com/luaposix/luaposix/commit/1bcb12c59dcfb830ffb9b8db7305720c83cb17ac Index: b/config.ld =================================================================== --- a/config.ld +++ b/config.ld @@ -7,9 +7,10 @@ tparam_alias 'int' tparam_alias 'bool' -custom_see_handler('^([%w_]+)%((%d)$',function(name,section) - local url = ("http://www.kernel.org/doc/man-pages/online/pages/man%s/%s.%s.html"):format(section,name,section) - local name = name .. '(' ..section..')' +local upat = "http://www.kernel.org/doc/man-pages/online/pages/man%s/%s.%s.html" +custom_see_handler('^([%w_]+)%((%d)%)$',function(name,section) + local url = upat:format(section,name,section) + local name = name .. '(' .. section .. ')' return name, url end) debian/lua5.1.curses.dh-lua.conf0000644000000000000000000000110412267550570013523 0ustar ### mandatory fields PKG_NAME=curses ### things relative to the C library part CLIB_CFLAGS= -I. -DHAVE_CONFIG_H $(shell pkg-config ncursesw --cflags) -I /usr/include/ncursesw/ CLIB_LDFLAGS=$(shell pkg-config ncursesw --libs) CLIB_OBJS= lcurses.lo VERSION_INFO=0:0:0 ### things relative to the lua library part LUA_HEADER= LUA_SOURCES=curses.lua LUA_MODNAME=curses LUA_MODNAME_CPART=curses_c ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES=ncurses PKG_CONFLICTS= debian/compat0000644000000000000000000000000212267550570010375 0ustar 7 debian/control0000644000000000000000000000427212315152230010570 0ustar Source: lua-posix Section: interpreters Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Enrico Tassi Build-Depends: debhelper (>= 8.1.3), dh-autoreconf, dh-lua (>= 8), libncursesw5-dev, lua-bitop, lua-ldoc, lua-discount Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/pkg-lua/lua-posix.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-posix.git Homepage: https://github.com/luaposix/luaposix Package: lua-posix Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Provides: ${lua:Provides} Depends: ${shlibs:Depends}, ${misc:Depends}, lua-bitop XB-Lua-Versions: ${lua:Versions} Description: posix library for the Lua language This package contains the Lua posix library, that includes some posix functions like fork, chmod, wait, sleep and kill. Package: lua-posix-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Section: libdevel Provides: ${lua:Provides} Depends: lua-posix (= ${binary:Version}), ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: posix development files for the Lua language This package contains the development files of the Lua posix library, useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Documentation is also shipped within this package. Package: lua-curses Architecture: any Multi-Arch: same Section: libdevel Pre-Depends: multiarch-support Provides: ${lua:Provides} Depends: ${shlibs:Depends}, ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: curses library for the Lua language This package contains the Lua curses library to create text mode user interfaces. Package: lua-curses-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Section: libdevel Provides: ${lua:Provides} Depends: lua-curses (= ${binary:Version}), ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: curses development files for the Lua language This package contains the development files of the Lua curses library, useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Documentation is also shipped within this package. debian/changelog0000644000000000000000000001534412315253753011055 0ustar lua-posix (29-7ubuntu1) trusty; urgency=medium * Use dh-autoreconf to update config.* and libtool.m4 for new ports. * Backport a couple of ldoc fixes from upstream. -- Colin Watson Fri, 28 Mar 2014 11:07:22 +0000 lua-posix (29-7) unstable; urgency=medium * Build-depend on lua-discount (Closes: #735976) -- Enrico Tassi Tue, 21 Jan 2014 20:48:11 +0100 lua-posix (29-6) unstable; urgency=medium * Fix FTBFS adding -I for ncursesws (Closes: #735759) -- Enrico Tassi Fri, 17 Jan 2014 23:01:54 +0100 lua-posix (29-5) unstable; urgency=low * Revert to our Hurd and kFreeBSD patch -- Enrico Tassi Mon, 26 Aug 2013 14:46:52 +0200 lua-posix (29-4) unstable; urgency=low * Use upstream's patch to support Hurd * Disable kFreeBSD patch, should be fixed upstream -- Enrico Tassi Mon, 26 Aug 2013 10:44:24 +0200 lua-posix (29-3) unstable; urgency=low * Ship the doc built using lua-doc -- Enrico Tassi Thu, 15 Aug 2013 13:19:36 +0200 lua-posix (29-2) unstable; urgency=low * Revamp patch to fix build on hurd * Patch to fix build on kfreebsd -- Enrico Tassi Sun, 30 Jun 2013 12:12:00 +0200 lua-posix (29-1) unstable; urgency=low * New upstream release * lua5.2-compat.patch not needed anymore, removed * Transitional packages for wheezy removed -- Enrico Tassi Sat, 07 Jul 2012 19:07:41 +0200 lua-posix (5.1.20-2) unstable; urgency=low * Build-Depend on libncursesw5-dev to be able to handle UTF-8 strings -- Enrico Tassi Sat, 07 Jul 2012 18:36:24 +0200 lua-posix (5.1.20-1) unstable; urgency=low * New upstream release, with many bigfixes * Add patch lua5.2-compat.patch to fix compiltion for Lua 5.2 -- Enrico Tassi Thu, 07 Jun 2012 16:54:39 +0200 lua-posix (5.1.19-2) unstable; urgency=low * Fix FTBFS on hurd (Closes: #676437) thanks Cyril Roelandt -- Enrico Tassi Tue, 10 Apr 2012 15:09:28 +0200 lua-posix (5.1.19-1) unstable; urgency=low * New upstream release * Patches for hurd and kfreebsd not needed anylongher -- Enrico Tassi Tue, 10 Apr 2012 15:05:04 +0200 lua-posix (5.1.18-3) unstable; urgency=low * #define PATH_MAX on hurd -- Enrico Tassi Tue, 03 Apr 2012 13:24:56 +0200 lua-posix (5.1.18-2) unstable; urgency=low * Re-enable patch for kfreebsd -- Enrico Tassi Tue, 03 Apr 2012 09:52:01 +0200 lua-posix (5.1.18-1) unstable; urgency=low * New upstream release * Switch to dh-lua * Build for lua5.1 and lua5.2 * Updated copyright file * Update watch file * debian/compat to 7 * Standards-version to 3.9.3, no changes -- Enrico Tassi Mon, 02 Apr 2012 16:46:39 +0200 lua-posix (5.1.9-2) unstable; urgency=low * Patch to fix kfreebsd compilation (Closes: #635213) -- Enrico Tassi Sun, 24 Jul 2011 15:39:10 +0200 lua-posix (5.1.9-1) unstable; urgency=low * Multi-Arch compliant (dh >= 8.1.3, lua5.1-policy >= 32) * new upstream release * removed CLK_TCK.dpatch, no more needed. * update standards-version to 3.9.2, no changes * source format 3.0 (quilt) * depend on lua5.1-policy-dev >= 27 to get rid of .la files (Closes: #622491) * added watch file -- Enrico Tassi Sun, 24 Apr 2011 19:08:01 +0200 lua-posix (5.1.4-3) unstable; urgency=low * Updated debian/copyright URL, thanks Reuben Thomas for the patch * rebuild with lua5.1-policy-dev >= 25 to obtain C89 comments (Closes: #545813) * update standards-version to 3.8.3, added README.source mentioning default dpatch README -- Enrico Tassi Wed, 09 Sep 2009 21:12:33 +0200 lua-posix (5.1.4-2) unstable; urgency=low * fixed Homepage field * bumped standards-version to 3.8.2, no changes * build-depend on lua5.1-policy-dev >= 22 -- Enrico Tassi Tue, 21 Jul 2009 16:47:12 +0200 lua-posix (5.1.4-1) unstable; urgency=low * New upstream release -- Enrico Tassi Sat, 19 Jul 2008 11:12:52 +0200 lua-posix (5.1.3-1) unstable; urgency=low * New upstream release * Patch by Myhailo Danylenko integrated (Closes: #491257) -- Enrico Tassi Fri, 18 Jul 2008 09:49:22 +0200 lua-posix (5.1.2-3) unstable; urgency=low * Added comflicts and replaces for liblua5.1-posix0 (Closes: #467422) -- Enrico Tassi Tue, 26 Feb 2008 19:37:50 +0100 lua-posix (5.1.2-2) unstable; urgency=low * Fixed ABI/API to 1:0:0 -- Enrico Tassi Tue, 12 Feb 2008 13:49:12 +0100 lua-posix (5.1.2-1) unstable; urgency=low * New upstream package, a fork of the previous under the same terms. Minimal API change, many new posix facilities bound by the library. * Renamed deprecated cdbs variable * Added Homepage control field * Bumped Standards-version to 3.7.3, no chenges needed -- Enrico Tassi Tue, 12 Feb 2008 13:35:17 +0100 lua-posix (1.0-7) unstable; urgency=low * made control file binNMU safe * moved to policy 10 and fixed clean target (Closes: #424554) -- Enrico Tassi Mon, 07 May 2007 14:25:57 +0200 lua-posix (1.0-6) unstable; urgency=low * Added a note about the documentation shipped within the -dev package in the control file * Added call to `lua5.1-policy-apply --reverse` in the clean:: hook * Added a patch to define CLK_TCK (Closes: #422010) -- Enrico Tassi Mon, 07 May 2007 14:02:14 +0200 lua-posix (1.0-5) unstable; urgency=low * version bumped to allow a t-p-u upload -- Enrico Tassi Mon, 8 Jan 2007 17:35:49 +0100 lua-posix (1.0-4) unstable; urgency=low * Moved to policy version 7 * The FTBFS bug #405992 was caused by the new policy (version 7). This upload fixes the bug. (Closes: #405992) -- Enrico Tassi Mon, 8 Jan 2007 17:32:46 +0100 lua-posix (1.0-3) unstable; urgency=low * added XS-X-Vcs-svn field to control. -- Enrico Tassi Sun, 24 Sep 2006 11:56:46 +0200 lua-posix (1.0-2) unstable; urgency=low * added 'bsdmainutils' to the Build-depends field. * added XS-X-Vcs-svn ield in control file -- Enrico Tassi Sun, 24 Sep 2006 11:52:40 +0200 lua-posix (1.0-1) unstable; urgency=low * Initial release. (Closes: #384776) -- Enrico Tassi Sat, 26 Aug 2006 15:19:13 +0200