diff --git a/ports/date/fix-uninitialized-values.patch b/ports/date/fix-uninitialized-values.patch new file mode 100644 index 00000000000000..422696e70577dc --- /dev/null +++ b/ports/date/fix-uninitialized-values.patch @@ -0,0 +1,40 @@ +diff --git a/include/date/date.h b/include/date/date.h +index 9c6f335..3967d6b 100644 +--- a/include/date/date.h ++++ b/include/date/date.h +@@ -6767,7 +6767,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, + CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width; + int tH; + int tM; +- long double S; ++ long double S{}; + read(is, ru{tH, 1, 2}, CharT{':'}, ru{tM, 1, 2}, + CharT{':'}, rld{S, 1, w}); + checked_set(H, tH, not_a_hour, is); +@@ -7202,7 +7202,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, + // "%I:%M:%S %p" + using dfs = detail::decimal_format_seconds; + CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width; +- long double S; ++ long double S{}; + int tI = not_a_hour_12_value; + int tM = not_a_minute; + read(is, ru{tI, 1, 2}, CharT{':'}, ru{tM, 1, 2}, +@@ -7258,7 +7258,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, + { + using dfs = detail::decimal_format_seconds; + CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width; +- long double S; ++ long double S{}; + read(is, rld{S, 1, width == -1 ? w : static_cast(width)}); + checked_set(s, round_i(duration{S}), + not_a_second, is); +@@ -7292,7 +7292,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, + CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width; + int tH = not_a_hour; + int tM = not_a_minute; +- long double S; ++ long double S{}; + read(is, ru{tH, 1, 2}, CharT{':'}, ru{tM, 1, 2}, + CharT{':'}, rld{S, 1, w}); + checked_set(H, tH, not_a_hour, is); diff --git a/ports/date/portfile.cmake b/ports/date/portfile.cmake index 0882961fc4507f..876e0529f6f108 100644 --- a/ports/date/portfile.cmake +++ b/ports/date/portfile.cmake @@ -14,6 +14,7 @@ vcpkg_from_github( PATCHES 0001-fix-uwp.patch 0002-fix-cmake-3.14.patch + fix-uninitialized-values.patch #Update the new version please remove this patch ) vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS diff --git a/ports/date/vcpkg.json b/ports/date/vcpkg.json index 5b2aa172d50466..35e75e42174a64 100644 --- a/ports/date/vcpkg.json +++ b/ports/date/vcpkg.json @@ -1,7 +1,7 @@ { "name": "date", "version": "3.0.1", - "port-version": 1, + "port-version": 2, "description": "A date and time library based on the C++17 header", "homepage": "https://github.com/HowardHinnant/date", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index efc94fc022287b..aa9091ecf1fa9a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1778,7 +1778,7 @@ }, "date": { "baseline": "3.0.1", - "port-version": 1 + "port-version": 2 }, "dav1d": { "baseline": "0.8.2", diff --git a/versions/d-/date.json b/versions/d-/date.json index 61c6c4941d1f1d..e845993b0951dc 100644 --- a/versions/d-/date.json +++ b/versions/d-/date.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "14d5c6822908ad2fd1d700cca2067ae4b8ef4404", + "version": "3.0.1", + "port-version": 2 + }, { "git-tree": "e281c60aee492a2be56e78ce6a53cb5db927b1dc", "version": "3.0.1",