Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[tip] Shorter time to emerge Rust (use rust-bin)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Sat Mar 27, 2021 3:38 pm    Post subject: [tip] Shorter time to emerge Rust (use rust-bin) Reply with quote

It may be needed to switch from source-based dev-lang/rust to binary-based dev-lang/rust-bin, for example to decrease build time.

emerge --ask --unmerge dev-lang/rust

emerge --ask --oneshot virtual/rust dev-lang/rust-bin

emerge --ask --update --deep @world

https://wiki.gentoo.org/wiki/User:Vazhnov/Knowledge_Base:replace_rust_with_rust-bin

Added '(use rust-bin)' into the title to make it clear that this isn't about compile time improvements.Chiitoo
Back to top
View user's profile Send private message
xineg
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2006
Posts: 115
Location: Australia.

PostPosted: Sat Mar 27, 2021 9:28 pm    Post subject: Reply with quote

Heh, I have never made a build of rust, I hate it with a passion, not just for it's build time either. Was thinking binary packages that are actually in portage isn't really a tip or a trick, however I guess you may have bought it to many peoples attention that have no idea that packages like Rust, OpenOffice, Firefox etc have binary packages, maybe you could do a list of them all?
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Mon Mar 29, 2021 1:19 pm    Post subject: Reply with quote

vortix wrote:
I guess you may have bought it to many peoples attention that have no idea that packages like Rust, OpenOffice, Firefox etc have binary packages, maybe you could do a list of them all?

Code:
emerge -a app-portage/eix
eix -c -- -bin$

_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Mar 30, 2021 1:57 pm    Post subject: Reply with quote

Heh .. I did the eix command based on the OP and was suprized at how many -bin packages are "in the tree."
Code:
EIX_LIMIT=0 eix -# *-bin

89 lines result ...
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 892

PostPosted: Tue Mar 30, 2021 2:52 pm    Post subject: Reply with quote

I actually hoped for a tip to actually decrease the build time of rust :cry:

You can also list all -bin packages with emerge:
Code:

emerge -s %-bin$

The % tells it you're using a regex.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3765
Location: Rasi, Finland

PostPosted: Tue Mar 30, 2021 4:43 pm    Post subject: Reply with quote

Me too!
Code:
qsearch '.*-bin'

Are we off-topic yet?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 755
Location: /home

PostPosted: Wed Mar 31, 2021 5:54 am    Post subject: Reply with quote

cboldt wrote:
Heh .. I did the eix command based on the OP and was suprized at how many -bin packages are "in the tree."
89 lines result ...


There are binary-only packages in tree without the -bin suffix.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3765
Location: Rasi, Finland

PostPosted: Wed Mar 31, 2021 10:07 am    Post subject: Reply with quote

Juippisi wrote:
There are binary-only packages in tree without the -bin suffix.
I believe most of the electron apps are without that suffix.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Wed Mar 31, 2021 12:25 pm    Post subject: Reply with quote

Juippisi wrote:
There are binary-only packages in tree without the -bin suffix.


Yes. Obviously searching on "-bin" in the package name won't find those. nvidia drivers used to be binary only, likely still are, and I assume many games are delivered "only binary." Saved local compile time is the only choice for all of those!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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