Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934515 - app-arch/xz-utils-5.6.2-r1 on macOS: the ebuild hardcodes ".so"
Summary: app-arch/xz-utils-5.6.2-r1 on macOS: the ebuild hardcodes ".so"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: ARM64 OS X
: Normal minor
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 14:29 UTC by ZongyuZ
Modified: 2024-06-18 15:49 UTC (History)
1 user (show)

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


Attachments
a small patch (xz-utils-5.6.2-get_libname.patch,787 bytes, patch)
2024-06-18 14:30 UTC, ZongyuZ
Details | Diff
the emerge --info output (emerge--info.txt,5.79 KB, text/plain)
2024-06-18 14:31 UTC, ZongyuZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZongyuZ 2024-06-18 14:29:07 UTC
In the new ebuild, portage checks the existence of "liblzma.so".
However, on macOS, it is "liblzma.dylib".

IMO we can use `get_libname` here.

Reproducible: Always

Steps to Reproduce:
1. find and enter a macOS prefix
2. emerge xz-utils
Comment 1 ZongyuZ 2024-06-18 14:30:36 UTC
Created attachment 896027 [details, diff]
a small patch
Comment 2 ZongyuZ 2024-06-18 14:31:10 UTC
Created attachment 896028 [details]
the emerge --info output
Comment 3 Larry the Git Cow gentoo-dev 2024-06-18 15:49:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f4b5440ef1e9b77b465dcaf0a0e104238ff6ed8

commit 3f4b5440ef1e9b77b465dcaf0a0e104238ff6ed8
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-06-18 15:45:38 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-06-18 15:49:06 +0000

    app-arch/xz-utils: unbreak install on macOS
    
    Fix for bug 934370 added a sanity check, but since Mach-O targets have
    different naming for shared libraries, this caused the installation to
    fail even though the build was fine.
    
    Thanks ZongyuZ for the patch for this in bug #934515 using get_libname
    function to make this work on macOS too.
    
    Closes: https://bugs.gentoo.org/934515
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-arch/xz-utils/xz-utils-5.6.2-r1.ebuild | 8 ++++----
 app-arch/xz-utils/xz-utils-9999.ebuild     | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)