Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671150 - dev-lang/rust-1.30.1 file collision with dev-util/cargo-0.30.0
Summary: dev-lang/rust-1.30.1 file collision with dev-util/cargo-0.30.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
: 664286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-14 20:34 UTC by Chris
Modified: 2018-11-15 12:40 UTC (History)
5 users (show)

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


Attachments
Build log (dev-lang:rust-1.30.1:20181114-184045.log,962.99 KB, text/x-log)
2018-11-14 20:34 UTC, Chris
Details
emerge --info (emerge-info,5.88 KB, text/plain)
2018-11-14 20:35 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2018-11-14 20:34:30 UTC
Created attachment 555102 [details]
Build log

Emerging dev-lang/rust-1.30.0 fails due to file collision as described in the following QA notice:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/share/zsh/site-functions/_cargo
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-util/cargo-0.30.0:0::gentoo
 *      /usr/share/zsh/site-functions/_cargo
 * 
 * Package 'dev-lang/rust-1.30.1' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.
Comment 1 Chris 2018-11-14 20:35:44 UTC
Created attachment 555104 [details]
emerge --info
Comment 2 Chris 2018-11-14 20:40:53 UTC
Correct version of rust is 1.30.1, there was a typo in the original post.
Comment 3 Juergen Rose 2018-11-14 20:45:46 UTC
I have the smae issue.
Comment 4 Juergen Rose 2018-11-14 22:11:26 UTC
Deleting cargo can be used as a workaround.
Comment 5 cyrillic 2018-11-14 22:13:54 UTC
You can just unmerge dev-util/cargo now because it is provided by dev-lang/rust
Comment 6 Andreas Sturmlechner gentoo-dev 2018-11-15 00:00:59 UTC
Soft blockers don't work when not in RDEPEND.
Comment 7 jeremy mills 2018-11-15 01:03:35 UTC
im experiencing this as well. so we dont need cargo anymore and can just emerge -C it or am i misunderstanding the workaround?
Comment 8 Larry the Git Cow gentoo-dev 2018-11-15 01:20:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=107cec48583866aea34a98178763cabb7eb74606

commit 107cec48583866aea34a98178763cabb7eb74606
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-11-15 01:12:10 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-11-15 01:19:53 +0000

    dev-lang/rust-bin: move soft blockers to RDEPEND
    
    Closes: https://bugs.gentoo.org/671150
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    RepoMan-Options: --force
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 ...bin-1.29.1.ebuild => rust-bin-1.29.1-r1.ebuild} | 23 +++++++++++-----------
 ...bin-1.29.2.ebuild => rust-bin-1.29.2-r1.ebuild} | 23 +++++++++++-----------
 ...bin-1.30.1.ebuild => rust-bin-1.30.1-r1.ebuild} | 17 ++++++++--------
 3 files changed, 30 insertions(+), 33 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76023b2a81ae1927ec5857256fb65d1bec61c509

commit 76023b2a81ae1927ec5857256fb65d1bec61c509
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-11-15 00:50:27 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-11-15 01:19:51 +0000

    dev-lang/rust: move soft blockers to RDEPEND
    
    Closes: https://bugs.gentoo.org/671150
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    RepoMan-Options: --force
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/rust/{rust-1.29.1.ebuild => rust-1.29.1-r1.ebuild} | 10 +++++-----
 dev-lang/rust/{rust-1.29.2.ebuild => rust-1.29.2-r1.ebuild} | 10 +++++-----
 dev-lang/rust/{rust-1.30.1.ebuild => rust-1.30.1-r1.ebuild} | 10 +++++-----
 3 files changed, 15 insertions(+), 15 deletions(-)
Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-11-15 08:14:38 UTC
Sorry about that, and thanks for cleaning up after me. I remember wondering about how this should work, but was in a bit too much of a hurry to get it done yesterday. :(
Comment 10 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-11-15 10:40:31 UTC
*** Bug 664286 has been marked as a duplicate of this bug. ***
Comment 11 Juergen Rose 2018-11-15 11:23:32 UTC
(In reply to jeremy mills from comment #7)
> im experiencing this as well. so we dont need cargo anymore and can just
> emerge -C it or am i misunderstanding the workaround?

Cargo is emerged again as a dependency of thunderbird or firefox.
Comment 12 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-11-15 12:40:34 UTC
Juergen/Jeremy: just to make this clear, previously you could either install dev-util/cargo separately (and this was the first way of installing cargo, so many people have it installed) or as part of dev-lang/rust or dev-lang/rust-bin. For this latest upgraded I've not upgraded the dev-util/cargo package, instead mandating that everyone get their cargo from dev-lang/rust or dev-lang/rust-bin. So it should still be installed, but in some cases you have to rerun `sudo eselect rust set rust-1.30.1` (or `sudo eselect rust set rust-bin-1.30.1`) to make it work again (see bug 671182).