[packages/libfmt] - updated to 12.2.0; patch to fix 32-bit builds (when there is no native uint128_t)

qboosh qboosh at pld-linux.org
Mon Sep 14 05:44:24 CEST 2026


commit 39d6fe254e7071e26ce889496b93d85a1d283e18
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 14 05:44:36 2026 +0200

    - updated to 12.2.0; patch to fix 32-bit builds (when there is no native uint128_t)

 libfmt-uint128.patch | 12 ++++++++++++
 libfmt.spec          |  7 +++++--
 2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/libfmt.spec b/libfmt.spec
index 19ac6b9..87b92c2 100644
--- a/libfmt.spec
+++ b/libfmt.spec
@@ -1,13 +1,14 @@
 Summary:	Small, safe and fast formatting library
 Summary(pl.UTF-8):	Mała, bezpieczna i szybka biblioteka do formatowania
 Name:		libfmt
-Version:	12.1.0
+Version:	12.2.0
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/fmtlib/fmt/releases
 Source0:	https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	92eb6f492e4838e5f024ce5207beafc7
+# Source0-md5:	7be257d8bfad55bc9eabb1288ad895be
+Patch0:		%{name}-uint128.patch
 URL:		https://github.com/fmtlib/fmt
 BuildRequires:	cmake >= 3.8
 BuildRequires:	libstdc++-devel >= 6:4.7
@@ -35,6 +36,7 @@ Pliki nagłówkowe biblioteki fmt.
 
 %prep
 %setup -q -n fmt-%{version}
+%patch -P0 -p1
 
 %build
 install -d build
@@ -67,6 +69,7 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_libdir}/libfmt.so
+%{_libdir}/libfmt-c.a
 %{_includedir}/fmt
 %{_libdir}/cmake/fmt
 %{_pkgconfigdir}/fmt.pc
diff --git a/libfmt-uint128.patch b/libfmt-uint128.patch
new file mode 100644
index 0000000..941ddc2
--- /dev/null
+++ b/libfmt-uint128.patch
@@ -0,0 +1,12 @@
+--- fmt-12.2.0/include/fmt/format.h.orig	2026-06-16 07:05:35.000000000 +0200
++++ fmt-12.2.0/include/fmt/format.h	2026-09-14 05:41:44.500298260 +0200
+@@ -326,6 +326,9 @@ class uint128 {
+       -> uint128 {
+     return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_};
+   }
++  friend constexpr auto operator~(const uint128& src) -> uint128 {
++    return {~src.hi_, ~src.lo_};
++  }
+   friend FMT_CONSTEXPR auto operator+(const uint128& lhs, const uint128& rhs)
+       -> uint128 {
+     auto result = uint128(lhs);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libfmt.git/commitdiff/39d6fe254e7071e26ce889496b93d85a1d283e18



More information about the pld-cvs-commit mailing list