Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910061

Summary: port dev-util/patchelf to macOS
Product: Gentoo/Alt Reporter: Benda Xu <heroxbd>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benda Xu gentoo-dev 2023-07-08 14:53:42 UTC
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
Comment 1 Fabian Groffen gentoo-dev 2023-07-09 07:59:14 UTC
Hmmm, do we need patchmacho then or something?  What is it going to ELF-patch on macOS?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-09 08:01:25 UTC
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.
Comment 3 Benda Xu gentoo-dev 2023-07-09 17:04:53 UTC
Got you.  There is no need to port patchelf to macOS.  Let's focus on meson-python instead.
Comment 4 Larry the Git Cow gentoo-dev 2023-07-17 03:42:46 UTC
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(-)