Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910061 - port dev-util/patchelf to macOS
Summary: port dev-util/patchelf to macOS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-08 14:53 UTC by Benda Xu
Modified: 2023-07-17 03:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)