diff options
-rw-r--r-- | sci-visualization/gnuplot/files/gnuplot-5.4.9-unbal-braces.patch | 31 | ||||
-rw-r--r-- | sci-visualization/gnuplot/gnuplot-5.4.9.ebuild | 1 |
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() { |