diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-16 18:36:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-16 18:50:20 +0000 |
commit | 5eb978cb19a5b01abc5d010ac839a51cee5c34b9 (patch) | |
tree | 43af2d082bb753801da2d0b24ca98327df383654 | |
parent | a691a01a4fa4909878fd58dc9925ffede2672d46 (diff) | |
download | alpine_aports-5eb978cb19a5b01abc5d010ac839a51cee5c34b9.tar.bz2 alpine_aports-5eb978cb19a5b01abc5d010ac839a51cee5c34b9.tar.xz alpine_aports-5eb978cb19a5b01abc5d010ac839a51cee5c34b9.zip |
main/lua-posix: upgrade to 33.4.0
-rw-r--r-- | main/lua-posix/APKBUILD | 39 | ||||
-rw-r--r-- | main/lua-posix/add-cloexec.patch | 77 | ||||
-rw-r--r-- | main/lua-posix/fix-sched-header.patch | 16 |
3 files changed, 8 insertions, 124 deletions
diff --git a/main/lua-posix/APKBUILD b/main/lua-posix/APKBUILD index ba9d6e4892..3dccadf32c 100644 --- a/main/lua-posix/APKBUILD +++ b/main/lua-posix/APKBUILD | |||
@@ -4,24 +4,21 @@ _luaversions="5.1 5.2 5.3" | |||
4 | 4 | ||
5 | pkgname=lua-posix | 5 | pkgname=lua-posix |
6 | _name=luaposix | 6 | _name=luaposix |
7 | pkgver=33.3.1 | 7 | pkgver=33.4.0 |
8 | pkgrel=5 | 8 | pkgrel=0 |
9 | pkgdesc="POSIX library for Lua $_luaver" | 9 | pkgdesc="POSIX library for Lua $_luaver" |
10 | url="https://github.com/luaposix/luaposix" | 10 | url="https://github.com/luaposix/luaposix" |
11 | arch="all" | 11 | arch="all" |
12 | license="MIT" | 12 | license="MIT" |
13 | depends="" | 13 | depends="" |
14 | makedepends="perl ncurses-dev automake autoconf linux-headers lua-bitlib" | 14 | makedepends="perl automake autoconf linux-headers lua-bitlib" |
15 | subpackages="$pkgname-doc lua-curses:_curses" | 15 | subpackages="$pkgname-doc" |
16 | 16 | ||
17 | for _i in $_luaversions; do | 17 | for _i in $_luaversions; do |
18 | makedepends="$makedepends lua$_i-dev lua$_i" | 18 | makedepends="$makedepends lua$_i-dev lua$_i" |
19 | subpackages="$subpackages lua$_i-posix:_posix_${_i/./_} | 19 | subpackages="$subpackages lua$_i-posix:_posix_${_i/./_}" |
20 | lua$_i-curses:_curses_${_i/./_}" | ||
21 | done | 20 | done |
22 | source="luaposix-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/release-v$pkgver.tar.gz | 21 | source="luaposix-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/release-v$pkgver.tar.gz |
23 | fix-sched-header.patch | ||
24 | add-cloexec.patch | ||
25 | " | 22 | " |
26 | 23 | ||
27 | _sdir="$srcdir"/$_name-release-v$pkgver | 24 | _sdir="$srcdir"/$_name-release-v$pkgver |
@@ -60,12 +57,6 @@ package() { | |||
60 | done | 57 | done |
61 | } | 58 | } |
62 | 59 | ||
63 | _curses() { | ||
64 | depends= | ||
65 | pkgdesc="ncurses binding for Lua - meta package" | ||
66 | mkdir -p "$subpkgdir" | ||
67 | } | ||
68 | |||
69 | _split() { | 60 | _split() { |
70 | depends= | 61 | depends= |
71 | local d= _ver=$1 _f=$2 | 62 | local d= _ver=$1 _f=$2 |
@@ -84,13 +75,6 @@ _split() { | |||
84 | done | 75 | done |
85 | } | 76 | } |
86 | 77 | ||
87 | _split_curses() { | ||
88 | local _ver=$1 | ||
89 | pkgdesc="ncurses binding for Lua $_ver" | ||
90 | install_if="lua$_ver lua-curses=$pkgver-r$pkgrel" | ||
91 | _split $_ver curses | ||
92 | } | ||
93 | |||
94 | _split_posix() { | 78 | _split_posix() { |
95 | local _ver=$1 | 79 | local _ver=$1 |
96 | pkgdesc="POSIX library for Lua $_ver" | 80 | pkgdesc="POSIX library for Lua $_ver" |
@@ -99,16 +83,9 @@ _split_posix() { | |||
99 | } | 83 | } |
100 | 84 | ||
101 | for _i in $_luaversions; do | 85 | for _i in $_luaversions; do |
102 | eval "_curses_${_i/./_}() { _split_curses $_i; }" | ||
103 | eval "_posix_${_i/./_}() { _split_posix $_i; }" | 86 | eval "_posix_${_i/./_}() { _split_posix $_i; }" |
104 | done | 87 | done |
105 | 88 | ||
106 | md5sums="1d07112a5582b539930066d7c834643f luaposix-33.3.1.tar.gz | 89 | md5sums="b36ff049095f28752caeb0b46144516c luaposix-33.4.0.tar.gz" |
107 | d4165a01aa0d606315a35cbb956ed763 fix-sched-header.patch | 90 | sha256sums="e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21 luaposix-33.4.0.tar.gz" |
108 | b5420275eb73d12514a4b95cc9ae8923 add-cloexec.patch" | 91 | sha512sums="3cb78ccb343a55e2bf5b182410e2050356379e8f7a86d42a79853db6198628cae85f9984854f99f41505cb7e4fbb5288e4a46633a6db459649837729af76044c luaposix-33.4.0.tar.gz" |
109 | sha256sums="49e1eda64d0c03d0f2977fc1e04ce8c620dc3bb9a5c54c342904751d21b1b3cf luaposix-33.3.1.tar.gz | ||
110 | b49102e3c08418c6298f4ce4cea1856082e17e016551c16633851e35de115128 fix-sched-header.patch | ||
111 | 375d23dce99da756927563f1e1511fe61bb11c2170284ce2bf5f8b9fc956f6ca add-cloexec.patch" | ||
112 | sha512sums="76d4d9feb44f857a98dd3ad76d8ca4e4f917a4f75b04e72fdce70b092aa825a91a51cb19cf8046cbe551a92e281008664ef103301543756a646e7bab31538e33 luaposix-33.3.1.tar.gz | ||
113 | 2b80759b1803059c1424ad7564ff8ec70aeff85faf817db1f2fc09b7bab3deac2fd5f98de78657039b39b9817d8978c9a382fb687975e381e95c369389b76b2a fix-sched-header.patch | ||
114 | 3f61742bed2f5114d0a4c1f32446901d9664ed44a03344e3cdac4e41727a91871fc13a397338b0bd24a7a859466c712dc238e48a32dffe89635044abf94d69e2 add-cloexec.patch" | ||
diff --git a/main/lua-posix/add-cloexec.patch b/main/lua-posix/add-cloexec.patch deleted file mode 100644 index 927c66ec63..0000000000 --- a/main/lua-posix/add-cloexec.patch +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | From 659b3b242dae04a4b958759d414716ce95c27230 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> | ||
3 | Date: Sat, 4 Jul 2015 17:02:55 +0100 | ||
4 | Subject: [PATCH] fcntl: add constants FD_CLOEXEC, and O_CLOEXEC where | ||
5 | supported. | ||
6 | |||
7 | Close #227. | ||
8 | * ext/posix/fcntl.c (O_CLOEXEC): Default to `0` when not defined | ||
9 | by underlying system so that it can be ORed successfully. | ||
10 | (open): Note O_CLOEXEC in LDocs. | ||
11 | (O_CLOEXEC, FD_CLOEXEC): Define as Lua constants. | ||
12 | |||
13 | Signed-off-by: Gary V. Vaughan <gary@gnu.org> | ||
14 | --- | ||
15 | ext/posix/fcntl.c | 13 +++++++++++-- | ||
16 | 2 files changed, 27 insertions(+), 3 deletions(-) | ||
17 | |||
18 | diff --git a/ext/posix/fcntl.c b/ext/posix/fcntl.c | ||
19 | index e702241..5eaef10 100644 | ||
20 | --- a/ext/posix/fcntl.c | ||
21 | +++ b/ext/posix/fcntl.c | ||
22 | @@ -33,6 +33,10 @@ | ||
23 | #ifndef O_DSYNC | ||
24 | #define O_DSYNC 0 | ||
25 | #endif | ||
26 | +/* POSIX.2001 uses FD_CLOEXEC instead. */ | ||
27 | +#ifndef O_CLOEXEC | ||
28 | +#define O_CLOEXEC 0 | ||
29 | +#endif | ||
30 | |||
31 | |||
32 | |||
33 | @@ -110,7 +114,7 @@ Open a file. | ||
34 | @string path | ||
35 | @int oflags bitwise OR of zero or more of `O_RDONLY`, `O_WRONLY`, `O_RDWR`, | ||
36 | `O_APPEND`, `O_CREAT`, `O_DSYNC`, `O_EXCL`, `O_NOCTTY`, `O_NONBLOCK`, | ||
37 | - `O_RSYNC`, `O_SYNC`, `O_TRUNC` | ||
38 | + `O_RSYNC`, `O_SYNC` and `O_TRUNC` (and `O_CLOEXEC`, where supported) | ||
39 | @int[opt=511] mode access modes used by `O_CREAT` | ||
40 | @treturn[1] int file descriptor for *path*, if successful | ||
41 | @return[2] nil | ||
42 | @@ -179,8 +183,10 @@ Constants. | ||
43 | |||
44 | /*** | ||
45 | Fcntl constants. | ||
46 | -Any constants not available in the underlying system will be `nil` valued. | ||
47 | +Any constants not available in the underlying system will be `0` valued, | ||
48 | +if they are usually bitwise ORed with other values, otherwise `nil`. | ||
49 | @table posix.fcntl | ||
50 | +@int FD_CLOEXEC close file descriptor on exec flag | ||
51 | @int F_DUPFD duplicate file descriptor | ||
52 | @int F_GETFD get file descriptor flags | ||
53 | @int F_SETFD set file descriptor flags | ||
54 | @@ -198,6 +204,7 @@ Any constants not available in the underlying system will be `nil` valued. | ||
55 | @int O_WRONLY open for writing only | ||
56 | @int O_RDWR open for reading and writing | ||
57 | @int O_APPEND set append mode | ||
58 | +@int O_CLOEXEC set FD_CLOEXEC atomically | ||
59 | @int O_CREAT create if nonexistent | ||
60 | @int O_DSYNC synchronise io data integrity | ||
61 | @int O_EXCL error if file already exists | ||
62 | @@ -229,6 +236,7 @@ luaopen_posix_fcntl(lua_State *L) | ||
63 | lua_setfield(L, -2, "version"); | ||
64 | |||
65 | /* fcntl flags */ | ||
66 | + LPOSIX_CONST( FD_CLOEXEC ); | ||
67 | LPOSIX_CONST( F_DUPFD ); | ||
68 | LPOSIX_CONST( F_GETFD ); | ||
69 | LPOSIX_CONST( F_SETFD ); | ||
70 | @@ -256,6 +264,7 @@ luaopen_posix_fcntl(lua_State *L) | ||
71 | LPOSIX_CONST( O_RSYNC ); | ||
72 | LPOSIX_CONST( O_SYNC ); | ||
73 | LPOSIX_CONST( O_TRUNC ); | ||
74 | + LPOSIX_CONST( O_CLOEXEC ); | ||
75 | |||
76 | /* posix_fadvise flags */ | ||
77 | #ifdef POSIX_FADV_NORMAL | ||
diff --git a/main/lua-posix/fix-sched-header.patch b/main/lua-posix/fix-sched-header.patch deleted file mode 100644 index 0a55902257..0000000000 --- a/main/lua-posix/fix-sched-header.patch +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | diff --git a/ext/posix/sched.c b/ext/posix/sched.c | ||
2 | index 13b196b..6901589 100644 | ||
3 | --- a/ext/posix/sched.c | ||
4 | +++ b/ext/posix/sched.c | ||
5 | @@ -21,9 +21,7 @@ | ||
6 | |||
7 | #include <config.h> | ||
8 | |||
9 | -#include <unistd.h> /* for _POSIX_PRIORITY_SCHEDULING */ | ||
10 | - | ||
11 | -#ifdef _POSIX_PRIORITY_SCHEDULING | ||
12 | +#if HAVE_SCHED_GETSCHEDULER || HAVE_SCHED_SETSCHEDULER | ||
13 | #include <sched.h> | ||
14 | #endif | ||
15 | |||
16 | |||