[packages/graphviz] fix build with gcc 14

atler atler at pld-linux.org
Sat Jul 27 16:35:27 CEST 2024


commit 628fcfd1171bfccf009133d2a4bbc1e7b30d37fd
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jul 27 15:32:46 2024 +0200

    fix build with gcc 14

 gcc14.patch   | 11 +++++++++++
 graphviz.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/graphviz.spec b/graphviz.spec
index fa0bda3..97f7749 100644
--- a/graphviz.spec
+++ b/graphviz.spec
@@ -65,6 +65,7 @@ Patch0:		%{name}-fontpath.patch
 Patch1:		%{name}-link.patch
 Patch2:		%{name}-bad-header.patch
 Patch3:		%{name}-php.patch
+Patch4:		gcc14.patch
 Patch7:		%{name}-ruby.patch
 Patch10:	%{name}-ming.patch
 Patch15:	ghostscript918.patch
@@ -510,6 +511,7 @@ Wiązania graphviza dla języka R.
 %patch0 -p1
 %patch1 -p1
 %patch3 -p1
+%patch4 -p1
 %patch7 -p1
 %patch10 -p1
 %patch15 -p1
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..8b26ca2
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,11 @@
+--- graphviz-2.50.0/cmd/lefty/tbl.c.orig	2021-12-04 21:10:28.000000000 +0100
++++ graphviz-2.50.0/cmd/lefty/tbl.c	2024-07-27 15:26:26.654224436 +0200
+@@ -170,7 +170,7 @@
+             cp2[i] = cp[i];
+             if (cp2[i].next != C_NULL)
+                 cp2[i].next -= ci;
+-            s = &cp[i].u.s;
++            s = cp[i].u.s;
+             while (*s)
+                 s++;
+             cn = (long) (s - (char *) &cp[i]) / sizeof (Code_t);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/graphviz.git/commitdiff/9641bf743ed3626ab27d16c892a95d22f84bf881



More information about the pld-cvs-commit mailing list