diff options
Diffstat (limited to 'debian/patches/0003-prefer-lua5.1-to-lua5.2.patch')
-rw-r--r-- | debian/patches/0003-prefer-lua5.1-to-lua5.2.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/0003-prefer-lua5.1-to-lua5.2.patch b/debian/patches/0003-prefer-lua5.1-to-lua5.2.patch new file mode 100644 index 0000000..774739c --- /dev/null +++ b/debian/patches/0003-prefer-lua5.1-to-lua5.2.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From: YAEGASHI Takeshi <yaegashi@debian.org> | ||
2 | Date: Sun, 2 Mar 2014 17:15:20 +0900 | ||
3 | Subject: prefer lua5.1 to lua5.2 | ||
4 | |||
5 | Because: | ||
6 | * For wheezy, lua-md5 is not usable by lua 5.2 | ||
7 | * For sid, luajit is based on lua 5.1 | ||
8 | --- | ||
9 | cgit.mk | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/cgit.mk b/cgit.mk | ||
13 | index 5048b09..4fd4235 100644 | ||
14 | --- a/cgit.mk | ||
15 | +++ b/cgit.mk | ||
16 | @@ -30,7 +30,7 @@ ifdef NO_LUA | ||
17 | CGIT_CFLAGS += -DNO_LUA | ||
18 | else | ||
19 | ifeq ($(LUA_PKGCONFIG),) | ||
20 | - LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.2 lua5.1; do \ | ||
21 | + LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.1 lua5.2; do \ | ||
22 | pkg-config --exists $$pc 2>/dev/null && echo $$pc && break; \ | ||
23 | done) | ||
24 | LUA_MODE := autodetected | ||