]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
fmt: Update to version 11.2.0
authorAdolf Belka <adolf.belka@ipfire.org>
Sat, 17 May 2025 11:41:41 +0000 (13:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 May 2025 15:02:37 +0000 (15:02 +0000)
- Update from version 11.1.3 to 11.2.0
- Update of rootfile
- Changelog
    11.2.0
Added the s specifier for std::error_code. It allows formatting an error
 message as a string. For example:
#include <fmt/std.h>
int main() {
  auto ec = std::make_error_code(std::errc::no_such_file_or_directory);
  fmt::print("{:s}\n", ec);
}
prints
No such file or directory
 (The actual message is platform-specific.)
Fixed formatting of std::chrono::local_time and tm (#3815, #4350). For example
 (godbolt):
#include <fmt/chrono.h>
int main() {
  std::chrono::zoned_time zt(
    std::chrono::current_zone(),
    std::chrono::system_clock::now());
  fmt::print("{}", zt.get_local_time());
}
 is now formatted consistenly across platforms.
Added diagnostics for cases when timezone information is not available. For
 example:
fmt::print("{:Z}", std::chrono::local_seconds());
 now gives a compile-time error.
Deprecated fmt::localtime in favor of std::localtime.
Fixed compilation with GCC 15 and C++20 modules enabled (#4347). Thanks @tkhyn.
Fixed handling of named arguments in format specs (#4360, #4361). Thanks
 @dinomight.
Added error reporting for duplicate named arguments (#4367). Thanks @dinomight.
Fixed formatting of long with FMT_BUILTIN_TYPES=0 (#4375, #4394).
Optimized text_style using bit packing (#4363). Thanks @LocalSpook.
Added support for incomplete types (#3180, #4383). Thanks @LocalSpook.
Fixed a flush issue in fmt::print when using libstdc++ (#4398).
Fixed fmt::println usage with FMT_ENFORCE_COMPILE_STRING and legacy
 compile-time checks (#4407). Thanks @madmaxoft.
Removed legacy header fmt/core.h from docs (#4421, #4422). Thanks
 @krzysztofkortas.
Worked around limitations of __builtin_strlen during constant evaluation
 (#4423, #4429). Thanks @brevzin.
Worked around a bug in MSVC v141 (#4412, #4413). Thanks @hirohira9119.
Removed the fmt_detail namespace (#4324).
Removed specializations of std::is_floating_point in tests (#4417).
Fixed a CMake error when setting CMAKE_MODULE_PATH in the pedantic mode
 (#4426). Thanks @rlalik.
Updated the Bazel config (#4400). Thanks @Vertexwahn.
    11.1.4
    Fixed ABI compatibility with earlier 11.x versions on Windows (#4359).
    Improved the logic of switching between fixed and exponential format for float (#3649).
    Moved is_compiled_string to the public API (#4342). Thanks @SwooshyCueb.
    Simplified implementation of operator""_cf (#4349). Thanks @LocalSpook.
    Fixed __builtin_strlen detection (#4329). Thanks @LocalSpook.
    Fixed handling of BMI paths with the Ninja generator (#4344). Thanks @tkhyn.
    Fixed gcc 8.3 compile errors (#4331, #4336). Thanks @sergiud.
    Fixed a bogus MSVC warning (#4356). Thanks @dinomight.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/fmt
lfs/fmt

index 2f0efea59cec641fe9b9fe314288c95cd10a0852..26f4cf99f21ca585cadcb1ee0a4bb14aebb7ba19 100644 (file)
@@ -20,5 +20,5 @@
 #usr/lib/cmake/fmt/fmt-targets.cmake
 #usr/lib/libfmt.so
 usr/lib/libfmt.so.11
-usr/lib/libfmt.so.11.1.3
+usr/lib/libfmt.so.11.2.0
 #usr/lib/pkgconfig/fmt.pc
diff --git a/lfs/fmt b/lfs/fmt
index 39e1c17269e122b61be6b4fd661f33f9e366368b..09ac04095a478c6aa4848c71dfc34129ad49ea57 100644 (file)
--- a/lfs/fmt
+++ b/lfs/fmt
@@ -26,7 +26,7 @@ include Config
 
 SUMMARY    = Open-source formatting library for C++
 
-VER        = 11.1.3
+VER        = 11.2.0
 
 THISAPP    = fmt-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -34,7 +34,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = fmt
-PAK_VER    = 7
+PAK_VER    = 8
 
 DEPS       =
 
@@ -46,7 +46,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = ee7ff4e8fceb2aab03d91098d728de45d31284124d2ddb2644a6ca4f7e25fb2be6d3d66948aff663531345f3da1bb3740f15883bf2631ac436061a19eec88bde
+$(DL_FILE)_BLAKE2 = 59fc93577eebe11b003ec3fbaaaf1d955117f7aa389a899d20364f44034e0c8073f195ef33d8bee14eda804ea6102f35047c2ca5eab7d645e9a2accbafba61bf
 
 install : $(TARGET)