aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/libluv/APKBUILD6
-rw-r--r--community/libluv/lua_unsigned-typedef.patch13
2 files changed, 17 insertions, 2 deletions
diff --git a/community/libluv/APKBUILD b/community/libluv/APKBUILD
index 711e13c5a9..5b4da0c27e 100644
--- a/community/libluv/APKBUILD
+++ b/community/libluv/APKBUILD
@@ -3,7 +3,7 @@
pkgname=libluv
_release=0
pkgver=1.36.0.$_release
-pkgrel=0
+pkgrel=1
pkgdesc="Bare libuv bindings for lua"
options="!check" # No testsuite
url="https://github.com/luvit/luv"
@@ -13,6 +13,7 @@ makedepends="cmake luajit-dev libuv-dev ninja"
subpackages="$pkgname-dev"
source="https://github.com/luvit/luv/releases/download/${pkgver%.*}-$_release/luv-${pkgver%.*}-$_release.tar.gz
cmake-use-pkgconfig.patch
+ lua_unsigned-typedef.patch
"
builddir="$srcdir/luv-${pkgver%.*}-$_release"
@@ -34,4 +35,5 @@ package() {
}
sha512sums="9972d82bacdcf528d95047f3f2cfbceb523f6d6f5782e577b24cdd25f1292df745d3fb116b6fbd376d797df47c378ad25d5b673044d9ab5678af6e5fef5eca49 luv-1.36.0-0.tar.gz
-ba68d920e11d107febe458fbe4887288c8915fc3a56c4742bb577650b4e74e0428a364e1321b68ee47f17a157e1bd304a8777bd294a8f2baefcaf541fdf5170b cmake-use-pkgconfig.patch"
+ba68d920e11d107febe458fbe4887288c8915fc3a56c4742bb577650b4e74e0428a364e1321b68ee47f17a157e1bd304a8777bd294a8f2baefcaf541fdf5170b cmake-use-pkgconfig.patch
+53ba683e3c97e0ebc1b3b864c1fcf16a073802fb52bca923a21aa556d1ebdaf5d78e2b4629d8f9d00f03cbf0efceeac8b7f4e1c4c98618175c51ca69d2122b22 lua_unsigned-typedef.patch"
diff --git a/community/libluv/lua_unsigned-typedef.patch b/community/libluv/lua_unsigned-typedef.patch
new file mode 100644
index 0000000000..f48e7718b6
--- /dev/null
+++ b/community/libluv/lua_unsigned-typedef.patch
@@ -0,0 +1,13 @@
+diff --git a/deps/lua-compat-5.3/c-api/compat-5.3.h b/deps/lua-compat-5.3/c-api/compat-5.3.h
+index 082a6a0..a83cc5e 100644
+--- a/deps/lua-compat-5.3/c-api/compat-5.3.h
++++ b/deps/lua-compat-5.3/c-api/compat-5.3.h
+@@ -100,8 +100,6 @@ extern "C" {
+ # define LUA_ERRGCMM (LUA_ERRERR + 2)
+ #endif /* LUA_ERRGCMM define */
+
+-typedef size_t lua_Unsigned;
+-
+ typedef struct luaL_Buffer_53 {
+ luaL_Buffer b; /* make incorrect code crash! */
+ char *ptr;