public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Pavel Reichl <preichl@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/xfsprogs] rawhide: Fix FTBFS on i686
Date: Wed, 21 Oct 2026 12:21:15 GMT [thread overview]
Message-ID: <179258527515.1.15547156307641918688.rpms-xfsprogs-9dfd9e2e7eb3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/xfsprogs
Branch : rawhide
Commit : 9dfd9e2e7eb3a8b6b0ace006e86cdf1579b38a4c
Author : Pavel Reichl <preichl@redhat.com>
Date : 2026-10-21T14:19:11+02:00
Stats : +76/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/xfsprogs/c/9dfd9e2e7eb3a8b6b0ace006e86cdf1579b38a4c?branch=rawhide
Log:
Fix FTBFS on i686
Add upstream patch to fix conflicting xfs_trans_mod_sb() declarations
that broke builds on 32-bit architectures (i686). The conflict was
between stale declaration in xfs_platform.h (using long) and newer
declaration from kernel's xfs_trans.h (using int64_t).
Resolves: rhbz#2555429
Signed-off-by: Pavel Reichl <preichl@redhat.com>
---
diff --git a/20261021_aalbersh_libxfs_remove_stale_xfs_trans_mod_sb_declaration.patch b/20261021_aalbersh_libxfs_remove_stale_xfs_trans_mod_sb_declaration.patch
new file mode 100644
index 0000000..f1b4aab
--- /dev/null
+++ b/20261021_aalbersh_libxfs_remove_stale_xfs_trans_mod_sb_declaration.patch
@@ -0,0 +1,69 @@
+From git@z Thu Jan 1 00:00:00 1970
+Subject: [PATCH] libxfs: remove stale xfs_trans_mod_sb() declaration
+From: Andrey Albershteyn <aalbersh@kernel.org>
+Date: Wed, 21 Oct 2026 10:59:22 +0200
+Message-Id: <20261021085921.56883-2-aalbersh@kernel.org>
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+The fa19604607c1 added xfs_trans.h which declares xfs_trans_mod_sb(),
+this function was already declared in xfs_platoform.h. They have
+conflicting type of the last 'delta' argument (stale long, newer int64_t
+from kernel's xfs_trans.h).
+
+This breaks on systems with 32-bit long (e.g. i686) but works fine on 64-bit
+as these are basically the same definitions there.
+
+./libxfs_api_defs.h:390:41: error: conflicting types for 'libxfs_trans_mod_sb'; have 'void(struct xfs_trans *, uint, long int)' {aka 'void(struct xfs_trans *, unsigned int, long int)'}
+ 390 | #define xfs_trans_mod_sb libxfs_trans_mod_sb
+ | ^~~~~~~~~~~~~~~~~~~
+xfs_platform.h:411:6: note: in expansion of macro 'xfs_trans_mod_sb'
+ 411 | void xfs_trans_mod_sb(struct xfs_trans *, uint, long);
+ | ^~~~~~~~~~~~~~~~
+./libxfs_api_defs.h:390:41: note: previous declaration of 'libxfs_trans_mod_sb' with type 'void(xfs_trans_t *, uint, int64_t)' {aka 'void(struct xfs_trans *, unsigned int, long long int)'}
+ 390 | #define xfs_trans_mod_sb libxfs_trans_mod_sb
+ | ^~~~~~~~~~~~~~~~~~~
+./xfs_trans.h:173:17: note: in expansion of macro 'xfs_trans_mod_sb'
+ 173 | void xfs_trans_mod_sb(xfs_trans_t *, uint, int64_t);
+ | ^~~~~~~~~~~~~~~~
+
+Fix by removing stale definition and updating declaration to int64_t.
+
+Fixes: fa19604607c1 ("libxfs: use xfs_trans.h from the kernel source")
+Reported-by: Pavel Reichl <preichl@redhat.com>
+Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
+---
+ libxfs/trans.c | 2 +-
+ libxfs/xfs_platform.h | 2 --
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/libxfs/trans.c b/libxfs/trans.c
+index c509ca113111..920f0eba7519 100644
+--- a/libxfs/trans.c
++++ b/libxfs/trans.c
+@@ -845,7 +845,7 @@ void
+ libxfs_trans_mod_sb(
+ xfs_trans_t *tp,
+ uint field,
+- long delta)
++ int64_t delta)
+ {
+ switch (field) {
+ case XFS_TRANS_SB_RES_FDBLOCKS:
+diff --git a/libxfs/xfs_platform.h b/libxfs/xfs_platform.h
+index 4f4990a20dad..80ff969b9f27 100644
+--- a/libxfs/xfs_platform.h
++++ b/libxfs/xfs_platform.h
+@@ -408,8 +408,6 @@ int libxfs_mod_incore_sb(struct xfs_mount *, int, int64_t, int);
+ /* percpu counters in mp are #defined to the superblock sb_ counters */
+ #define xfs_reinit_percpu_counters(mp)
+
+-void xfs_trans_mod_sb(struct xfs_trans *, uint, long);
+-
+ void xfs_verifier_error(struct xfs_buf *bp, int error,
+ xfs_failaddr_t failaddr);
+ void xfs_inode_verifier_error(struct xfs_inode *ip, int error,
+--
+2.54.0
+
diff --git a/xfsprogs.spec b/xfsprogs.spec
index 4cbca07..cd94359 100644
--- a/xfsprogs.spec
+++ b/xfsprogs.spec
@@ -1,7 +1,7 @@
Summary: Utilities for managing the XFS filesystem
Name: xfsprogs
Version: 7.2.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL-1.0-or-later AND LGPL-2.1-or-later
URL: https://xfs.wiki.kernel.org
Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
@@ -30,6 +30,8 @@ Provides: /usr/sbin/fsck.xfs
Provides: /usr/sbin/mkfs.xfs
%endif
+Patch0: 20261021_aalbersh_libxfs_remove_stale_xfs_trans_mod_sb_declaration.patch
+
%description
A set of commands to use the XFS filesystem, including mkfs.xfs.
@@ -159,6 +161,10 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xfsprogs/
%{_libdir}/*.so
%changelog
+* Wed Oct 21 2026 Pavel Reichl <preichl@redhat.com> - 7.2.1-2
+- Fix FTBFS on i686
+- Related: rhbz#2555429
+
* Tue Oct 20 2026 Pavel Reichl <preichl@redhat.com> - 7.2.1-1
- Related: rhbz#2555429
reply other threads:[~2026-10-21 12:21 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=179258527515.1.15547156307641918688.rpms-xfsprogs-9dfd9e2e7eb3@fedoraproject.org \
--to=preichl@redhat.com \
--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