Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Fischer <mf@go-sys.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/gnuplot: Add patch to fix 'undefined reference to gp_read_history'
Date: Mon, 14 Sep 2020 11:07:59 +0200	[thread overview]
Message-ID: <20200914090759.22116-1-mf@go-sys.de> (raw)

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

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	
+ }
+ 
-- 
2.28.0

             reply	other threads:[~2020-09-14  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14  9:07 Michael Fischer [this message]
2020-09-19 19:42 ` [Buildroot] [PATCH 1/1] package/gnuplot: Add patch to fix 'undefined reference to gp_read_history' Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03 13:30 Michael Fischer
2020-09-05  7:51 ` Yann E. MORIN
2020-09-08  7:39   ` Michael Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200914090759.22116-1-mf@go-sys.de \
    --to=mf@go-sys.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox