pkgsrc-WIP-changes archive

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

Guitar: avoid redefining gmtime_r().



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Jul 27 10:22:18 2025 +0200
Changeset:	5ffc9a77013bb9b4d6d46527e72fb4fc559f62b6

Modified Files:
	Guitar/distinfo
Added Files:
	Guitar/patches/patch-filetype_file_src_gmtime__r.c

Log Message:
Guitar: avoid redefining gmtime_r().

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5ffc9a77013bb9b4d6d46527e72fb4fc559f62b6

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

diffstat:
 Guitar/distinfo                                    |  1 +
 Guitar/patches/patch-filetype_file_src_gmtime__r.c | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/Guitar/distinfo b/Guitar/distinfo
index 41a49d9762..08b12de59f 100644
--- a/Guitar/distinfo
+++ b/Guitar/distinfo
@@ -3,6 +3,7 @@ $NetBSD$
 BLAKE2s (Guitar-1.3.0.tar.gz) = c5be125f311985924b14b0397ff2d1c88ec0f88e889fd70bd0c9119c30ad03de
 SHA512 (Guitar-1.3.0.tar.gz) = bb5484c9a618b0b5ef08846b28ac79c05728ceffa2fdb668dc092461c13010b979484b9680695ae0e00f0748b661e92ef66aaf332954f34f65c0d47e0f8bac87
 Size (Guitar-1.3.0.tar.gz) = 29348519 bytes
+SHA1 (patch-filetype_file_src_gmtime__r.c) = 1bd8654b1a1db51443cac26b104de58536c9745c
 SHA1 (patch-src_common_jstream.h) = 02fea376301d1e215afe624026e6aed1889d6628
 SHA1 (patch-src_common_rwfile.h) = b068466022d5e7d24bddae39aa1d148fe3dc96af
 SHA1 (patch-src_platform.cpp) = 67f1abb657d499ce1e6b9272c0450219e6333dd5
diff --git a/Guitar/patches/patch-filetype_file_src_gmtime__r.c b/Guitar/patches/patch-filetype_file_src_gmtime__r.c
new file mode 100644
index 0000000000..996dfc1543
--- /dev/null
+++ b/Guitar/patches/patch-filetype_file_src_gmtime__r.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+NetBSD provides gmtime_r().
+
+--- filetype/file/src/gmtime_r.c.orig	2025-07-27 08:17:07.378630293 +0000
++++ filetype/file/src/gmtime_r.c
+@@ -1,5 +1,6 @@
+ /*	$File: gmtime_r.c,v 1.4 2022/09/24 20:30:13 christos Exp $	*/
+ 
++#ifndef __NetBSD__
+ #include "file.h"
+ #ifndef	lint
+ FILE_RCSID("@(#)$File: gmtime_r.c,v 1.4 2022/09/24 20:30:13 christos Exp $")
+@@ -17,3 +18,4 @@ gmtime_r(const time_t *t, struct tm *tm)
+ 	memcpy(tm, tmp, sizeof(*tm));
+ 	return tmp;
+ }
++#endif


Home | Main Index | Thread Index | Old Index