From 5f1140b95d25012552a1d085e5758a821c82b0ce Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Thu, 8 Sep 2016 12:37:18 +1000 Subject: [PATCH] Add patch to fix build with lua 5.3 --- graphviz-2.38.0-lua-5.3.patch | 11 +++++++++++ graphviz.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 graphviz-2.38.0-lua-5.3.patch diff --git a/graphviz-2.38.0-lua-5.3.patch b/graphviz-2.38.0-lua-5.3.patch new file mode 100644 index 0000000..a17f9c1 --- /dev/null +++ b/graphviz-2.38.0-lua-5.3.patch @@ -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" diff --git a/graphviz.spec b/graphviz.spec index cb3a0f4..62f4256 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -38,6 +38,7 @@ Url: http://www.graphviz.org Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz Patch0: graphviz-2.30.1-linkage.patch Patch1: graphviz-2.30.1-pkgconfig.patch +Patch2: graphviz-2.38.0-lua-5.3.patch BuildRequires: bison BuildRequires: flex BuildRequires: libtool @@ -363,7 +364,8 @@ Static development package for %{name}. %prep %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 %build