pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/fmtlib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue May  6 13:35:04 UTC 2025

Modified Files:
        pkgsrc/textproc/fmtlib: Makefile distinfo

Log Message:
fmtlib: update to 11.2.0.

# 11.2.0 - 2025-05-03

- Added the `s` specifier for `std::error_code`. It allows formatting an error
  message as a string. For example:

  ```c++
  #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`
  For example ([godbolt](https://www.godbolt.org/z/8o4b1PPn5)):

  ```c++
  #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:

  ```c++
  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

- Fixed handling of named arguments in format specs

- Added error reporting for duplicate named arguments

- Fixed formatting of `long` with `FMT_BUILTIN_TYPES=0`

- Optimized `text_style` using bit packing

- Added support for incomplete types

- Fixed a flush issue in `fmt::print` when using libstdc++

- Fixed `fmt::println` usage with `FMT_ENFORCE_COMPILE_STRING` and legacy
  compile-time checks

- Removed legacy header `fmt/core.h` from docs

- Worked around limitations of `__builtin_strlen` during constant evaluation

- Worked around a bug in MSVC v141

- Removed the `fmt_detail` namespace

- Removed specializations of `std::is_floating_point` in tests

- Fixed a CMake error when setting `CMAKE_MODULE_PATH` in the pedantic mode

- Updated the Bazel config


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/textproc/fmtlib/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/textproc/fmtlib/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/fmtlib/Makefile
diff -u pkgsrc/textproc/fmtlib/Makefile:1.24 pkgsrc/textproc/fmtlib/Makefile:1.25
--- pkgsrc/textproc/fmtlib/Makefile:1.24        Wed Feb 26 21:28:41 2025
+++ pkgsrc/textproc/fmtlib/Makefile     Tue May  6 13:35:04 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2025/02/26 21:28:41 adam Exp $
+# $NetBSD: Makefile,v 1.25 2025/05/06 13:35:04 wiz Exp $
 
-DISTNAME=      fmt-11.1.4
+DISTNAME=      fmt-11.2.0
 PKGNAME=       ${DISTNAME:S/fmt/fmtlib/}
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=fmtlib/}

Index: pkgsrc/textproc/fmtlib/distinfo
diff -u pkgsrc/textproc/fmtlib/distinfo:1.25 pkgsrc/textproc/fmtlib/distinfo:1.26
--- pkgsrc/textproc/fmtlib/distinfo:1.25        Wed Feb 26 21:28:41 2025
+++ pkgsrc/textproc/fmtlib/distinfo     Tue May  6 13:35:04 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2025/02/26 21:28:41 adam Exp $
+$NetBSD: distinfo,v 1.26 2025/05/06 13:35:04 wiz Exp $
 
-BLAKE2s (fmt-11.1.4.tar.gz) = c17a24087aeb47d5ef7f730f7317632cc3b84dac07b3c05e357cb94d3def315f
-SHA512 (fmt-11.1.4.tar.gz) = 573b7de1bd224b7b1b60d44808a843db35d4bc4634f72a9edcb52cf68e99ca66c744fd5d5c97b4336ba70b94abdabac5fc253b245d0d5cd8bbe2a096bf941e39
-Size (fmt-11.1.4.tar.gz) = 703832 bytes
+BLAKE2s (fmt-11.2.0.tar.gz) = 2ed356a1e77ca383a4071915577497fda6319a32c2433c5fe7a586ac0d15b31c
+SHA512 (fmt-11.2.0.tar.gz) = 46974efd36e613477351aa357c451cee434da797c2a505f9f86d73e394dcb35dc2dc0cda66abb98c023e8f24deac9d8e3ee6f9f6c0971cc4c00e37c34aa7f15f
+Size (fmt-11.2.0.tar.gz) = 705327 bytes



Home | Main Index | Thread Index | Old Index