pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/chrono-date



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov 29 15:00:36 UTC 2026

Modified Files:
        pkgsrc/devel/chrono-date: Makefile distinfo
Added Files:
        pkgsrc/devel/chrono-date/patches: patch-include_date_date.h
Removed Files:
        pkgsrc/devel/chrono-date/patches: patch-CMakeLists.txt patch-date.pc.in

Log Message:
chrono-date: update to 3.0.6.

fix: Fix incorrect HAS_STRING_VIEW detection for C++11 builds by @abin-z in #917
fix: do not stream %X when time-of-day is absent (#393) by @owenfortincore in #920
Fix wrong time zone displayed with %c on some locales. by @cschreib-ibex in #922
CMakeLists.txt: bump minimum cmake version to 3.10 by @fkobi in #898
Fix %p (AM/PM) parsing when extracting sys_time by @Tyagiquamar in #923
Fix consistency of 12-hour and 24-hour parsing by @fhgffy in #925
Fix %D for negative years by @youdie006 in #926
Fix %F zero-filling before the minus sign of a negative year by @youdie006 in #927
Fix -Wshadow in month and weekday name parsers by @Tyagiquamar in #928
Put a single minus sign in front of negative durations by @fhgffy in #930
CMakeLists.txt: output date.pc for pkg-config [update to PR 538] by @keithbowes in #929
fix out-of-range ctype calls in from_stream, ptz and tz.cpp by @riha-dev in #931
validate TZif type and abbreviation indices in time_zone::load_data by @riha-dev in #932
Verify TLS certificates in tz.cpp's remote tzdata downloads by @riha-dev in #933
compile_fail.sh: do not exit 0 explicitly by @fkobi in #903
contain tar path traversal in iOS tzdata extraction by @riha-dev in #934
Improve compile-fail.sh by @fkobi in #935
Improve test/testit by @fkobi in #936
don't truncate wide characters to char in from_stream digit and keyword checks by @riha-dev in #937
fix out-of-bounds reads on tar entry data in iOS tzdata extraction by @riha-dev in #939
Accept RFC 9636 transition times in Posix::time_zone by @wleeaf in #941
validate the tzdata version before building shell commands from it by @riha-dev in #938
don't pop_back an empty zonelets_ when a Zone line has no name by @riha-dev in #940
reject a %j day of year that falls outside the parsed %Y by @riha-dev in #942
use the TZ string footer of zoneinfo files after the last transition by @emincan2000 in #944
reject %z offsets whose minutes are 60 or more by @riha-dev in #945
don't read u.rule_ after adjust_infos has turned it into a save by @riha-dev in #946
fix out-of-bounds read in other calendars' year_month_day_last::day by @riha-dev in #947
only subtract a parsed %z offset in utc_time from_stream by @riha-dev in #948
don't walk past the end of leap_seconds in time_zone::init_impl by @riha-dev in #949
don't index name tables with an invalid month in to_stream by @riha-dev in #950
fix out-of-bounds rule reads in find_rule after reload_tzdb by @riha-dev in #951
cap readlink at st_size in tzdb::current_zone by @riha-dev in #952


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/chrono-date/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/chrono-date/distinfo
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/chrono-date/patches/patch-CMakeLists.txt
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/chrono-date/patches/patch-date.pc.in
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/chrono-date/patches/patch-include_date_date.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/chrono-date/Makefile
diff -u pkgsrc/devel/chrono-date/Makefile:1.4 pkgsrc/devel/chrono-date/Makefile:1.5
--- pkgsrc/devel/chrono-date/Makefile:1.4       Wed Nov 11 11:52:29 2026
+++ pkgsrc/devel/chrono-date/Makefile   Sun Nov 29 15:00:35 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2026/11/11 11:52:29 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2026/11/29 15:00:35 wiz Exp $
 
-DISTNAME=      chrono-date-3.0.5
-PKGREVISION=   1
+DISTNAME=      chrono-date-3.0.6
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=HowardHinnant/}
 GITHUB_PROJECT=        date
@@ -18,12 +17,6 @@ CMAKE_CONFIGURE_ARGS+=       -DCMAKE_BUILD_TYP
 CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON
 CMAKE_CONFIGURE_ARGS+= -DBUILD_TZ_LIB=ON
 
-SUBST_CLASSES+=                pc
-SUBST_STAGE.pc=                pre-configure
-SUBST_MESSAGE.pc=      Set pkg-config file
-SUBST_FILES.pc=                date.pc.in
-SUBST_SED.pc+=         -e 's|@VERSION@|${PKGVERSION_NOREV}|g'
-
 .include "../../devel/cmake/build.mk"
 .include "../../www/curl/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"

Index: pkgsrc/devel/chrono-date/distinfo
diff -u pkgsrc/devel/chrono-date/distinfo:1.2 pkgsrc/devel/chrono-date/distinfo:1.3
--- pkgsrc/devel/chrono-date/distinfo:1.2       Tue Jul 28 23:38:30 2026
+++ pkgsrc/devel/chrono-date/distinfo   Sun Nov 29 15:00:35 2026
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2026/07/28 23:38:30 kikadf Exp $
+$NetBSD: distinfo,v 1.3 2026/11/29 15:00:35 wiz Exp $
 
-BLAKE2s (chrono-date-3.0.5.tar.gz) = 4c30d38818e9e0a44c6f64fbbe839f1f3b40b79f8a19449349d230cb4d19d28c
-SHA512 (chrono-date-3.0.5.tar.gz) = 454848525e83881273756438ece9bf67f70c391fc7c25ee50f0208e14795af9bc4b68b504836bc221ff90297d8e483d68e88f0da8296bd684788471dbd13c3cb
-Size (chrono-date-3.0.5.tar.gz) = 830280 bytes
-SHA1 (patch-CMakeLists.txt) = 4cbe1ebe6a2ff4f0af2f9f815211135d5507fac7
-SHA1 (patch-date.pc.in) = 1422d97051bbdf2022ba2aba65e0e2fa63489199
+BLAKE2s (chrono-date-3.0.6.tar.gz) = 79e3aa9f029f1002aa4c85ac75f68b5fcc6d08060918aea319e36603a6e651c9
+SHA512 (chrono-date-3.0.6.tar.gz) = c57728e85ebb39247bad18a5311e5e750ec3a18133ea95627c2cb326d57657e03926fd34c810fe881892d7ceaf5676a314d8302cba4db3e88777af5a71600262
+Size (chrono-date-3.0.6.tar.gz) = 837005 bytes
+SHA1 (patch-include_date_date.h) = 5aabf11e893a9d978ed74ac65273994bc07062ad

Added files:

Index: pkgsrc/devel/chrono-date/patches/patch-include_date_date.h
diff -u /dev/null pkgsrc/devel/chrono-date/patches/patch-include_date_date.h:1.1
--- /dev/null   Sun Nov 29 15:00:36 2026
+++ pkgsrc/devel/chrono-date/patches/patch-include_date_date.h  Sun Nov 29 15:00:35 2026
@@ -0,0 +1,35 @@
+$NetBSD: patch-include_date_date.h,v 1.1 2026/11/29 15:00:35 wiz Exp $
+
+date-3.0.6/include/date/date.h:5197:52: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
+ 5197 |                     tm.tm_zone = abbrev != nullptr ? abbrev->c_str() : nullptr;
+      |                                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
+      |                                                    |
+      |                                                    const char*
+date-3.0.6/include/date/date.h:6016:52: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
+ 6016 |                     tm.tm_zone = abbrev != nullptr ? abbrev->c_str() : nullptr;
+      |                                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
+      |                                                    |
+      |                                                    const char*
+
+https://github.com/HowardHinnant/date/issues/953
+
+--- include/date/date.h.orig   2026-11-29 14:50:20.902087124 +0000
++++ include/date/date.h
+@@ -5194,7 +5194,7 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const
+                     // short of overriding the system time zone temporarilly, we cannot fix this.
+                     // This is better handled in C++20 std::chrono.
+ #  if HAS_TM_ZONE
+-                    tm.tm_zone = abbrev != nullptr ? abbrev->c_str() : nullptr;
++                    tm.tm_zone = const_cast<char*>(abbrev != nullptr ? abbrev->c_str() : nullptr);
+                     tm.tm_gmtoff = offset_sec != nullptr ? static_cast<int>(offset_sec->count()) : 0;
+ #  endif
+                     CharT f[3] = {'%'};
+@@ -6013,7 +6013,7 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const
+                     tm.tm_hour = static_cast<int>(fds.tod.hours().count());
+                     // See comment in %c and %x formats.
+ #  if HAS_TM_ZONE
+-                    tm.tm_zone = abbrev != nullptr ? abbrev->c_str() : nullptr;
++                    tm.tm_zone = const_cast<char*>(abbrev != nullptr ? abbrev->c_str() : nullptr);
+                     tm.tm_gmtoff = offset_sec != nullptr ? static_cast<int>(offset_sec->count()) : 0;
+ #  endif
+                     CharT f[3] = {'%'};



Home | Main Index | Thread Index | Old Index