pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/cook



Module Name:    pkgsrc
Committed By:   mrg
Date:           Wed Oct 15 09:15:42 UTC 2025

Modified Files:
        pkgsrc/devel/cook: distinfo
Added Files:
        pkgsrc/devel/cook/patches: patch-configure patch-etc_configure.ac

Log Message:
avoid configure errors with GCC 14.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/cook/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/cook/patches/patch-configure \
    pkgsrc/devel/cook/patches/patch-etc_configure.ac

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

Modified files:

Index: pkgsrc/devel/cook/distinfo
diff -u pkgsrc/devel/cook/distinfo:1.9 pkgsrc/devel/cook/distinfo:1.10
--- pkgsrc/devel/cook/distinfo:1.9      Mon Sep 29 20:46:56 2025
+++ pkgsrc/devel/cook/distinfo  Wed Oct 15 09:15:41 2025
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.9 2025/09/29 20:46:56 mrg Exp $
+$NetBSD: distinfo,v 1.10 2025/10/15 09:15:41 mrg Exp $
 
 BLAKE2s (cook-2.26.tar.gz) = 325f0c8461db21520e3a6ebcf17a41eb692541a387e92c80405c660ee7120ef6
 SHA512 (cook-2.26.tar.gz) = 75d6349a4491589823e2f0e569b2e3d95e2c2bc2217e983bdfa8d89b9e05ea962f66c500bc0a023a2d9c3ce9099aa0459e5595cdf3fce4d0500f50900808cb60
 Size (cook-2.26.tar.gz) = 881301 bytes
 SHA1 (patch-common_error_intl.c) = 66041d854d17bdc80834865c3ac3ef27a538bbb9
+SHA1 (patch-configure) = 7d415103356123a9bad669bb0ed79e2ab0425f75
+SHA1 (patch-etc_configure.ac) = 3e164f1d9e35be8e3c98bd6e0c1d6419f2b44842

Added files:

Index: pkgsrc/devel/cook/patches/patch-configure
diff -u /dev/null pkgsrc/devel/cook/patches/patch-configure:1.1
--- /dev/null   Wed Oct 15 09:15:42 2025
+++ pkgsrc/devel/cook/patches/patch-configure   Wed Oct 15 09:15:41 2025
@@ -0,0 +1,57 @@
+$NetBSD: patch-configure,v 1.1 2025/10/15 09:15:41 mrg Exp $
+
+Avoid configure errors with GCC 14.
+
+
+--- configure.orig     2006-01-16 17:56:01.000000000 -0800
++++ configure  2025-10-11 15:34:44.004526405 -0700
+@@ -2162,7 +2162,7 @@ $ac_declaration
+ int
+ main ()
+ {
+-exit (42);
++return (42);
+   ;
+   return 0;
+ }
+@@ -2621,8 +2621,8 @@ main ()
+   for (i = 0; i < 256; i++)
+     if (XOR (islower (i), ISLOWER (i))
+       || toupper (i) != TOUPPER (i))
+-      exit(2);
+-  exit (0);
++      return(2);
++  return (0);
+ }
+ _ACEOF
+ rm -f conftest$ac_exeext
+@@ -4214,7 +4214,7 @@ int test(fmt)char *fmt;
+ {va_list ap;char*a;int x;
+ va_start(ap,fmt);a=va_arg(ap,char*);x=(a!=foo);va_end(ap);return x;}
+ int main(argc,argv)int argc;char**argv;{
+-exit(test("",foo));}
++return(test("",foo));}
+ 
+ _ACEOF
+ rm -f conftest$ac_exeext
+@@ -5296,7 +5296,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <wctype.h>
+ #endif
+ int main(argc,argv)int argc;char**argv;{
+-exit(iswprint('a') == 0);}
++return(iswprint('a') == 0);}
+ 
+ _ACEOF
+ rm -f conftest$ac_exeext
+@@ -5364,9 +5364,9 @@ cat >>conftest.$ac_ext <<_ACEOF
+ 
+ int main(argc, argv) int argc; char **argv; {
+ #ifdef HAVE_GETPGRP
+-if (getpgrp(32767) == getpgrp(0)) exit(2);
++if (getpgrp(32767) == getpgrp(0)) return(2);
+ #endif
+-exit(0); }
++return(0); }
+ 
+ _ACEOF
+ rm -f conftest$ac_exeext
Index: pkgsrc/devel/cook/patches/patch-etc_configure.ac
diff -u /dev/null pkgsrc/devel/cook/patches/patch-etc_configure.ac:1.1
--- /dev/null   Wed Oct 15 09:15:42 2025
+++ pkgsrc/devel/cook/patches/patch-etc_configure.ac    Wed Oct 15 09:15:41 2025
@@ -0,0 +1,37 @@
+$NetBSD: patch-etc_configure.ac,v 1.1 2025/10/15 09:15:41 mrg Exp $
+
+Avoid configure errors with GCC 14.
+
+
+--- etc/configure.ac.orig      2006-01-16 17:56:01.000000000 -0800
++++ etc/configure.ac   2025-10-11 15:32:54.684620115 -0700
+@@ -86,7 +86,7 @@ int test(fmt)char *fmt;
+ {va_list ap;char*a;int x;
+ va_start(ap,fmt);a=va_arg(ap,char*);x=(a!=foo);va_end(ap);return x;}
+ int main(argc,argv)int argc;char**argv;{
+-exit(test("",foo));}]
++return(test("",foo));}]
+ , AC_DEFINE(HAVE_STDARG_H,1,
+ [Define this symbol of your system has <stdarg.h> AND it works.])
+ AC_MSG_RESULT(yes),
+@@ -139,7 +139,7 @@ AC_TRY_RUN([
+ #include <wctype.h>
+ #endif
+ int main(argc,argv)int argc;char**argv;{
+-exit(iswprint('a') == 0);}]
++return(iswprint('a') == 0);}]
+ , AC_DEFINE(HAVE_ISWPRINT,1,
+ [Define this symbol of your system has iswprint() AND it works.
+ (GNU libc v2 had a bug.)])
+@@ -172,9 +172,9 @@ AC_MSG_CHECKING([for appropriate getpgrp
+ AC_TRY_RUN([
+ int main(argc, argv) int argc; char **argv; {
+ #ifdef HAVE_GETPGRP
+-if (getpgrp(32767) == getpgrp(0)) exit(2);
++if (getpgrp(32767) == getpgrp(0)) return(2);
+ #endif
+-exit(0); }]
++return(0); }]
+ , AC_DEFINE(CONF_getpgrp_arg, 0,
+ [Set this to a suitable argument for the getpgrp function to discover
+ the process group of the current process.])



Home | Main Index | Thread Index | Old Index