commit: 5f781923d0363ad7f8e077741d04ab8577d36551 Author: Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx> AuthorDate: Tue Jun 3 18:25:12 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jun 4 00:30:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f781923
sys-fs/quota: fix musl compilation for version 4.10 Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/42428 Closes: https://github.com/gentoo/gentoo/pull/42428 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-fs/quota/files/quota-4.10-fix-building-on-musl.patch | 12 ++++++++++++ sys-fs/quota/quota-4.10.ebuild | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/sys-fs/quota/files/quota-4.10-fix-building-on-musl.patch b/sys-fs/quota/files/quota-4.10-fix-building-on-musl.patch new file mode 100644 index 000000000000..de58e0cfb465 --- /dev/null +++ b/sys-fs/quota/files/quota-4.10-fix-building-on-musl.patch @@ -0,0 +1,12 @@ +https://sourceforge.net/p/linuxquota/bugs/145/ + +--- a/setproject.c ++++ b/setproject.c +@@ -5,6 +5,7 @@ + #include <errno.h> + #include <fcntl.h> + #include <getopt.h> ++#include <libgen.h> + #include <stdbool.h> + #include <stdio.h> + #include <stdlib.h> diff --git a/sys-fs/quota/quota-4.10.ebuild b/sys-fs/quota/quota-4.10.ebuild index 88e19f2799ee..9b110634bd3d 100644 --- a/sys-fs/quota/quota-4.10.ebuild +++ b/sys-fs/quota/quota-4.10.ebuild @@ -31,6 +31,10 @@ BDEPEND="nls? ( sys-devel/gettext )" PDEPEND="rpc? ( net-nds/rpcbind )" RDEPEND+=" selinux? ( sec-policy/selinux-quota )" +PATCHES=( + "${FILESDIR}"/${PN}-4.10-fix-building-on-musl.patch +) + src_configure() { local myeconfargs=( --enable-ext2direct
