diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-08-21 11:58:28 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-21 12:11:25 +0200 |
| commit | cd3ea7d5701eaaec5a9fdb05ee1386e2e1e4255a (patch) | |
| tree | 69d2b6e6a786d6fcdfd734c952a17931046ea619 /gnu/packages/patches/ploticus-pointer-types.patch | |
| parent | 7b45058bec3a9ded802bb22bd9c7d1a4a1825214 (diff) | |
gnu: ploticus: Fix build with GCC 14.
* gnu/packages/patches/ploticus-pointer-types.patch: New file.
* gnu/packages/plotutils.scm (ploticus)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
Fixes: guix/guix#1818
Change-Id: I121ca003c9fecc916580e4c949706e853ea74ec7
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/patches/ploticus-pointer-types.patch')
| -rw-r--r-- | gnu/packages/patches/ploticus-pointer-types.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/patches/ploticus-pointer-types.patch b/gnu/packages/patches/ploticus-pointer-types.patch new file mode 100644 index 00000000000..f84a63cfbbf --- /dev/null +++ b/gnu/packages/patches/ploticus-pointer-types.patch @@ -0,0 +1,31 @@ +From <https://sources.debian.org/data/main/p/ploticus/2.42-8/debian/patches/fix-ftbfs-gcc14.patch>. + +Fixes a build error with GCC 14: + + svg.c: In function ‘PLGS_trailer’: + svg.c:743:46: error: passing argument 1 of ‘gzprintf’ from incompatible pointer type [-Wincompatible-pointer-types] + 743 | if( svg_compress ) gzprintf( outfp, "%s", buf ); + | ^~~~~ + | | + | FILE * + +--- a/src/svg.c ++++ b/src/svg.c +@@ -740,7 +740,7 @@ + buf = svg_style; /* reuse */ + while( fgets( buf, 999, svg_fp ) != NULL ) { + #ifdef WZ +- if( svg_compress ) gzprintf( outfp, "%s", buf ); ++ if( svg_compress ) gzprintf( (gzFile) outfp, "%s", buf ); + else + #endif + printf( "%s", buf ); +@@ -749,7 +749,7 @@ + unlink( svg_tmpfilename ); + #ifdef WZ + if( svg_compress && !svg_stdout ) { +- gzclose( outfp ); ++ gzclose( (gzFile) outfp ); + chmod( svg_filename, 00644 ); + } + #endif |
