From 21aa54f9774c6d7bf48a2549e30c8d973a3d803a Mon Sep 17 00:00:00 2001 From: naddy Date: Sat, 6 Jun 2026 10:54:05 +0000 Subject: [PATCH] graphics/tgif: make C types coherent to appease llvm22 ok benoit@ --- graphics/tgif/Makefile | 2 +- graphics/tgif/patches/patch-tangram2_c | 21 +++++++++++++++++++++ graphics/tgif/patches/patch-tgcwdl_c | 12 ++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 graphics/tgif/patches/patch-tangram2_c create mode 100644 graphics/tgif/patches/patch-tgcwdl_c diff --git a/graphics/tgif/Makefile b/graphics/tgif/Makefile index 828bbcffba5..426751374b9 100644 --- a/graphics/tgif/Makefile +++ b/graphics/tgif/Makefile @@ -3,7 +3,7 @@ COMMENT = two-dimensional drawing tool and hyper-object browser VERSION = 4.2.5 DISTNAME = tgif-QPL-${VERSION} PKGNAME = tgif-${VERSION} -REVISION = 0 +REVISION = 1 CATEGORIES = graphics HOMEPAGE = http://bourbon.usc.edu/tgif/ diff --git a/graphics/tgif/patches/patch-tangram2_c b/graphics/tgif/patches/patch-tangram2_c new file mode 100644 index 00000000000..afbe82b31c6 --- /dev/null +++ b/graphics/tgif/patches/patch-tangram2_c @@ -0,0 +1,21 @@ +Index: tangram2.c +--- tangram2.c.orig ++++ tangram2.c +@@ -1796,7 +1796,7 @@ char *args; /* semi-colon separated list (arg1;arg2;ar + char arg[3][1024]; + + /* Extracts parameters from args */ +- if( !parseArgs( args, arg, 3, 1024 ) ) ++ if( !parseArgs( args, &arg[0][0], 3, 1024 ) ) + { + fprintf( stderr, "TGIF: Usage Tangram2GenerateChain( \"arg1;arg2;arg3\" )\n" ); + return; +@@ -1844,7 +1844,7 @@ char *args; + + + /* Extracts parameters from args */ +- if( !parseArgs( args, arg, 12, 1024 ) ) ++ if( !parseArgs( args, &arg[0][0], 12, 1024 ) ) + { + return; + } diff --git a/graphics/tgif/patches/patch-tgcwdl_c b/graphics/tgif/patches/patch-tgcwdl_c new file mode 100644 index 00000000000..c801d468e2c --- /dev/null +++ b/graphics/tgif/patches/patch-tgcwdl_c @@ -0,0 +1,12 @@ +Index: tgcwdl.c +--- tgcwdl.c.orig ++++ tgcwdl.c +@@ -152,7 +152,7 @@ static + void PixeltoRGB(pcwdi, pixel, pn_r, pn_g, pn_b) + ColorWheelDlgInfo *pcwdi; + int pixel; +- unsigned int *pn_r, *pn_g, *pn_b; ++ unsigned char *pn_r, *pn_g, *pn_b; + /* 0 <= r,g,b <= 255 */ + { + uint32_t pix=(uint32_t)(unsigned int)pixel;