Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676860 - =dev-lang/rust-1.32.0 does not install cargo binary
Summary: =dev-lang/rust-1.32.0 does not install cargo binary
Status: RESOLVED DUPLICATE of bug 671182
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-29 18:00 UTC by Jan Vesely
Modified: 2019-01-29 18:06 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 Jan Vesely 2019-01-29 18:00:33 UTC
$ equery f rust | grep cargo
/etc/bash_completion.d/cargo
/usr/bin/cargo-1.32.0
/usr/lib64/rust-1.32.0/rustlib/manifest-cargo
/usr/share/rust-1.32.0/man/man1/cargo-bench.1
/usr/share/rust-1.32.0/man/man1/cargo-build.1
/usr/share/rust-1.32.0/man/man1/cargo-check.1
/usr/share/rust-1.32.0/man/man1/cargo-clean.1
/usr/share/rust-1.32.0/man/man1/cargo-doc.1
/usr/share/rust-1.32.0/man/man1/cargo-fetch.1
/usr/share/rust-1.32.0/man/man1/cargo-generate-lockfile.1
/usr/share/rust-1.32.0/man/man1/cargo-init.1
/usr/share/rust-1.32.0/man/man1/cargo-install.1
/usr/share/rust-1.32.0/man/man1/cargo-login.1
/usr/share/rust-1.32.0/man/man1/cargo-metadata.1
/usr/share/rust-1.32.0/man/man1/cargo-new.1
/usr/share/rust-1.32.0/man/man1/cargo-owner.1
/usr/share/rust-1.32.0/man/man1/cargo-package.1
/usr/share/rust-1.32.0/man/man1/cargo-pkgid.1
/usr/share/rust-1.32.0/man/man1/cargo-publish.1
/usr/share/rust-1.32.0/man/man1/cargo-run.1
/usr/share/rust-1.32.0/man/man1/cargo-rustc.1
/usr/share/rust-1.32.0/man/man1/cargo-rustdoc.1
/usr/share/rust-1.32.0/man/man1/cargo-search.1
/usr/share/rust-1.32.0/man/man1/cargo-test.1
/usr/share/rust-1.32.0/man/man1/cargo-uninstall.1
/usr/share/rust-1.32.0/man/man1/cargo-update.1
/usr/share/rust-1.32.0/man/man1/cargo-version.1
/usr/share/rust-1.32.0/man/man1/cargo-yank.1
/usr/share/rust-1.32.0/man/man1/cargo.1
/usr/share/zsh/site-functions/_cargo

as a result firefox-65 fails to build:
 0:07.54 checking rustc version... 1.32.0
 0:07.54 ERROR: Cargo package manager not found.
 0:07.54 To compile Rust language sources, you must have 'cargo' in your path.
 0:07.54 See https://www.rust-lang.org/ for more information.
 0:07.54 
 0:07.54 You can install cargo by running './mach bootstrap'
 0:07.54 or by directly running the installer from https://rustup.rs/
 0:07.54 
 0:07.59 *** Fix above errors and then restart with\
 0:07.59                "./mach build"
 0:07.59 gmake: *** [client.mk:115: configure] Error 1
 * ERROR: www-client/firefox-65.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_configure
 *   environment, line 5206:  Called die
 * The specific snippet of code:
 *       SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ./mach configure || die
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-65.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-65.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-65.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-65.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-65.0/work/firefox-65.0'
 * S: '/var/tmp/portage/www-client/firefox-65.0/work/firefox-65.0'
Comment 1 Jan Vesely 2019-01-29 18:01:14 UTC
adding a /usr/bin/cargo -> /usr/bin/cargo-1.32.0 symlink fixes the problem
Comment 2 Georgy Yakovlev archtester gentoo-dev 2019-01-29 18:06:46 UTC
Hi,

it's a known problem after upgrading from certain versions of rust which did not provide cargo, read the postinst message.

cargo is now installed from dev-lang/rust{,-bin} instead of dev-util/cargo.
This might have resulted in a dangling symlink for /usr/bin/cargo on some
systems. This can be resolved by calling 'sudo eselect rust set rust-1.32.0'.

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