sys-fs/exfatprogs-1.2.7 fails to build on a musl/llvm profile. The compilation ends with the following message: > fsck.c:1086:32: error: unknown type name 'loff_t'; did you mean 'off_t'? > 1086 | struct exfat_dentry *dentry, loff_t dentry_off) > | ^~~~~~ > | off_t Reproducible: Always Steps to Reproduce: 1. emerge -1 =sys-fs/exfatprogs-1.2.7
Created attachment 919010 [details] emerge --info
Created attachment 919011 [details] build.log
In musl, the loff_t type is defined in fcntl.h, if _GNU_SOURCE is defined. The attached patch solves the issue. I haven't tested the patch on other profiles though.
Created attachment 919012 [details, diff] Fix compilation on musl/llvm
Please create an issue upstream. https://github.com/exfatprogs/exfatprogs/issues
Done: https://github.com/exfatprogs/exfatprogs/issues/294 After looking at exfatprogs code, the patch I posted yesterday doesn't seem to be the proper fix to the issue. I'm waiting on the maintainers output.
Thank you! Please let upstream know on the bug if the patch works for you.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=655a4215843f8a82e4442189abbd5b9e3692f08d commit 655a4215843f8a82e4442189abbd5b9e3692f08d Author: Sam James <sam@gentoo.org> AuthorDate: 2025-03-07 21:26:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-07 22:51:45 +0000 sys-fs/exfatprogs: add 1.2.8 Closes: https://bugs.gentoo.org/949819 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/exfatprogs/Manifest | 1 + sys-fs/exfatprogs/exfatprogs-1.2.8.ebuild | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+)