git: d68401458654 - 2026Q1 - cad/spice: fix build on FreeBSD 15.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jan 2026 13:29:31 UTC
The branch 2026Q1 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d684014586547914e8d28fd28d01bcb5ac3fcee7
commit d684014586547914e8d28fd28d01bcb5ac3fcee7
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-01-15 20:05:20 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-01-16 13:29:18 +0000
cad/spice: fix build on FreeBSD 15.0
The timezone symbol now follows POSIX on FreeBSD 15.0.
Remove spice's own declaration, which seems to have gone unused in any
case.
See also: https://reviews.freebsd.org/D44281
Approved by: portmgr (build fix blanket)
MFH: 2026Q1
(cherry picked from commit 46b4e04137ac569c1bbcd3965c087e785c70bc55)
---
cad/spice/files/patch-src_include_misc_h | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/cad/spice/files/patch-src_include_misc_h b/cad/spice/files/patch-src_include_misc_h
index 5d1e69a17dc7..89552d7649af 100644
--- a/cad/spice/files/patch-src_include_misc_h
+++ b/cad/spice/files/patch-src_include_misc_h
@@ -1,6 +1,6 @@
---- src/include/misc.h.orig 1993-04-25 21:37:48.000000000 +0000
-+++ src/include/misc.h 2011-06-24 16:37:44.000000000 +0000
-@@ -86,9 +86,11 @@
+--- src/include/misc.h.orig 1993-04-25 21:37:48 UTC
++++ src/include/misc.h
+@@ -86,9 +86,11 @@ extern int errno;
extern char *realloc();
extern char *getenv();
extern int errno;
@@ -12,7 +12,7 @@
extern int rand();
extern int srand();
extern int atoi();
-@@ -100,7 +102,7 @@
+@@ -100,7 +102,7 @@ extern void exit();
# endif
# ifdef HAS_GETCWD
@@ -21,7 +21,16 @@
# endif
# ifdef HAS_CLEARERR
-@@ -154,7 +156,9 @@
+@@ -145,16 +147,15 @@ extern void perror();
+ #endif
+
+ #ifdef HAS_TIME_
+-# ifdef HAS_BSDTIME
+-extern char *timezone();
+-# endif
+ extern char *asctime();
+ extern struct tm *localtime();
+ #endif
#ifndef HAS_MEMAVL
# ifdef HAS_RLIMIT_