pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/spdlog
Module Name: pkgsrc
Committed By: tnn
Date: Sun Apr 12 20:28:26 UTC 2026
Modified Files:
pkgsrc/devel/spdlog: distinfo
Added Files:
pkgsrc/devel/spdlog/patches: patch-include_spdlog_details_os-inl.h
Log Message:
spdlog: work around lack of tm_gmtoff on SunOS
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/spdlog/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/spdlog/patches/patch-include_spdlog_details_os-inl.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/spdlog/distinfo
diff -u pkgsrc/devel/spdlog/distinfo:1.26 pkgsrc/devel/spdlog/distinfo:1.27
--- pkgsrc/devel/spdlog/distinfo:1.26 Mon Jan 5 18:20:47 2026
+++ pkgsrc/devel/spdlog/distinfo Sun Apr 12 20:28:26 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.26 2026/01/05 18:20:47 adam Exp $
+$NetBSD: distinfo,v 1.27 2026/04/12 20:28:26 tnn Exp $
BLAKE2s (spdlog-1.17.0.tar.gz) = c3eb8080cd7b93997428610362c43277570974edc3d4cda79ef7c3659ee6f16f
SHA512 (spdlog-1.17.0.tar.gz) = 8df117055d19ff21c9c9951881c7bdf27cc0866ea3a4aa0614b2c3939cedceab94ac9abaa63dc4312b51562b27d708cb2f014c68c603fd1c1051d3ed5c1c3087
Size (spdlog-1.17.0.tar.gz) = 281801 bytes
SHA1 (patch-CMakeLists.txt) = 3a8487ad4613817fa88eafd7a4a56e286aac0619
+SHA1 (patch-include_spdlog_details_os-inl.h) = c69bed7278f2d9a04df89abe796aa999aefa7c34
SHA1 (patch-include_spdlog_tweakme.h) = 0e3f16aaf013535331a11be523dd731503c12717
Added files:
Index: pkgsrc/devel/spdlog/patches/patch-include_spdlog_details_os-inl.h
diff -u /dev/null pkgsrc/devel/spdlog/patches/patch-include_spdlog_details_os-inl.h:1.1
--- /dev/null Sun Apr 12 20:28:26 2026
+++ pkgsrc/devel/spdlog/patches/patch-include_spdlog_details_os-inl.h Sun Apr 12 20:28:26 2026
@@ -0,0 +1,22 @@
+$NetBSD: patch-include_spdlog_details_os-inl.h,v 1.1 2026/04/12 20:28:26 tnn Exp $
+
+SunOS does not have tm_gmtoff
+
+--- include/spdlog/details/os-inl.h.orig 2026-04-12 20:26:15.597056433 +0000
++++ include/spdlog/details/os-inl.h
+@@ -260,6 +260,15 @@ SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm
+ auto offset_seconds = utc_time_t - local_time_t;
+ return static_cast<int>(offset_seconds / 60);
+ }
++#elif defined(__sun)
++SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm) {
++ tzset();
++ int offset = -static_cast<int>(timezone / 60);
++ if (tm.tm_isdst > 0) {
++ offset += 60;
++ }
++ return offset;
++}
+ #else
+ // On unix simply use tm_gmtoff
+ SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm) {
Home |
Main Index |
Thread Index |
Old Index