summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-08-31 19:09:30 +0000
committerRomain Perier <mrpouet@gentoo.org>2009-08-31 19:09:30 +0000
commita72fc0dd068509fab6fe667ec32442c2f30cb401 (patch)
tree0d7db730b102920fcc177687f1f66df3048ba2f5 /x11-themes/gtk-engines/files
parentFix broken nofax.patch and yet another parallelization bug in the main Makefi... (diff)
downloadhistorical-a72fc0dd068509fab6fe667ec32442c2f30cb401.tar.gz
historical-a72fc0dd068509fab6fe667ec32442c2f30cb401.tar.bz2
historical-a72fc0dd068509fab6fe667ec32442c2f30cb401.zip
Fix bug #255773, use liblua system library instead of embedded version, patch import from upstream bug #593674, thanks to Ihar Hrachyshka <ihar.hrachyshka@gmail.com> for his work
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'x11-themes/gtk-engines/files')
-rw-r--r--x11-themes/gtk-engines/files/gtk-engines-2.18.2-system-lua.patch183
1 files changed, 183 insertions, 0 deletions
diff --git a/x11-themes/gtk-engines/files/gtk-engines-2.18.2-system-lua.patch b/x11-themes/gtk-engines/files/gtk-engines-2.18.2-system-lua.patch
new file mode 100644
index 000000000000..418fbd3c9c4c
--- /dev/null
+++ b/x11-themes/gtk-engines/files/gtk-engines-2.18.2-system-lua.patch
@@ -0,0 +1,183 @@
+From 7508e8941bc664df0e7b8c952d82d901f9a95c75 Mon Sep 17 00:00:00 2001
+From: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
+Date: Mon, 31 Aug 2009 16:09:55 +0300
+Subject: [PATCH] Added configure option to use system liblua for Lua engine.
+
+Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
+---
+ configure.ac | 10 ++++
+ engines/lua/Makefile.am | 118 +++++++++++++++++++++++++----------------------
+ 2 files changed, 73 insertions(+), 55 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index df673ed..3c3ce2a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -45,6 +45,9 @@ AC_ARG_ENABLE(paranoia, [ --enable-paranoia use wall, werror, ansi, peda
+ AC_ARG_ENABLE(deprecated, [ --disable-deprecated disable deprecated functions in gtk et al], [deprecated=$enableval], [deprecated="no"])
+
+ AC_ARG_ENABLE(schemas, [ --disable-schema disable engine schemas], [schemas=$enableval], [schemas="yes"])
++AC_ARG_WITH(system-lua, [ --with-system-lua link with system Lua library], [system_lua=$enableval], [system_lua="no"])
++
++AM_CONDITIONAL([SYSTEM_LUA], [test x$system_lua = xtrue])
+
+ BUILD_ENGINES=""
+ BUILD_THEMES=""
+@@ -126,6 +129,13 @@ AC_SUBST(GTK_LIBS)
+ GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
+ AC_SUBST(GTK_VERSION)
+
++if test $system_lua = "yes"; then
++ PKG_CHECK_MODULES(LUA, lua,,
++ AC_MSG_ERROR([--with-system-lua specified but no system liblua found]))
++ AC_SUBST(LUA_CFLAGS)
++ AC_SUBST(LUA_LIBS)
++fi
++
+ AC_SUBST(BUILD_ENGINES)
+ AC_SUBST(BUILD_THEMES)
+ AC_SUBST(BUILD_SCHEMAS)
+diff --git a/engines/lua/Makefile.am b/engines/lua/Makefile.am
+index 736154d..6243e5a 100644
+--- a/engines/lua/Makefile.am
++++ b/engines/lua/Makefile.am
+@@ -21,10 +21,69 @@
+
+ NULL =
+
++if SYSTEM_LUA
++ LIBLUA_SOURCES =
++ LIBLUA_CFLAGS = $(LUA_CFLAGS)
++else
++ LIBLUA_CFLAGS = -I$(top_srcdir)/engines/lua/src/liblua
++ LIBLUA_SOURCES = \
++ ./src/liblua/lapi.h \
++ ./src/liblua/lauxlib.h \
++ ./src/liblua/lcode.h \
++ ./src/liblua/ldebug.h \
++ ./src/liblua/ldo.h \
++ ./src/liblua/lfunc.h \
++ ./src/liblua/lgc.h \
++ ./src/liblua/llex.h \
++ ./src/liblua/llimits.h \
++ ./src/liblua/lmem.h \
++ ./src/liblua/lobject.h \
++ ./src/liblua/lopcodes.h \
++ ./src/liblua/lparser.h \
++ ./src/liblua/lstate.h \
++ ./src/liblua/lstring.h \
++ ./src/liblua/ltable.h \
++ ./src/liblua/ltm.h \
++ ./src/liblua/lua.h \
++ ./src/liblua/luaconf.h \
++ ./src/liblua/lualib.h \
++ ./src/liblua/lundump.h \
++ ./src/liblua/lvm.h \
++ ./src/liblua/lzio.h \
++ ./src/liblua/lapi.c \
++ ./src/liblua/lcode.c \
++ ./src/liblua/ldebug.c \
++ ./src/liblua/ldo.c \
++ ./src/liblua/ldump.c \
++ ./src/liblua/lfunc.c \
++ ./src/liblua/lgc.c \
++ ./src/liblua/liolib.c \
++ ./src/liblua/llex.c \
++ ./src/liblua/lmem.c \
++ ./src/liblua/lobject.c \
++ ./src/liblua/lopcodes.c \
++ ./src/liblua/loslib.c \
++ ./src/liblua/lparser.c \
++ ./src/liblua/lstate.c \
++ ./src/liblua/lstring.c \
++ ./src/liblua/lstrlib.c \
++ ./src/liblua/ltable.c \
++ ./src/liblua/ltablib.c \
++ ./src/liblua/ltm.c \
++ ./src/liblua/lundump.c \
++ ./src/liblua/lvm.c \
++ ./src/liblua/lzio.c \
++ ./src/liblua/lauxlib.c \
++ ./src/liblua/lbaselib.c \
++ ./src/liblua/ldblib.c \
++ ./src/liblua/lmathlib.c \
++ ./src/liblua/loadlib.c \
++ ./src/liblua/linit.c
++endif
++
+ INCLUDES = \
+ -I$(top_srcdir)/engines/support \
+- -I$(top_srcdir)/engines/lua/src/liblua \
+- $(GTK_CFLAGS) $(DEVELOPMENT_CFLAGS) \
++ $(LIBLUA_CFLAGS) $(GTK_CFLAGS) $(DEVELOPMENT_CFLAGS) \
+ $(NULL)
+
+ enginedir = $(libdir)/gtk-2.0/$(GTK_VERSION)/engines
+@@ -44,62 +103,11 @@ libluaengine_la_SOURCES = \
+ ./src/main.c \
+ ./src/misc_utils.c \
+ ./src/misc_utils.h \
+- ./src/liblua/lapi.h \
+- ./src/liblua/lauxlib.h \
+- ./src/liblua/lcode.h \
+- ./src/liblua/ldebug.h \
+- ./src/liblua/ldo.h \
+- ./src/liblua/lfunc.h \
+- ./src/liblua/lgc.h \
+- ./src/liblua/llex.h \
+- ./src/liblua/llimits.h \
+- ./src/liblua/lmem.h \
+- ./src/liblua/lobject.h \
+- ./src/liblua/lopcodes.h \
+- ./src/liblua/lparser.h \
+- ./src/liblua/lstate.h \
+- ./src/liblua/lstring.h \
+- ./src/liblua/ltable.h \
+- ./src/liblua/ltm.h \
+- ./src/liblua/lua.h \
+- ./src/liblua/luaconf.h \
+- ./src/liblua/lualib.h \
+- ./src/liblua/lundump.h \
+- ./src/liblua/lvm.h \
+- ./src/liblua/lzio.h \
+- ./src/liblua/lapi.c \
+- ./src/liblua/lcode.c \
+- ./src/liblua/ldebug.c \
+- ./src/liblua/ldo.c \
+- ./src/liblua/ldump.c \
+- ./src/liblua/lfunc.c \
+- ./src/liblua/lgc.c \
+- ./src/liblua/liolib.c \
+- ./src/liblua/llex.c \
+- ./src/liblua/lmem.c \
+- ./src/liblua/lobject.c \
+- ./src/liblua/lopcodes.c \
+- ./src/liblua/loslib.c \
+- ./src/liblua/lparser.c \
+- ./src/liblua/lstate.c \
+- ./src/liblua/lstring.c \
+- ./src/liblua/lstrlib.c \
+- ./src/liblua/ltable.c \
+- ./src/liblua/ltablib.c \
+- ./src/liblua/ltm.c \
+- ./src/liblua/lundump.c \
+- ./src/liblua/lvm.c \
+- ./src/liblua/lzio.c \
+- ./src/liblua/lauxlib.c \
+- ./src/liblua/lbaselib.c \
+- ./src/liblua/ldblib.c \
+- ./src/liblua/lmathlib.c \
+- ./src/liblua/loadlib.c \
+- ./src/liblua/linit.c \
++ $(LIBLUA_SOURCES) \
+ $(NULL)
+
+ libluaengine_la_LDFLAGS = -module -avoid-version -no-undefined -export-symbols $(top_srcdir)/engines/engine.symbols
+-libluaengine_la_LIBADD = $(top_builddir)/engines/support/libsupport.la $(GTK_LIBS)
++libluaengine_la_LIBADD = $(top_builddir)/engines/support/libsupport.la $(GTK_LIBS) $(LUA_LIBS)
+
+ -include $(top_srcdir)/git.mk
+
+--
+1.6.3.3
+