lua54-lualdap: fix build for lua 5.4
This commit is contained in:
parent
c49a999890
commit
dba0c4705d
|
@ -0,0 +1,15 @@
|
|||
Index: lua54-lualdap-1.2.5/lua54/Makefile
|
||||
===================================================================
|
||||
--- lua54-lualdap-1.2.5.orig/lua54/Makefile
|
||||
+++ lua54-lualdap-1.2.5/lua54/Makefile
|
||||
@@ -15,8 +15,8 @@ endif
|
||||
|
||||
CFLAGS_WARN := -pedantic -Wall -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
|
||||
|
||||
-override CPPFLAGS := -DPACKAGE_STRING="\"$(PACKAGE_STRING)\"" -DLUA_C89_NUMBERS $(CPPFLAGS)
|
||||
-override CFLAGS := -O2 -fPIC -std=c89 $(CFLAGS_WARN) $(CFLAGS)
|
||||
+override CPPFLAGS := -DPACKAGE_STRING="\"$(PACKAGE_STRING)\"" $(CPPFLAGS)
|
||||
+override CFLAGS := -O2 -fPIC $(CFLAGS_WARN) $(CFLAGS)
|
||||
|
||||
ifdef BUILD_VARIANT
|
||||
REPORT_DIR := test-reports/$(BUILD_VARIANT)
|
|
@ -1,5 +1,5 @@
|
|||
--- a/src/compat-5.3.h
|
||||
+++ b/src/compat-5.3.h
|
||||
--- a/lua54/src/compat-5.3.h
|
||||
+++ b/lua54/src/compat-5.3.h
|
||||
@@ -399,11 +399,11 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname,
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
pkgname=lua54-lualdap
|
||||
version=1.2.5
|
||||
revision=3
|
||||
wrksrc="lualdap-${version}"
|
||||
create_wrksrc=yes
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="lua51-devel lua52-devel lua53-devel lua54-devel libldap-devel"
|
||||
|
@ -14,13 +14,12 @@ homepage="https://github.com/lualdap/lualdap"
|
|||
distfiles="https://github.com/lualdap/lualdap/archive/v${version}.tar.gz"
|
||||
checksum=3e028faa6a5798cf2f3d50b9853b9b3fb6eb562b62010747bd5b6f50b57bb1cc
|
||||
|
||||
post_patch() {
|
||||
cd ${wrksrc}
|
||||
mkdir -p lua51
|
||||
mv * lua51 || true
|
||||
cp -a lua51 lua52
|
||||
cp -a lua51 lua53
|
||||
cp -a lua51 lua54
|
||||
post_extract() {
|
||||
mv lualdap-${version} lua
|
||||
cp -a lua lua51
|
||||
cp -a lua lua52
|
||||
cp -a lua lua53
|
||||
cp -a lua lua54
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in New Issue