diff mbox series

[1/1] package/gnuplot: Add patch to fix 'undefined reference to gp_read_history'

Message ID 20200914090759.22116-1-mf@go-sys.de
State Accepted
Headers show
Series [1/1] package/gnuplot: Add patch to fix 'undefined reference to gp_read_history' | expand

Commit Message

Michael Fischer Sept. 14, 2020, 9:07 a.m. UTC
Fixes:
 - http://autobuild.buildroot.net/results/e09087f0afd323a220889e2c7827fd73c9025673

Signed-off-by: Michael Fischer <mf@go-sys.de>
---
 package/gnuplot/0002-without-history.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/gnuplot/0002-without-history.patch

Comments

Thomas Petazzoni Sept. 19, 2020, 7:42 p.m. UTC | #1
On Mon, 14 Sep 2020 11:07:59 +0200
Michael Fischer <mf@go-sys.de> wrote:

> Fixes:
>  - http://autobuild.buildroot.net/results/e09087f0afd323a220889e2c7827fd73c9025673
> 
> Signed-off-by: Michael Fischer <mf@go-sys.de>
> ---
>  package/gnuplot/0002-without-history.patch | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 package/gnuplot/0002-without-history.patch

Applied to master, thanks. Please submit the patch to upstream gnuplot.

Thanks,

Thomas
diff mbox series

Patch

diff --git a/package/gnuplot/0002-without-history.patch b/package/gnuplot/0002-without-history.patch
new file mode 100644
index 0000000000..6091da8415
--- /dev/null
+++ b/package/gnuplot/0002-without-history.patch
@@ -0,0 +1,17 @@ 
+history.c: Patch to solve the 'undefined reference to gp_read_history'
+
+Signed-off-by: Michael Fischer <mf@go-sys.de>
+
+diff -purN gnuplot-5.4.0.org/src/history.c gnuplot-5.4.0/src/history.c
+--- gnuplot-5.4.0.org/src/history.c	2019-12-10 07:22:32.000000000 +0100
++++ gnuplot-5.4.0/src/history.c	2020-09-14 10:07:36.525441702 +0200
+@@ -91,7 +91,9 @@ write_history(char *filename)
+ void
+ read_history(char *filename)
+ {
+-    gp_read_history(filename);
++#ifdef GNUPLOT_HISTORY
++    	gp_read_history(filename);
++#endif	
+ }
+