Now it is a dependence of dev-python/meson-python, which is introduced by dev-python/numpy-1.25. Just adding the keywords results in a build error of missing elf.h header. Reproducible: Always
Hmmm, do we need patchmacho then or something? What is it going to ELF-patch on macOS?
Looks like it handles macho ok: https://github.com/mesonbuild/meson-python/blob/ecb9de003ed8d2fc0dc63c68050a646c954c070d/mesonpy/_dylib.py. So we just need to tweak the meson-python dep.
Got you. There is no need to port patchelf to macOS. Let's focus on meson-python instead.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f3934b5f99e5d861989e95d58105a5ceb83cfc9 commit 8f3934b5f99e5d861989e95d58105a5ceb83cfc9 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2023-07-17 03:38:28 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2023-07-17 03:42:35 +0000 dev-python/meson-python: donot depend on dev-util/patchelf for Darwin. kernel_Darwin uses Mach-O binary formats. No ELF patch is needed. Bug: https://bugs.gentoo.org/910061 Signed-off-by: Benda Xu <heroxbd@gentoo.org> .../{meson-python-0.13.2.ebuild => meson-python-0.13.2-r1.ebuild} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)