summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-24 06:07:41 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-24 06:07:41 +0000
commit4a699fe5f95c969c9a237a277cf9879e45540dc9 (patch)
tree1eadb0a52cae3a585337cfbfdf778ff69170b2cf
parent7ee0ba327c20c9c54cc94cf67685de701db3a172 (diff)
downloadpackages-4a699fe5f95c969c9a237a277cf9879e45540dc9.tar.gz
packages-4a699fe5f95c969c9a237a277cf9879e45540dc9.tar.bz2
packages-4a699fe5f95c969c9a237a277cf9879e45540dc9.tar.xz
packages-4a699fe5f95c969c9a237a277cf9879e45540dc9.zip
user/lua-expat: Fix build on 32-bit architectures
-rw-r--r--user/lua-expat/32bit.patch11
-rw-r--r--user/lua-expat/APKBUILD8
2 files changed, 16 insertions, 3 deletions
diff --git a/user/lua-expat/32bit.patch b/user/lua-expat/32bit.patch
new file mode 100644
index 000000000..5a09710e1
--- /dev/null
+++ b/user/lua-expat/32bit.patch
@@ -0,0 +1,11 @@
+--- luaexpat-1.3.3/makefile.old 2018-11-27 11:31:28.000000000 +0000
++++ luaexpat-1.3.3/makefile 2020-01-24 06:06:47.843102618 +0000
+@@ -36,7 +36,7 @@
+ -Wpointer-arith \
+ -Wshadow \
+ -Wwrite-strings \
+- -DLUA_C89_NUMBERS
++ -Wno-long-long
+
+ CFLAGS = -fPIC -std=gnu99 $(CWARNS) -ansi -O2 -I$(LUA_INC) -I$(EXPAT_INC)
+ CC = gcc
diff --git a/user/lua-expat/APKBUILD b/user/lua-expat/APKBUILD
index 452404157..704f89173 100644
--- a/user/lua-expat/APKBUILD
+++ b/user/lua-expat/APKBUILD
@@ -2,7 +2,6 @@
# Contribtor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=lua-expat
-_name=expat
pkgver=1.3.3
pkgrel=0
pkgdesc="SAX XML parser based on the Expat library"
@@ -11,7 +10,9 @@ arch="all"
license="MIT"
depends="lua5.3"
makedepends="lua5.3-dev expat-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/tomasguisasola/luaexpat/archive/v1.3.3.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/tomasguisasola/luaexpat/archive/v1.3.3.tar.gz
+ 32bit.patch
+ "
builddir="$srcdir/luaexpat-$pkgver"
build() {
@@ -29,4 +30,5 @@ package() {
LUA_V=5.3 DESTDIR="$pkgdir" install
}
-sha512sums="aa3f730c64cae3791fc1125302178ec2398d2380e8ec0e65ca4b29f532f181f149baaf555bf687e502b28726d3fd0baafd4f73cf26f04f625d18bbaddb043d63 lua-expat-1.3.3.tar.gz"
+sha512sums="aa3f730c64cae3791fc1125302178ec2398d2380e8ec0e65ca4b29f532f181f149baaf555bf687e502b28726d3fd0baafd4f73cf26f04f625d18bbaddb043d63 lua-expat-1.3.3.tar.gz
+ac5b05991dfe36bcc0c9ff7570110dbb1face387c0b65e4735b99cedaff5e29311a919b5e8ce6dae2ac674eadd2fa0bea6ec547754071d325dcce6460eeef36e 32bit.patch"