From: Tim Orling ticot...@gmail.com
* automake patch from 4.4.4 is no longer needed
* PACKAGECONFIG for lua (lua term is only useful for LaTeX)
* linking problems with dlopen, etc. in lua loadlibs.c fixed
** this same problem was seen in jansa world builds for 4.4.4
** I am not able to replicate that error on 4.4.4
NOTE: qt is supported by this version, but I was not able to
figure out the configuration...
Signed-off-by: Tim Orling ticot...@gmail.com
---
.../gnuplot/gnuplot-4.4.4/automake-1.12.x.patch| 44 --
.../lua-loadlibs-configure-in-fix.patch| 16
.../{gnuplot-4.4.4 = gnuplot-4.6.5}/subdirs.patch | 0
meta-oe/recipes-extended/gnuplot/gnuplot.inc | 1 +
.../gnuplot/{gnuplot_4.4.4.bb = gnuplot_4.6.5.bb} | 8 ++--
5 files changed, 20 insertions(+), 49 deletions(-)
delete mode 100644
meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/automake-1.12.x.patch
create mode 100644
meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch
rename meta-oe/recipes-extended/gnuplot/{gnuplot-4.4.4 =
gnuplot-4.6.5}/subdirs.patch (100%)
rename meta-oe/recipes-extended/gnuplot/{gnuplot_4.4.4.bb = gnuplot_4.6.5.bb}
(66%)
diff --git
a/meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/automake-1.12.x.patch
b/meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/automake-1.12.x.patch
deleted file mode 100644
index 51f703c..000
--- a/meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/automake-1.12.x.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-Upstream-Status: Backport
-
-It's fixed in 4.6 and 4.7(HEAD)
-
-http://sourceforge.net/tracker/?func=detailaid=3523591group_id=2055atid=102055
-
-diff -uNr gnuplot-4.4.4.orig/Makefile.am gnuplot-4.4.4/Makefile.am
gnuplot-4.4.4.orig/Makefile.am 2012-07-20 10:54:49.075828905 +0200
-+++ gnuplot-4.4.4/Makefile.am 2012-07-20 10:55:22.380831313 +0200
-@@ -1,5 +1,5 @@
- ## Process this file with automake to produce Makefile.in -*-Makefile-*-
--AUTOMAKE_OPTIONS = foreign 1.2h
-+AUTOMAKE_OPTIONS = foreign
-
- SUBDIRS = config m4 term src $(LISPDIR) man share
-
-diff -uNr gnuplot-4.4.4.orig/configure.in gnuplot-4.4.4/configure.in
gnuplot-4.4.4.orig/configure.in2011-09-02 06:09:40.0 +0200
-+++ gnuplot-4.4.4/configure.in 2012-07-20 10:55:53.289833224 +0200
-@@ -16,10 +16,11 @@
- dnl configure.in body
-
- dnl Compiler characteristics
--dnl Check for ANSI C prototypes, the const and inline keywords,
--dnl and ANSI style stringification
-+dnl Check for the const and inline keywords and ANSI style stringification
-+dnl automake 1.12 dropped support for AM_C_PROTOTYPES and ansi2knr
-+dnl But our code still tests for #ifdef PROTOTYPES, so define it here
-+AC_DEFINE(PROTOTYPES,1,[Automake 1.12 dropped support for building without
prototypes])
- AC_PROG_CC
--AM_C_PROTOTYPES
- AC_PROG_CPP
- AC_C_CONST
- AC_C_INLINE
-diff -uNr gnuplot-4.4.4.orig/src/Makefile.am gnuplot-4.4.4/src/Makefile.am
gnuplot-4.4.4.orig/src/Makefile.am 2010-10-06 06:53:16.0 +0200
-+++ gnuplot-4.4.4/src/Makefile.am 2012-07-20 10:56:02.376834548 +0200
-@@ -1,5 +1,5 @@
- ## Process this file with automake to produce Makefile.in -*-Makefile-*-
--AUTOMAKE_OPTIONS = ansi2knr foreign 1.2h
-+AUTOMAKE_OPTIONS = foreign
-
- # in the spirit of automake ...
- pkglibexecdir = $(libexecdir)/@PACKAGE@/@VERSION_MAJOR@
diff --git
a/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch
b/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch
new file mode 100644
index 000..23f2cd2
--- /dev/null
+++
b/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch
@@ -0,0 +1,16 @@
+Index: gnuplot-4.6.5/configure.in
+===
+--- gnuplot-4.6.5.orig/configure.in
gnuplot-4.6.5/configure.in
+@@ -690,6 +690,11 @@ if test ${with_lua} = yes ; then
+ fi
+
+ if test $with_lua != no; then
++dnl check for dlopen/dl to fix loadlibs link failure
++AC_CHECK_FUNC([dlopen], [],
++ AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS=-ldl))
++AC_SUBST(DLOPEN_LIBS)
++LUA_LIBS=$LUA_LIBS $DLOPEN_LIBS
+ TERMLIBS=$TERMLIBS $LUA_LIBS
+ CPPFLAGS=$CPPFLAGS $LUA_CFLAGS
+ else
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/subdirs.patch
b/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/subdirs.patch
similarity index 100%
rename from meta-oe/recipes-extended/gnuplot/gnuplot-4.4.4/subdirs.patch
rename to meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/subdirs.patch
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot.inc
b/meta-oe/recipes-extended/gnuplot/gnuplot.inc
index 96d6ee2..ab3ec3f 100644
--- a/meta-oe/recipes-extended/gnuplot/gnuplot.inc
+++ b/meta-oe/recipes-extended/gnuplot/gnuplot.inc
@@ -12,6 +12,7 @@ acpaths =
PACKAGECONFIG ??= cairo
PACKAGECONFIG[cairo] = --with-cairo,--without-cairo,cairo pango
+PACKAGECONFIG[lua] = --with-lua,--without-lua,lua