Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611118 - dev-lang/rust-1.15.1: Files not found during install on prefix installation
Summary: dev-lang/rust-1.15.1: Files not found during install on prefix installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 673710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-27 16:03 UTC by Matthias Gerstner
Modified: 2019-05-15 07:52 UTC (History)
2 users (show)

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


Attachments
patch to fix rust installation on prefix installs (rust.patch,1.29 KB, patch)
2017-02-27 16:03 UTC, Matthias Gerstner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Gerstner 2017-02-27 16:03:34 UTC
Created attachment 465418 [details, diff]
patch to fix rust installation on prefix installs

I'm running a Gentoo prefix install and current dev-lang/rust doesn't merge for me, because some install statements don't respect the prefix.

I've created and tested a patch that you can find here:

https://github.com/mgerstner/gentoo/commit/239c64629320ab9fa2dd8e33a472fdf3727901c7

I'll also attach the patch.
Comment 1 Matthias Gerstner 2017-02-27 16:05:33 UTC
One more thing: The change of LDPATH and MANPATH in my patch are necessary during runtime for rust to work correctly. Without the LDPATH change 'rustc' will complain about not finding 'librustc_driver-570da8f8.so'.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-05-14 13:01:01 UTC
Can anyone confirm whether this is still an issue on recent Rust builds?
Comment 3 Matthias Gerstner 2018-06-04 11:18:49 UTC
(In reply to Dirkjan Ochtman from comment #2)
> Can anyone confirm whether this is still an issue on recent Rust builds?

I recently stopped using the prefix installation so I can't easily test this anymore. Sorry.
Comment 4 Emil Medve 2018-09-18 20:42:43 UTC
(In reply to Dirkjan Ochtman from comment #2)
> Can anyone confirm whether this is still an issue on recent Rust builds?

Still seeing this with rust-1.28.0-r1:

> mv: cannot stat '/.../gentoo/var/tmp/portage/dev-lang/rust-1.28.0-r1/image//usr/bin/rustc': No such file or directory


Cheers,
Comment 5 Nathaniel Reindl 2019-04-14 08:01:36 UTC
(In reply to Emil Medve from comment #4)
> Still seeing this with rust-1.28.0-r1:
I just hit this on dev-lang/rust-1.34.0-r1.
Comment 6 Larry the Git Cow gentoo-dev 2019-04-14 09:22:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=798aac56ff17973cdf1343e9f1d088b499c49074

commit 798aac56ff17973cdf1343e9f1d088b499c49074
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-04-14 09:20:42 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-04-14 09:22:29 +0000

    dev-lang/rust: fix for Prefix, based on patch by Matthias Gerstner
    
    Closes: https://bugs.gentoo.org/611118
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>
    Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-lang/rust/rust-1.34.0-r1.ebuild | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)
Comment 7 Fabian Groffen gentoo-dev 2019-05-15 07:52:35 UTC
*** Bug 673710 has been marked as a duplicate of this bug. ***