package/gnuplot: unbreak !gd builds since 5.4.9 bump
PATCH 1/1 package/gnuplot: unbreak !gd builds since 5.4.9 bump
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.
--- ...-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
package/gnuplot/0002-term-post.trm-unbreak-HAVE_DEFLATE_ENCODER-builds.patch new file +51 -0
@@ -0,0 +1,51 @@ +From 84002a5bd7f4cb10e9beffab88ae55b4e982bcea Mon Sep 17 00:00:00 2001 +From: Peter Korsgaard <[email protected]> +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 <[email protected]> +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 +
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> 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):
Quoted 8 lines
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 <[email protected]>
This is now merged upstream - Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot