linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] xfsprogs: Fix compiling against musl libc
@ 2025-08-09 17:13 Johannes Nixdorf
  2025-08-09 17:13 ` [PATCH 1/2] configure: Base NEED_INTERNAL_STATX on libc headers first Johannes Nixdorf
  2025-08-09 17:13 ` [PATCH 2/2] libfrog: Define STATX__RESERVED if not provided by the system Johannes Nixdorf
  0 siblings, 2 replies; 7+ messages in thread
From: Johannes Nixdorf @ 2025-08-09 17:13 UTC (permalink / raw)
  To: XFS Development Team; +Cc: Johannes Nixdorf

The musl libc statx interface is provided independently from the
kernel headers, so not all defines from the kernel header (here:
STATX__RESERVED) are exported, and checking linux/stat.h as in the
current configure test checking for newest additions to struct statx
will not provide a result that is consistent with the actual code
using the libc interface.

On Alpine Linux this is already fixed by providing the defines
OVERRIDE_SYSTEM_STATX and STATX__RESERVED manually instead of fixing
up the autodetection (OVERRIDE_SYSTEM_STATX) and providing a fallback
(STATX__RESERVED) [1].

[1]: https://gitlab.alpinelinux.org/alpine/aports/-/blob/8ff6aa1e459a75b66375f56269fce43ca2c2f9bf/main/xfsprogs/APKBUILD#L27

Signed-off-by: Johannes Nixdorf <johannes@nixdorf.dev>
---
Johannes Nixdorf (2):
      configure: Base NEED_INTERNAL_STATX on libc headers first
      libfrog: Define STATX__RESERVED if not provided by the system

 libfrog/statx.h       |  5 ++++-
 m4/package_libcdev.m4 | 10 +++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)
---
base-commit: 854665693e6770c0730c1354871f08d01be6a333
change-id: 20250809-musl-fixes-99160afadcdf

Best regards,
-- 
Johannes Nixdorf <johannes@nixdorf.dev>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-28  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-09 17:13 [PATCH 0/2] xfsprogs: Fix compiling against musl libc Johannes Nixdorf
2025-08-09 17:13 ` [PATCH 1/2] configure: Base NEED_INTERNAL_STATX on libc headers first Johannes Nixdorf
2025-08-11 10:42   ` Christoph Hellwig
2025-08-28  9:11   ` Petr Vaněk
2025-08-09 17:13 ` [PATCH 2/2] libfrog: Define STATX__RESERVED if not provided by the system Johannes Nixdorf
2025-08-11 10:43   ` Christoph Hellwig
2025-08-28  9:12   ` Petr Vaněk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).