From patchwork Sat May 17 11:41:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 8761 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4b02974CyLz3wty for ; Sat, 17 May 2025 11:41:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E5" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4b02973WjCz6Tt for ; Sat, 17 May 2025 11:41:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4b02972mjLz3367 for ; Sat, 17 May 2025 11:41:47 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4b02943rJkz2xWD for ; Sat, 17 May 2025 11:41:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4b02936Q6HzlL; Sat, 17 May 2025 11:41:43 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1747482104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=e4RGO7hTLdrmIBs/st2aKToIONqM3KeHVDO6hDMgC2Y=; b=ML1uXziUICuN8+z5AkDdNSeHi2AAZ4H/cLgk9HK0iBJuTCrZUOnhfQYN8fc/lp0dHV20us Xbjo4LQcwgibekCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1747482104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=e4RGO7hTLdrmIBs/st2aKToIONqM3KeHVDO6hDMgC2Y=; b=C4tOzGy5GQ/sAcTwFx3ZyeNt1gnQ3Y2zDHI/RvG2Yto3rQA+2QpTazzuqcH7YE0D9Mqnd6 sYcCftmUWJtvhC0LqxfrC1Wl/mJ6tlvPwWnDHUHKUklzcncfuoUrrUYcdi2FOmMs3TdYLK 2PnisrvNoIz9gjJ2AjlwCB/dwo45hOym0WEw4Qm1XCJA8XlNXaOyq5OxNaVt6Lz3Wjg2bb qysJpqos9xHkR8pZaoPuoYKghwfII+onnHmZG3Eha/qSI1JKq7EizHErAKiFFc4yyuNqIu NS4Y06QwrDm6Xx3Ie6tkKtuctUgi0N3NLt2Yd+cG+/5piM1pa4szUAUEdzOq/w== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] fmt: Update to version 11.2.0 Date: Sat, 17 May 2025 13:41:41 +0200 Message-ID: <20250517114141.3280254-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - 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 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 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 --- config/rootfiles/packages/fmt | 2 +- lfs/fmt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/packages/fmt b/config/rootfiles/packages/fmt index 2f0efea59..26f4cf99f 100644 --- a/config/rootfiles/packages/fmt +++ b/config/rootfiles/packages/fmt @@ -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 39e1c1726..09ac04095 100644 --- 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)