Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700400 - app-eselect/eselect-rust (with dev-lang/rust-1.39.0?) : eselect rust update --if-unset does not handle changed USE flags
Summary: app-eselect/eselect-rust (with dev-lang/rust-1.39.0?) : eselect rust update -...
Status: RESOLVED DUPLICATE of bug 688864
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-17 21:07 UTC by Christopher Head
Modified: 2020-04-19 01:12 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 Christopher Head 2019-11-17 21:07:05 UTC
In pkg_postinst, eselect rust update --if-unset is invoked. However, --if-unset means it will not do anything if I reinstall the same version of Rust I already had installed. I did that because I wanted to change USE flags (to include rustfmt which I previously did not have). This meant that eselect did not act to create the rustfmt->rustfmt-1.39.0 symlink, so I could not use rustfmt. There was also no message printed telling me I might need to eselect myself (in fact until looking into it I didn’t even know eselect was used for Rust).

Not sure if this is easy, or even sane, to implement. But it would be nice if changing the USE flag actually resulted in the new command(s) being available.

Reproducible: Always

Steps to Reproduce:
1. Install rust with USE=-rustfmt.
2. Ensure there is no /usr/bin/rustfmt.
3. Reintall the same version of rust with USE=rustfmt.
Actual Results:  
/usr/bin/rustfmt does not exist (only /usr/bin/rustfmt-1.39.0).

Expected Results:  
/usr/bin/rustfmt should exist.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-04-19 01:12:19 UTC

*** This bug has been marked as a duplicate of bug 688864 ***