Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[closed] equery d rust-bin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 369
Location: USA

PostPosted: Thu Feb 06, 2025 4:38 pm    Post subject: [closed] equery d rust-bin Reply with quote

Can anybody please explain why and what the question mark means in the following (partial output);
Code:
gellert@jgklinux ~ $ equery  d rust-bin
 * These packages depend on rust-bin:
...
dev-python/cryptography-44.0.0 (dev-lang/rust-bin:1.84.0)
                               (dev-lang/rust-bin:1.83.0)
...
sys-devel/gcc-14.2.1_p20241221 (rust ? dev-lang/rust-bin:1.84.0)
                               (rust ? dev-lang/rust-bin:1.83.0)
...

This is on a virtual server. I have another machine, same Gentoo and with xserver gui but no rust. It took very long time to compile rust, so on the virtual server I chose the binary package. Apparently it needs rust, and my fitlet2 desktop box does not need rust. Just curious.

Thanks,

jankom (Janos)


Last edited by jankom on Fri Feb 07, 2025 5:16 pm; edited 3 times in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1890
Location: Germany

PostPosted: Thu Feb 06, 2025 6:47 pm    Post subject: Reply with quote

If the useflag rust is set for package https://packages.gentoo.org/packages/sys-devel/gcc then it needs rust to build/install
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 369
Location: USA

PostPosted: Thu Feb 06, 2025 9:51 pm    Post subject: Reply with quote

@Banana - yes, I understand.
I'l close this post as [Solved]. My confusion was because I noticed that rust-bin was only listed in the /var/lib/portage/world file of my virtual server and not in the fitlet machine. Both do however have rust-bin package installed, and gcc does have
Code:
gellert@jgklinux ~ $ equery uses gcc | grep rust
-rust
gellert@jgklinux ~ $
and everything works fine.

Than you for your comment.

jankom
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23101

PostPosted: Thu Feb 06, 2025 10:46 pm    Post subject: Reply with quote

Unless you personally write Rust code, you probably should not have dev-lang/rust-bin in @world. Putting it in @world says you want it installed. If you aren't writing Rust, you don't care whether a Rust compiler is installed, and should let Portage install or uninstall the Rust compiler as Portage sees fit.
Back to top
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 369
Location: USA

PostPosted: Fri Feb 07, 2025 11:23 am    Post subject: Reply with quote

@Hu
OK, I understand. What I don't understand is that in my virtual server (Akamai linode):
Quote:
gellert@jgklinux ~ $ equery list @world | grep rust
dev-lang/rust-bin-1.83.0
gellert@jgklinux ~ $ qlist -IRv | grep rust
app-eselect/eselect-rust-20210703::gentoo
dev-lang/rust-bin-1.83.0::gentoo
gellert@jgklinux ~ $
but in my home fitlet2 machine:
Code:
janos@andraslinux ~ $ equery list @world | grep rust
janos@andraslinux ~ $ qlist -IRv | grep rust
app-eselect/eselect-rust-20210703::gentoo
dev-lang/rust-bin-1.83.0::gentoo
dev-lang/rust-bin-1.81.0-r101::gentoo
janos@andraslinux ~ $
I try to maintain, manage both machines the same way. What could be wrong?
jankom
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23101

PostPosted: Fri Feb 07, 2025 2:54 pm    Post subject: Reply with quote

Based on what you showed, you probably ran emerge dev-lang/rust-bin without --oneshot at some point on the linode, so now Portage believes you want Rust installed, and is reflecting that belief with an entry in @world. Run emerge --deselect dev-lang/rust-bin to reverse this without needing to remove Rust. Alternatively, if Rust is unused, emerge --ask --verbose --depclean dev-lang/rust-bin will both remove it from @world and remove it from the system.
Back to top
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 369
Location: USA

PostPosted: Fri Feb 07, 2025 5:16 pm    Post subject: Reply with quote

Thank you, Hu. Now I understand a little better what --oneshot means.
Code:
jgklinux /home/gellert # emerge --deselect dev-lang/rust-bin
>>> Removing dev-lang/rust-bin from "world" favorites file...
jgklinux /home/gellert #
Now it is closed, indeed!

jankom (janos)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum