Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611198 - dev-util/cargo-0.16.0: can't install bash_completion files during install on prefix installation
Summary: dev-util/cargo-0.16.0: can't install bash_completion files during install on ...
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:
Depends on:
Blocks:
 
Reported: 2017-02-28 11:44 UTC by Matthias Gerstner
Modified: 2017-09-09 13:33 UTC (History)
0 users

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


Attachments
patch to fix bash completion installation (cargo.diff,896 bytes, patch)
2017-02-28 11:44 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-28 11:44:18 UTC
Created attachment 465510 [details, diff]
patch to fix bash completion installation

I'm running a Gentoo prefix install and current dev-util/cargo doesn't merge for me, because the bash_completion files are not at the expected place.

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

https://github.com/mgerstner/gentoo/commit/b13211b5b22690311af4e04be7efdfd061a8ea59

I'll also attach a patch.

I'm not sure if this is the right solution, but it fixes the problem for me. I don't fully understand the cargo build system, why the bash_completion files go into usr/portage/etc. The SYSCONFDIR is correctly set to /etc in the cargo build system.
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-09-09 13:33:07 UTC
I think this should work with cargo-0.21.0, please reopen if it still fails for you.