[PATCH 0/2] xfsprogs: Fix compiling against musl libc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
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@xxxxxxxxxxx>





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux