summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-10-09 21:28:27 +0200
committerUlrich Müller <ulm@gentoo.org>2023-10-09 21:30:50 +0200
commitfbb42d862a08de57da2ed67b7b6fb6661ad706f5 (patch)
treeb524f7379d5947ab7f3fdd09b774b3c829f869d1 /sci-visualization
parentdev-util/pwntools: disable update check (diff)
downloadgentoo-fbb42d862a08de57da2ed67b7b6fb6661ad706f5.tar.gz
gentoo-fbb42d862a08de57da2ed67b7b6fb6661ad706f5.tar.bz2
gentoo-fbb42d862a08de57da2ed67b7b6fb6661ad706f5.zip
sci-visualization/gnuplot: Fix unbalanced braces in C source
Closes: https://bugs.gentoo.org/915492 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/gnuplot/files/gnuplot-5.4.9-unbal-braces.patch31
-rw-r--r--sci-visualization/gnuplot/gnuplot-5.4.9.ebuild1
2 files changed, 32 insertions, 0 deletions
diff --git a/sci-visualization/gnuplot/files/gnuplot-5.4.9-unbal-braces.patch b/sci-visualization/gnuplot/files/gnuplot-5.4.9-unbal-braces.patch
new file mode 100644
index 000000000000..3261f60e61c1
--- /dev/null
+++ b/sci-visualization/gnuplot/files/gnuplot-5.4.9-unbal-braces.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/915492
+Patch from upstream branch-5-4-stable branch
+
+commit b5b668ca442e0d7399e2b432fe5fe5fb4c48a1a2
+Author: Peter Korsgaard <peter@korsgaard.com>
+Date: Sun Oct 1 10:20:31 2023 +0200
+
+ term/post.trm: unbreak !HAVE_DEFLATE_ENCODER builds
+
+--- 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);
diff --git a/sci-visualization/gnuplot/gnuplot-5.4.9.ebuild b/sci-visualization/gnuplot/gnuplot-5.4.9.ebuild
index 7a6239265ec3..f1d6a09bdf07 100644
--- a/sci-visualization/gnuplot/gnuplot-5.4.9.ebuild
+++ b/sci-visualization/gnuplot/gnuplot-5.4.9.ebuild
@@ -80,6 +80,7 @@ TEXMF="${EPREFIX}/usr/share/texmf-site"
PATCHES=(
"${FILESDIR}"/${PN}-5.0.6-no-picins.patch
+ "${FILESDIR}"/${PN}-5.4.9-unbal-braces.patch
)
pkg_setup() {