Summary: | sys-fs/xfsprogs-6.10.0: missing cast in /usr/include/xfs/xfs_fs.h(xfs_getparents_next_rec) causes error in C++ compilations | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, kde |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugzilla.kernel.org/show_bug.cgi?id=219203 https://bugs.gentoo.org/show_bug.cgi?id=938576 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matt Whitlock
2024-08-27 20:49:51 UTC
Making this change allows net-libs/libktorrent-24.08.0 to build successfully: --- /usr/include/xfs/xfs_fs.h +++ /usr/include/xfs/xfs_fs.h @@ -912,7 +912,7 @@ if (next >= end) return NULL; - return next; + return (struct xfs_getparents_rec *)next; } /* Iterate through this file handle's directory parent pointers. */ Reported upstream: https://bugzilla.kernel.org/show_bug.cgi?id=219203 Oh, I'd just reported it upstream because of you but just saw https://bugzilla.kernel.org/show_bug.cgi?id=219203. Oops. This also, interestingly, exposes automagic use in libktorrent. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56527dba237030fc69ac2bb4c6725a5ac58a7e16 commit 56527dba237030fc69ac2bb4c6725a5ac58a7e16 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-27 23:42:38 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-27 23:43:47 +0000 sys-fs/xfsprogs: fix C++ compat in headers Closes: https://bugs.gentoo.org/938569 Thanks-to: Matt Whitlock <gentoo@mattwhitlock.name> Signed-off-by: Sam James <sam@gentoo.org> .../xfsprogs/files/xfsprogs-6.10.0-c++-void.patch | 46 ++++++++++++++++++++++ ...-6.10.0-r1.ebuild => xfsprogs-6.10.0-r2.ebuild} | 4 ++ 2 files changed, 50 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a25a74515446fa910869bd2834bf513341fc44 commit e5a25a74515446fa910869bd2834bf513341fc44 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-09-17 16:44:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-09-17 16:44:24 +0000 sys-fs/xfsprogs: add 6.10.1 It's equivalent to 6.10.0-r2. Bug: https://bugs.gentoo.org/938569 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/xfsprogs/Manifest | 1 + sys-fs/xfsprogs/xfsprogs-6.10.1.ebuild | 110 +++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) |