public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/vips] f43: Fix build with glibc 2.43 which supports C23
Date: Sat, 13 Jun 2026 12:56:58 GMT	[thread overview]
Message-ID: <178135541819.1.10410048679657975579.rpms-vips-e41ba796d2f9@fedoraproject.org> (raw)

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)

                 reply	other threads:[~2026-06-13 12:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178135541819.1.10410048679657975579.rpms-vips-e41ba796d2f9@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox