Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How to force portage to use a specific rust version?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

How to force portage to use a specific rust version?

  • Quote

Post by gorg86 » Mon Feb 09, 2026 11:41 pm

Hello,

How do I tell portage to use a specific version of rust?
eselect has no effect for some reason.

Thanks

background:
I need to use this upstream commit for virtiofsd https://gitlab.com/virtio-fs/virtiofsd/ ... quests/306

But when I use the patch I get this error:

Code: Select all

 * /opt/rust-bin-1.92.0/bin/cargo build --release
error: failed to select a version for the requirement `vhost = "^0.15.0"` (locked to 0.15.0)
candidate versions found which didn't match: 0.13.0
location searched: directory source `/var/tmp/portage/app-emulation/virtiofsd-1.13.2/work/cargo_home/gentoo` (which is replacing registry `crates-io`)
required by package `virtiofsd v1.13.2 (/var/tmp/portage/app-emulation/virtiofsd-1.13.2/work/virtiofsd-v1.13.2)`
So I installed rust rust-bin-1.84.0 to have vhost-0.13.0 but portage is not using it.
Top
sam_
Developer
Developer
User avatar
Posts: 2814
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Tue Feb 10, 2026 12:23 am

Your original question is answered in bug 961291, but it's unrelated to your problem AFAICT. The issue with that is the crate downloaded earlier on doesn't match the Cargo.lock changes in the patch. It is unrelated to your Rust version. You're best off using -9999.
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Tue Feb 10, 2026 12:27 am

Ok thanks, I mixed things up.

EDIT:
-9999 spits out the same error
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic