Changeset 40673


Ignore:
Timestamp:
2014-05-03T13:22:54+02:00 (4 years ago)
Author:
hauke
Message:

luaposix: update to v31

v31 adds more interfaces to POSIX.
New compared to v5.1.11:
nanosleep, open, close, read, write, pipe, dup, dup2, setfl, getfl, fcntl,
poll, fnmatch, memrchr, strptime, statvfs, mkdtemp, isatty, openpt, ptsname,
grantpt, unlockpt, killpg, openpty, realpath, socket functions and constants,
fixes, optimizations, etc.
New dependency: luabitop (provided as a separate patch)

Signed-off-by: Maxim Storchak <m.storchak@…>

Location:
packages/lang/luaposix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/lang/luaposix/Makefile

    r40611 r40673  
    99 
    1010PKG_NAME:=luaposix 
    11 PKG_VERSION:=5.1.11 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=v31 
     12PKG_RELEASE:=1 
    1313 
    14 PKG_SOURCE:=v$(PKG_VERSION).tar.gz 
     14PKG_SOURCE:=release-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=https://github.com/luaposix/luaposix/archive/ 
    16 PKG_MD5SUM:=8254576c52bd2d0e160353d24880bb89 
    17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_MD5SUM:=a25ff76d54bbbebf7a1f3b20c9806ee3 
     17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION) 
    1818 
    1919include $(INCLUDE_DIR)/package.mk 
     
    2525  TITLE:=luaposix 
    2626  URL:=http://luaforge.net/projects/luaposix/ 
    27   DEPENDS:=+lua +librt 
     27  DEPENDS:=+lua +librt +luabitop 
     28  PKG_BUILD_DEPENDS:=+lua/host 
    2829endef 
    2930 
     
    3435 
    3536define Build/Configure 
     37        cd $(PKG_BUILD_DIR) && ./bootstrap 
     38        $(call Build/Configure/Default) 
    3639endef 
    3740 
     
    4750define Package/luaposix/install 
    4851        $(INSTALL_DIR) $(1)/usr/lib/lua 
    49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/posix.so $(1)/usr/lib/lua 
     52        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ext/posix/.libs/posix_c.so $(1)/usr/lib/lua 
     53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/posix.lua $(1)/usr/lib/lua 
    5054endef 
    5155 
  • packages/lang/luaposix/patches/100-eglibc-compat.patch

    r26821 r40673  
    1 --- a/lposix.c 
    2 +++ b/lposix.c 
    3 @@ -960,11 +960,13 @@ static int Pctermid(lua_State *L)         /** c 
     1--- a/ext/posix/posix.c 
     2+++ b/ext/posix/posix.c 
     3@@ -1970,6 +1970,7 @@ static int Pctermid(lua_State *L) 
     4        return 1; 
    45 } 
    56  
    6   
    77+#ifndef NO_GETLOGIN 
    8  static int Pgetlogin(lua_State *L)             /** getlogin() */ 
    9  { 
     8 /*** 
     9 Current logged-in user. 
     10 @see getlogin(3) 
     11@@ -1980,6 +1981,7 @@ static int Pgetlogin(lua_State *L) 
    1012        lua_pushstring(L, getlogin()); 
    1113        return 1; 
     
    1315+#endif 
    1416  
    15   
    1617 static void Fgetpasswd(lua_State *L, int i, const void *data) 
    17 @@ -1778,7 +1780,9 @@ static const luaL_reg R[] = 
     18 { 
     19@@ -3786,7 +3788,9 @@ static const luaL_Reg R[] = 
    1820 #if _POSIX_VERSION >= 200112L 
    19         {"getgroups",           Pgetgroups}, 
     21        MENTRY( Pgetgroups      ), 
    2022 #endif 
    2123+#ifndef NO_GETLOGIN 
    22         {"getlogin",            Pgetlogin}, 
     24        MENTRY( Pgetlogin       ), 
    2325+#endif 
    24         {"getopt_long",         Pgetopt_long}, 
    25         {"getpasswd",           Pgetpasswd}, 
    26         {"getpid",              Pgetpid}, 
     26        MENTRY( Pgetopt         ), 
     27        MENTRY( Pgetpasswd      ), 
     28        MENTRY( Pgetpid         ), 
Note: See TracChangeset for help on using the changeset viewer.