public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/vips] f43: Fix build with glibc 2.43 which supports C23
@ 2026-06-13 12:56 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-06-13 12:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/vips
Branch : f43
Commit : e41ba796d2f919a89d11759fcc353ae642fd1b90
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-01-20T22:42:01+09:00
Stats  : +32/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/vips/c/e41ba796d2f919a89d11759fcc353ae642fd1b90?branch=f43

Log:
Fix build with glibc 2.43 which supports C23

---
diff --git a/pr-4836.patch b/pr-4836.patch
new file mode 100644
index 0000000..7554b66
--- /dev/null
+++ b/pr-4836.patch
@@ -0,0 +1,28 @@
+From b46ef77d06308fba3441aea0a5b47ac343d8a57b Mon Sep 17 00:00:00 2001
+From: Kleis Auke Wolthuizen <github@kleisauke.nl>
+Date: Sat, 17 Jan 2026 15:07:59 +0100
+Subject: [PATCH] memory: fix `VIPS_FREEF` for expression-like macros
+
+Ensure the macro works correctly when F expands to an expression,
+such as `g_free()` using `free_sized()` (as available in the
+upcoming glibc 2.43).
+
+Resolves: #4835.
+---
+ ChangeLog                     | 1 +
+ libvips/include/vips/memory.h | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libvips/include/vips/memory.h b/libvips/include/vips/memory.h
+index 93e669340b..7073d1ea6a 100644
+--- a/libvips/include/vips/memory.h
++++ b/libvips/include/vips/memory.h
+@@ -41,7 +41,7 @@ extern "C" {
+ 	G_STMT_START \
+ 	{ \
+ 		if (S) { \
+-			(void) F((S)); \
++			(void) (F((S))); \
+ 			(S) = 0; \
+ 		} \
+ 	} \

diff --git a/vips.spec b/vips.spec
index 7e38cc9..88d8cf4 100644
--- a/vips.spec
+++ b/vips.spec
@@ -12,7 +12,11 @@ URL:		https://www.libvips.org/
 Source0:	https://github.com/libvips/libvips/releases/download/v%{version}/%{name}-%{version}.tar.xz
 
 # https://github.com/libvips/libvips/pull/4816
+# Fix vips_thumbnail behavior on s390x
 Patch0:		pr-4816.patch
+# https://github.com/libvips/libvips/pull/4836
+# Fix build with glibc 2.43 supporting C23
+Patch1:		pr-4836.patch
 
 BuildRequires:	meson
 BuildRequires:	pkgconfig(glib-2.0)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-13 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 12:56 [rpms/vips] f43: Fix build with glibc 2.43 which supports C23 Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox