aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-04-04 15:35:06 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2021-04-08 09:36:14 +0000
commit3cb180f4fa843cacdb6db4733e35e34c4010aca3 (patch)
tree8897f5a6acdca80d0c68d7963ceb1e21f0486109
parent6dfac91f46f61e363222a9cb9e48fd6b9a3cc224 (diff)
community/hexchat: fix starting hexchat with lua plugins on lua 5.4.3
fixes #12573
-rw-r--r--community/hexchat/APKBUILD9
-rw-r--r--community/hexchat/fix-lua-5.4.3.patch12
2 files changed, 18 insertions, 3 deletions
diff --git a/community/hexchat/APKBUILD b/community/hexchat/APKBUILD
index 457cb44f2dd..cbff64f9eed 100644
--- a/community/hexchat/APKBUILD
+++ b/community/hexchat/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hexchat
pkgver=2.14.3
-pkgrel=4
+pkgrel=5
pkgdesc="Graphical IRC client based on XChat"
url="https://hexchat.github.io"
arch="all !armhf !armv7"
@@ -10,7 +10,9 @@ makedepends="dbus-glib-dev gtk+2.0-dev iso-codes libnotify-dev libproxy-dev
openssl-dev libsexy-dev libxml2-dev lua5.4-dev meson python3-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python"
source="https://dl.hexchat.net/hexchat/hexchat-$pkgver.tar.xz
- force-meson-build-order.patch"
+ force-meson-build-order.patch
+ fix-lua-5.4.3.patch
+ "
build() {
abuild-meson \
@@ -39,4 +41,5 @@ _python() {
}
sha512sums="c265921f2cb02c5d273bcdbb20a44a5c9f38b0f8cbba4fd56b177b676fc5d1dfd05bf80fcfa3706c7981f712f2f6c9aaaf80bccf3be0f6d96068dd393f3a7cb5 hexchat-2.14.3.tar.xz
-f579622330391fbce798bf9b0e5c1d07975a188b79f7160ab8c921b7df92b2d31444f30d6f62b7b08f7543a4ef40975ecf53705903374b73069bb369967491c5 force-meson-build-order.patch"
+f579622330391fbce798bf9b0e5c1d07975a188b79f7160ab8c921b7df92b2d31444f30d6f62b7b08f7543a4ef40975ecf53705903374b73069bb369967491c5 force-meson-build-order.patch
+0837f8e59636c7b3be507ca764030e4fc74071938fbaa4ea8ca9a10c030aa094916f19d0df48fd32c92baef0fc9d2fea835f570f55c79797b791dbf16d5d4d5f fix-lua-5.4.3.patch"
diff --git a/community/hexchat/fix-lua-5.4.3.patch b/community/hexchat/fix-lua-5.4.3.patch
new file mode 100644
index 00000000000..940c39f10c9
--- /dev/null
+++ b/community/hexchat/fix-lua-5.4.3.patch
@@ -0,0 +1,12 @@
+diff --git a/plugins/lua/lua.c b/plugins/lua/lua.c
+index 941342b..9e12285 100644
+--- a/plugins/lua/lua.c
++++ b/plugins/lua/lua.c
+@@ -1191,7 +1191,6 @@ static void patch_clibs(lua_State *L)
+ }
+ lua_pop(L, 1);
+ }
+- lua_pop(L, 1);
+ }
+
+ static GPtrArray *scripts;