pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/gdchart



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jun 14 15:56:39 UTC 2026

Modified Files:
        pkgsrc/graphics/gdchart: Makefile distinfo
Added Files:
        pkgsrc/graphics/gdchart/patches: patch-gdc.c patch-gdc__pie.c
            patch-gdchart.c

Log Message:
gdchart: Various fixes for GCC 14 & 15.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 pkgsrc/graphics/gdchart/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/graphics/gdchart/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/gdchart/patches/patch-gdc.c \
    pkgsrc/graphics/gdchart/patches/patch-gdc__pie.c
cvs rdiff -u -r0 -r1.3 pkgsrc/graphics/gdchart/patches/patch-gdchart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/gdchart/Makefile
diff -u pkgsrc/graphics/gdchart/Makefile:1.52 pkgsrc/graphics/gdchart/Makefile:1.53
--- pkgsrc/graphics/gdchart/Makefile:1.52       Thu Oct 23 20:37:28 2025
+++ pkgsrc/graphics/gdchart/Makefile    Sun Jun 14 15:56:38 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2025/10/23 20:37:28 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2026/06/14 15:56:38 nia Exp $
 
 DISTNAME=      gdchart0.11.5dev
 PKGNAME=       gdchart-0.11.5
@@ -13,6 +13,8 @@ COMMENT=      Easy to use, fast C API for cre
 USE_LIBTOOL=           yes
 INSTALLATION_DIRS=     include lib
 
+FORCE_C_STD=   gnu89
+
 #TEST_TARGET=  gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
 
 post-patch:

Index: pkgsrc/graphics/gdchart/distinfo
diff -u pkgsrc/graphics/gdchart/distinfo:1.15 pkgsrc/graphics/gdchart/distinfo:1.16
--- pkgsrc/graphics/gdchart/distinfo:1.15       Tue Oct 26 10:46:09 2021
+++ pkgsrc/graphics/gdchart/distinfo    Sun Jun 14 15:56:38 2026
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 10:46:09 nia Exp $
+$NetBSD: distinfo,v 1.16 2026/06/14 15:56:38 nia Exp $
 
 BLAKE2s (gdchart0.11.5dev.tar.gz) = 0513a34339f81744831cc2ff216ec164d78b9677a01071ead66026454d10e828
 SHA512 (gdchart0.11.5dev.tar.gz) = dc08d02c0273fd41d0de193126b5fd8524473e76e17ea972ed1891354ca67dd406c1073f07fe5f11a2623b575499bb7e5633825d43033fdfd2b492d19db957a3
 Size (gdchart0.11.5dev.tar.gz) = 38783 bytes
 SHA1 (patch-ac) = 191ad026f5203cd115deb9c5e7d55f981858d401
+SHA1 (patch-gdc.c) = 3fd5fef9f2c043502f7ced614432483deac6485b
+SHA1 (patch-gdc__pie.c) = 2661081d8e7b747215b2d5f961ae0301065a773a
+SHA1 (patch-gdchart.c) = ce5cb049a0a6d4ca7d542ff3d09f72024d42ea91

Added files:

Index: pkgsrc/graphics/gdchart/patches/patch-gdc.c
diff -u /dev/null pkgsrc/graphics/gdchart/patches/patch-gdc.c:1.1
--- /dev/null   Sun Jun 14 15:56:39 2026
+++ pkgsrc/graphics/gdchart/patches/patch-gdc.c Sun Jun 14 15:56:38 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-gdc.c,v 1.1 2026/06/14 15:56:38 nia Exp $
+
+Fix implicit declaration of strlen(3).
+
+--- gdc.c.orig 2004-12-17 18:11:54.000000000 +0000
++++ gdc.c
+@@ -4,6 +4,7 @@
+ #define GDC_INCL
+ #define GDC_LIB
+ #include <math.h>
++#include <string.h>
+ #include "gdc.h"
+ 
+ struct        GDC_FONT_T      GDC_fontc[GDC_numfonts] = { (gdFontPtr)NULL, 8,  5,
Index: pkgsrc/graphics/gdchart/patches/patch-gdc__pie.c
diff -u /dev/null pkgsrc/graphics/gdchart/patches/patch-gdc__pie.c:1.1
--- /dev/null   Sun Jun 14 15:56:39 2026
+++ pkgsrc/graphics/gdchart/patches/patch-gdc__pie.c    Sun Jun 14 15:56:38 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-gdc__pie.c,v 1.1 2026/06/14 15:56:38 nia Exp $
+
+Fix arguments of qsort comparator function to appease modern GCC.
+
+--- gdc_pie.c.orig     2004-12-17 18:12:13.000000000 +0000
++++ gdc_pie.c
+@@ -77,9 +77,10 @@ static int
+  * comparing across 0-360 line
+ \* ------------------------------------------------------- */
+ static int
+-ocmpr( struct tmp_slice_t *a,
+-         struct tmp_slice_t *b )
++ocmpr( const void *arg1, const void *arg2 )
+ {
++      const struct tmp_slice_t *a = arg1;
++      const struct tmp_slice_t *b = arg2;
+       if( RAD_DIST1(a->angle) < RAD_DIST2(b->angle) )
+               return 1;
+       if( RAD_DIST1(a->angle) > RAD_DIST2(b->angle) )

Index: pkgsrc/graphics/gdchart/patches/patch-gdchart.c
diff -u /dev/null pkgsrc/graphics/gdchart/patches/patch-gdchart.c:1.3
--- /dev/null   Sun Jun 14 15:56:39 2026
+++ pkgsrc/graphics/gdchart/patches/patch-gdchart.c     Sun Jun 14 15:56:38 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-gdchart.c,v 1.3 2026/06/14 15:56:38 nia Exp $
+
+Fix implicit declaration of get_uniq_color.
+
+--- gdchart.c.orig     2004-12-17 18:12:41.000000000 +0000
++++ gdchart.c
+@@ -20,6 +20,8 @@
+ #define LOWSET                1
+ #define CLOSESET      2
+ 
++long get_uniq_color(gdImagePtr);
++
+ /* scaled translation onto graph */
+ #define PX( x )               (int)( xorig + (setno*xdepth_3D) + (x)*xscl )
+ #define PY( y )               (int)( yorig - (setno*ydepth_3D) + (y)*yscl )



Home | Main Index | Thread Index | Old Index