diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /devel/spdlog/files/patch-include_spdlog_details_os-inl.h | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/spdlog/files/patch-include_spdlog_details_os-inl.h')
| -rw-r--r-- | devel/spdlog/files/patch-include_spdlog_details_os-inl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/spdlog/files/patch-include_spdlog_details_os-inl.h b/devel/spdlog/files/patch-include_spdlog_details_os-inl.h new file mode 100644 index 000000000000..7a620b04c1c2 --- /dev/null +++ b/devel/spdlog/files/patch-include_spdlog_details_os-inl.h @@ -0,0 +1,23 @@ +The calculate_gmt_offset attempt is a botch. It gets localtm passed in from the +self-test's yesterday, and then calls time() anew to obtain ::gmtime_r() by way of details::os::gmtime(), +and that cannot possibly work. + +https://github.com/gabime/spdlog/issues/3483 + +Fix: Disable the non-working code and use tm_gmtoff instead. + +--- include/spdlog/details/os-inl.h.orig 2025-10-11 12:53:05 UTC ++++ include/spdlog/details/os-inl.h +@@ -264,11 +264,7 @@ SPDLOG_INLINE int utc_minutes_offset(const std::tm &tm + return offset; + #else + +- #if defined(sun) || defined(__sun) || defined(_AIX) || \ +- (defined(__NEWLIB__) && !defined(__TM_GMTOFF)) || \ +- (!defined(__APPLE__) && !defined(_BSD_SOURCE) && !defined(_GNU_SOURCE) && \ +- (!defined(_POSIX_VERSION) || (_POSIX_VERSION < 202405L))) +- // 'tm_gmtoff' field is BSD extension and it's missing on SunOS/Solaris ++ #if 0 + struct helper { + static long int calculate_gmt_offset(const std::tm &localtm = details::os::localtime(), + const std::tm &gmtm = details::os::gmtime()) { |
