Add patch to fix build with lua 5.3

This commit is contained in:
Andrey Bondrov 2016-09-08 12:37:18 +10:00
parent 1dcff38774
commit 5f1140b95d
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- graphviz-2.38.0/configure.ac.orig 2016-05-15 19:27:52.204176821 +0200
+++ graphviz-2.38.0/configure.ac 2016-05-15 19:28:14.198171673 +0200
@@ -928,7 +928,7 @@
if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
LUA_INCLUDES="$CFLAGS"
fi
- for l in "$lua_suffix" "" "52" "5.2" "51" "5.1" "50" "5.0" ; do
+ for l in "$lua_suffix" "" "53" "5.3" "52" "5.2" "51" "5.1" "50" "5.0" ; do
AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
if test "x$ac_found_lua_lib" = "xyes" ; then
LUA_VERSION=">=5.1.0"

View file

@ -38,6 +38,7 @@ Url: http://www.graphviz.org
Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz
Patch0: graphviz-2.30.1-linkage.patch Patch0: graphviz-2.30.1-linkage.patch
Patch1: graphviz-2.30.1-pkgconfig.patch Patch1: graphviz-2.30.1-pkgconfig.patch
Patch2: graphviz-2.38.0-lua-5.3.patch
BuildRequires: bison BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: libtool BuildRequires: libtool
@ -363,7 +364,8 @@ Static development package for %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p0 -b .link %patch0 -p0 -b .link~
%patch1 -p1 -b .lua~
sed -i s,"ruby-1.9","ruby-2.1",g configure.ac sed -i s,"ruby-1.9","ruby-2.1",g configure.ac
%build %build