Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823653 - sys-devel/mold: can't find mold wrapper
Summary: sys-devel/mold: can't find mold wrapper
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL: https://github.com/rui314/mold/issues...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-11-14 02:37 UTC by bob
Modified: 2022-09-25 04:24 UTC (History)
1 user (show)

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


Attachments
patch (lib64.patch,788 bytes, patch)
2021-11-14 02:37 UTC, bob
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bob 2021-11-14 02:37:14 UTC
Created attachment 750966 [details, diff]
patch

Mold has hardcoded path to /usr/lib (see attachment), that needs to be patched to the actual location mold's wrapper.so was installed into.

Otherwise you can't run mold as a wrapper.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-14 02:38:11 UTC
It seems more like we should just replace the lib with $(get_libdir) from the ebuild?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-14 03:17:24 UTC
Bot didn't tag it but:

From 710206365ed860b159d2620a28ba6e6b92145179 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 14 Dec 2021 02:47:12 +0000
Subject: [PATCH] sys-devel/mold: fix wrapper libdir path

Bug: https://github.com/rui314/mold/issues/127
Closes: https://bugs.gentoo.org/823653
Signed-off-by: Sam James <sam@gentoo.org>
---
 .../files/mold-0.9.6-fix-libdir-wrapper.patch | 26 +++++++++++++++++++
 ...mold-0.9.6.ebuild => mold-0.9.6-r1.ebuild} |  7 +++++
 2 files changed, 33 insertions(+)
 create mode 100644 sys-devel/mold/files/mold-0.9.6-fix-libdir-wrapper.patch
 rename sys-devel/mold/{mold-0.9.6.ebuild => mold-0.9.6-r1.ebuild} (87%)
Comment 3 Larry the Git Cow gentoo-dev 2021-12-14 11:14:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=716e8a495d874d8b5dc259d2b218e28aa7a2595a

commit 716e8a495d874d8b5dc259d2b218e28aa7a2595a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-14 10:44:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-14 11:14:01 +0000

    sys-devel/mold: really fix wrapper
    
    Bug: https://bugs.gentoo.org/823653
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/mold/{mold-0.9.6-r1.ebuild => mold-0.9.6-r2.ebuild} | 1 +
 1 file changed, 1 insertion(+)