diff options
author | David Seifert <soap@gentoo.org> | 2022-10-02 21:56:50 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-10-02 21:56:50 +0200 |
commit | b356ded56500ad7b9b69ef5a26ba4a2d675aeec0 (patch) | |
tree | b683ac1671a05475d5c8ed207c0dc5ffee8145c7 /media-gfx | |
parent | dev-python/poetry-core: Stabilize 1.2.0 ALLARCHES, #874261 (diff) | |
download | gentoo-b356ded56500ad7b9b69ef5a26ba4a2d675aeec0.tar.gz gentoo-b356ded56500ad7b9b69ef5a26ba4a2d675aeec0.tar.bz2 gentoo-b356ded56500ad7b9b69ef5a26ba4a2d675aeec0.zip |
media-gfx/graphviz: add patch for hidden gs symbols
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/graphviz/files/graphviz-6.0.1-private-ghostscript-symbols.patch | 31 | ||||
-rw-r--r-- | media-gfx/graphviz/graphviz-6.0.1-r1.ebuild (renamed from media-gfx/graphviz/graphviz-6.0.1.ebuild) | 5 |
2 files changed, 36 insertions, 0 deletions
diff --git a/media-gfx/graphviz/files/graphviz-6.0.1-private-ghostscript-symbols.patch b/media-gfx/graphviz/files/graphviz-6.0.1-private-ghostscript-symbols.patch new file mode 100644 index 000000000000..8e409a9b5776 --- /dev/null +++ b/media-gfx/graphviz/files/graphviz-6.0.1-private-ghostscript-symbols.patch @@ -0,0 +1,31 @@ +From 1288e430c6f6be992de09fc1f50ce7fef42b3f0a Mon Sep 17 00:00:00 2001 +From: Mark Hansen <markhansen@google.com> +Date: Mon, 26 Sep 2022 20:43:39 +1000 +Subject: [PATCH] Stop using now-hidden gs_error_names symbol + +GhostScript hid their gs_error_names symbol as part of a global by-default hiding of non-API symbols. + +It will probably take a while for GhostScript to get a public API for these symbols back into a release, so let's stop using the symbol for now, until then. + +Fixes #2280 +--- + plugin/gs/gvloadimage_gs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plugin/gs/gvloadimage_gs.c b/plugin/gs/gvloadimage_gs.c +index e909c6f32..d852663af 100644 +--- a/plugin/gs/gvloadimage_gs.c ++++ b/plugin/gs/gvloadimage_gs.c +@@ -86,8 +86,8 @@ static void gs_error(GVJ_t * job, const char *name, const char *funstr, int err) + else + errsrc = "Ghostscript internal error"; + +- job->common->errorfn("%s: %s() returned: %d \"%s\" (%s)\n", +- name, funstr, err, gs_error_names[-err - 1], errsrc); ++ job->common->errorfn("%s: %s() returned: %d (%s)\n", ++ name, funstr, err, errsrc); + } + + static int gvloadimage_process_file(GVJ_t *job, usershape_t *us, void *instance) +-- +GitLab diff --git a/media-gfx/graphviz/graphviz-6.0.1.ebuild b/media-gfx/graphviz/graphviz-6.0.1-r1.ebuild index e88942bff58b..9c60b9f2702c 100644 --- a/media-gfx/graphviz/graphviz-6.0.1.ebuild +++ b/media-gfx/graphviz/graphviz-6.0.1-r1.ebuild @@ -138,6 +138,11 @@ BDEPEND=" # sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png' # with flags enabled at configure time +PATCHES=( + # backport + "${FILESDIR}"/${P}-private-ghostscript-symbols.patch +) + pkg_setup() { use python && python-single-r1_pkg_setup } |