* [Buildroot] [PATCH] package/gnuplot: unbreak !gd builds since 5.4.9 bump
@ 2023-10-01 9:44 Peter Korsgaard
2023-10-02 11:23 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2023-10-01 9:44 UTC (permalink / raw)
To: buildroot; +Cc: Michael Fischer, Anthony Viallard
Fixes:
http://autobuild.buildroot.net/results/5676609b6331b645f2e557aca67afe4c3a087433/
Fix a build failure for --without-gd builds since the bump to 5.4.9 with
commit 6dc3d3c3606 (package/gnuplot: bump version to 5.4.9):
In file included from term.h:298,
from term.c:1211:
../term/post.trm:4016:11: error: expected declaration specifiers or '...' before string constant
4016 | fputs("%%%%BeginImage\n", gppsfile);
Add a patch fixing that.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
...-unbreak-HAVE_DEFLATE_ENCODER-builds.patch | 51 +++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 package/gnuplot/0002-term-post.trm-unbreak-HAVE_DEFLATE_ENCODER-builds.patch
diff --git a/package/gnuplot/0002-term-post.trm-unbreak-HAVE_DEFLATE_ENCODER-builds.patch b/package/gnuplot/0002-term-post.trm-unbreak-HAVE_DEFLATE_ENCODER-builds.patch
new file mode 100644
index 0000000000..c3edb39cc6
--- /dev/null
+++ b/package/gnuplot/0002-term-post.trm-unbreak-HAVE_DEFLATE_ENCODER-builds.patch
@@ -0,0 +1,51 @@
+From 84002a5bd7f4cb10e9beffab88ae55b4e982bcea Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Sun, 1 Oct 2023 10:20:31 +0200
+Subject: [PATCH] term/post.trm: unbreak !HAVE_DEFLATE_ENCODER builds
+
+Commit 2f2cf617808 (post: handle RGBA images (only current use is to render
+a pixmap)) added an extra '}' outside the HAVE_DEFLATE_ENCODER (gd support)
+conditional, leading to build breakage:
+
+In file included from term.h:298,
+ from term.c:1211:
+../term/post.trm:4016:11: error: expected declaration specifiers or '...' before string constant
+ 4016 | fputs("%%%%BeginImage\n", gppsfile);
+
+http://autobuild.buildroot.net/results/5676609b6331b645f2e557aca67afe4c3a087433/build-end.log
+
+Fix it by dropping the extra { } added by the above commit.
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+Upstream: https://sourceforge.net/p/gnuplot/gnuplot-main/merge-requests/28/
+---
+ term/post.trm | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/term/post.trm b/term/post.trm
+index 186eb9d3c..100811b86 100644
+--- a/term/post.trm
++++ b/term/post.trm
+@@ -4000,17 +4000,16 @@ PS_image (unsigned int M, unsigned int N, coordval *image, gpiPoint *corner, t_i
+ cscale = 1.0;
+
+ #ifdef HAVE_DEFLATE_ENCODER
+- if (ps_params->level3) {
++ if (ps_params->level3)
+ encoded_image = (void *)PS_encode_png_image(M, N, image, color_mode,
+ bits_per_component, max_colors, cscale,
+ &num_encoded_bytes);
+- } else {
++ else
+ #endif
+ encoded_image = PS_encode_image(M, N, image, color_mode,
+ bits_per_component, max_colors, cscale,
+ (ps_params->level1 ? PS_ASCII_HEX : PS_ASCII85),
+ &num_encoded_bytes);
+- }
+
+
+ fputs("%%%%BeginImage\n", gppsfile);
+--
+2.30.2
+
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/gnuplot: unbreak !gd builds since 5.4.9 bump
2023-10-01 9:44 [Buildroot] [PATCH] package/gnuplot: unbreak !gd builds since 5.4.9 bump Peter Korsgaard
@ 2023-10-02 11:23 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2023-10-02 11:23 UTC (permalink / raw)
To: buildroot; +Cc: Michael Fischer, Anthony Viallard
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> Fixes:
> http://autobuild.buildroot.net/results/5676609b6331b645f2e557aca67afe4c3a087433/
> Fix a build failure for --without-gd builds since the bump to 5.4.9 with
> commit 6dc3d3c3606 (package/gnuplot: bump version to 5.4.9):
> In file included from term.h:298,
> from term.c:1211:
> ../term/post.trm:4016:11: error: expected declaration specifiers or '...' before string constant
> 4016 | fputs("%%%%BeginImage\n", gppsfile);
> Add a patch fixing that.
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This is now merged upstream - Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-02 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-01 9:44 [Buildroot] [PATCH] package/gnuplot: unbreak !gd builds since 5.4.9 bump Peter Korsgaard
2023-10-02 11:23 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox