pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/craft



Module Name:    pkgsrc
Committed By:   dholland
Date:           Thu Mar 26 02:53:51 UTC 2026

Modified Files:
        pkgsrc/games/craft: distinfo
Added Files:
        pkgsrc/games/craft/patches: patch-hcc_hcc.cc patch-hcc_hcc.hc

Log Message:
games/craft: fix build with gcc14


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/games/craft/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/craft/patches/patch-hcc_hcc.cc \
    pkgsrc/games/craft/patches/patch-hcc_hcc.hc

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

Modified files:

Index: pkgsrc/games/craft/distinfo
diff -u pkgsrc/games/craft/distinfo:1.16 pkgsrc/games/craft/distinfo:1.17
--- pkgsrc/games/craft/distinfo:1.16    Tue Oct 26 10:43:51 2021
+++ pkgsrc/games/craft/distinfo Thu Mar 26 02:53:51 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2021/10/26 10:43:51 nia Exp $
+$NetBSD: distinfo,v 1.17 2026/03/26 02:53:51 dholland Exp $
 
 BLAKE2s (craft-jumbo-patch-20140913.gz) = c9cc40a745b4ba67b28ee210ef05e68f19e824e31bb03053ce2b1cfa70163376
 SHA512 (craft-jumbo-patch-20140913.gz) = 503f59385d70794a3371f50743477746c4ec2333f90d07440b0c0e0a40790cab0cbbec1b9355e1941b1d9d694b15ad3d7b371df0723dd595cfa3ca13b4b7abac
@@ -8,4 +8,6 @@ SHA512 (craftcc35.tar.Z) = 8b83e98eb352e
 Size (craftcc35.tar.Z) = 3123677 bytes
 SHA1 (patch-Makefile) = 1f6074b445c70fbb5fea5a373dcfa4556310ef60
 SHA1 (patch-craft.hc) = 21bfc32566d3f0ccee65fe52871704457ffaa1cc
+SHA1 (patch-hcc_hcc.cc) = a01e8944ab49f63c72146a9f49295bfa2b8e411b
+SHA1 (patch-hcc_hcc.hc) = 7712678d3d454392e0a5ba76d3dee0d38f312191
 SHA1 (patch-object__handler.hc) = c5143b605d37aef793ffa07b9191d777a5b9c8f3

Added files:

Index: pkgsrc/games/craft/patches/patch-hcc_hcc.cc
diff -u /dev/null pkgsrc/games/craft/patches/patch-hcc_hcc.cc:1.1
--- /dev/null   Thu Mar 26 02:53:51 2026
+++ pkgsrc/games/craft/patches/patch-hcc_hcc.cc Thu Mar 26 02:53:51 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-hcc_hcc.cc,v 1.1 2026/03/26 02:53:51 dholland Exp $
+
+Avoid undefined behavior. These functions don't return values.
+
+--- hcc/hcc.cc~        2026-03-26 02:19:08.304087599 +0000
++++ hcc/hcc.cc
+@@ -192,7 +192,7 @@ void pass_1_error (int line_no, const ch
+    exit   (1);
+   }
+ 
+-bool pass_1 (char src_name [])
++void pass_1 (char src_name [])
+   {bool inside_comment;
+    bool inside_prc;
+    int  symbol_no;
+@@ -1122,7 +1122,7 @@ void sub_ref (int ref_n)
+  
+   }
+ 
+-bool pass_2 (char obj_name [])
++void pass_2 (char obj_name [])
+   {int  line_no;
+    int  char_no;
+    bool within_string;
Index: pkgsrc/games/craft/patches/patch-hcc_hcc.hc
diff -u /dev/null pkgsrc/games/craft/patches/patch-hcc_hcc.hc:1.1
--- /dev/null   Thu Mar 26 02:53:51 2026
+++ pkgsrc/games/craft/patches/patch-hcc_hcc.hc Thu Mar 26 02:53:51 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-hcc_hcc.hc,v 1.1 2026/03/26 02:53:51 dholland Exp $
+
+Avoid undefined behavior. These functions don't return values.
+
+--- hcc/hcc.hc~        2026-03-26 02:19:08.304469911 +0000
++++ hcc/hcc.hc
+@@ -215,7 +215,7 @@ void pass_1_error (int line_no, const ch
+    exit   (1);
+   }
+ 
+-bool pass_1 (char src_name [])
++void pass_1 (char src_name [])
+   {bool inside_comment;
+    bool inside_prc;
+    int  symbol_no;
+@@ -654,7 +654,7 @@ void sub_ref (int ref_n)
+  
+   }
+ 
+-bool pass_2 (char obj_name [])
++void pass_2 (char obj_name [])
+   {int  line_no;
+    int  char_no;
+    bool within_string;



Home | Main Index | Thread Index | Old Index