Forums

Skip to content

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

change profile, save time and energy emerging @world

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
37 posts
  • 1
  • 2
  • Next
Author
Message
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

change profile, save time and energy emerging @world

  • Quote

Post by hujuice » Sat Mar 23, 2024 8:49 pm

For what I understand, following the instructions (https://wiki.gentoo.org/wiki/Project:To ... structions), emerging the @world set can be lightened a bit.

Code: Select all

emerge --ask --emptytree --exclude "sys-devel/gcc sys-devel/binutils sys-libs/glibc dev-build/libtool" @world
Am I correct?
Last edited by hujuice on Sat Mar 23, 2024 10:20 pm, edited 1 time in total.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: change profile, save time and energy emerging @world

  • Quote

Post by pietinger » Sat Mar 23, 2024 8:58 pm

hujuice wrote:For what I understand, following the instructions (https://wiki.gentoo.org/wiki/Project:To ... structions), emerging the @world set can be lightened a bit.

Code: Select all

emerge --ask --emptytree --exclude sys-devel/gcc sys-devel/binutils sys-libs/glibc dev-build/libtool @world
Am I correct?
I did the same today and I had added also/additional to this command:
linux-firmware intel-microcode gentoo-sources linux-headers baselayout
because for these no compilation job has to be done (and baselayout leads to many updates of our etc-files).
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

Re: change profile, save time and energy emerging @world

  • Quote

Post by hujuice » Sat Mar 23, 2024 9:07 pm

pietinger wrote:I did the same today and I had added also/additional to this command:
linux-firmware intel-microcode gentoo-sources linux-headers baselayout
because for these no compilation job has to be done (and baselayout leads to many updates of our etc-files).
Good selection.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
sublogic
Guru
Guru
User avatar
Posts: 388
Joined: Mon Mar 21, 2022 3:02 am
Location: Pennsylvania, USA

Re: change profile, save time and energy emerging @world

  • Quote

Post by sublogic » Sat Mar 23, 2024 9:36 pm

hujuice wrote:

Code: Select all

emerge --ask --emptytree --exclude sys-devel/gcc sys-devel/binutils sys-libs/glibc dev-build/libtool @world
But you have to quote your exclude list since it contains embedded spaces.
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

Re: change profile, save time and energy emerging @world

  • Quote

Post by hujuice » Sat Mar 23, 2024 10:21 pm

sublogic wrote:you have to quote your exclude list
Yes, I wrote here before doing it.
Edited.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
yzg
Guru
Guru
Posts: 500
Joined: Sat Jun 18, 2005 11:56 am

  • Quote

Post by yzg » Sat Mar 23, 2024 10:43 pm

Do we need to emerge emptytree in one hit? Can we just rely on daily world update to do this on slower pace?

Full emptytree emerge will take:

Estimated update time: 3 days, 4 hours, 14 minutes
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

  • Quote

Post by hujuice » Sun Mar 24, 2024 9:11 am

yzg wrote:Estimated update time: 3 days, 4 hours, 14 minutes
Ouch.
gcc is relevant, you can save relevant time excluding it.
Then, maybe, you can proceed with a clean up, and use distcc if you have more than one computer.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
linux_os2
Apprentice
Apprentice
Posts: 278
Joined: Wed Aug 29, 2018 8:00 am
Location: Zedelgem Belgium

  • Quote

Post by linux_os2 » Sun Mar 24, 2024 11:10 am

emerge --ask --emptytree @world took 22hr 1644 reemerges
Top
setan
Tux's lil' helper
Tux's lil' helper
Posts: 86
Joined: Wed Feb 21, 2024 7:46 pm

  • Quote

Post by setan » Sun Mar 24, 2024 11:28 am

For my ~1500 merges it took under 24 hours.

Why aren't these the official instructions? GCC builds a loong time.
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

  • Quote

Post by hujuice » Sun Mar 24, 2024 2:34 pm

setan wrote:For my ~1500 merges it took under 24 hours.

Why aren't these the official instructions? GCC builds a loong time.
The instructions propose:

Code: Select all

emerge --ask --emptytree --getbinpkg @world
Using binary packages it shouldn't be so long. The builds will be probably less optimized.
Then, with ordinary updates, it will be day by day 100% gentooish again.

If you don't want it, like I don't, you have to wait for build time.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
yzg
Guru
Guru
Posts: 500
Joined: Sat Jun 18, 2005 11:56 am

  • Quote

Post by yzg » Sun Mar 24, 2024 11:50 pm

Is there a problem of NOT doing --emptytree emerge and instead -uvDN emerge?
Top
Phoenix591
Guru
Guru
Posts: 505
Joined: Mon Sep 17, 2007 3:52 am

  • Quote

Post by Phoenix591 » Sun Mar 24, 2024 11:55 pm

yzg wrote:Is there a problem of NOT doing --emptytree emerge and instead -uvDN emerge?
Yes. The profile changed the settings used to compile things besides your cflags. Rebuilding everything is necessary to apply those changes. If you're worried about the time, you could use binpkgs.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Mon Mar 25, 2024 3:35 am

yzg wrote:Is there a problem of NOT doing --emptytree emerge and instead -uvDN emerge?
Use the suggested excludes to avoid not compiling selected packages unnecessarily.

Choose the timing of your migration to the new profile for maximum convenience to you. There is no rush.

While the full rebuild is taking place, you should be able to continue to use your computer normally. Just push the window into the background and look in on it from time-to-time. Worst case, if trouble ensues sweat it out.

I'm in the process of doing this now on an x86 system, 8 GB RAM, AMD Phenom 8650 x3. It will take a long time, but I don't intend to watch the emerge window.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

  • Quote

Post by hujuice » Mon Mar 25, 2024 10:31 am

Can I use distcc between two different profiles?
Same toolchain version.

I have two desktops (lots of UI heavy progs) and for some reason I prefer to proceed one by one.
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Tue Mar 26, 2024 10:31 pm

Thanks for this suggestion regarding the --exclude! Huge time saver.

Question: Is there any reason to NOT exclude virtual/*? I have to think there's no real compiling there(?).

Thanks!
Tom
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 27, 2024 12:07 am

tld wrote:Question: Is there any reason to NOT exclude virtual/*? I have to think there's no real compiling there(?).
Yes, you can exclude them also ... have a look to this post from @Havin_it: viewtopic-p-8821412.html#8821412 ;-)
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Wed Mar 27, 2024 2:13 am

pietinger wrote:
tld wrote:Question: Is there any reason to NOT exclude virtual/*? I have to think there's no real compiling there(?).
Yes, you can exclude them also ... have a look to this post from @Havin_it: viewtopic-p-8821412.html#8821412 ;-)
Thanks! (And thanks to Havin_it). That looks like a great approach. I was actually wondering about those acct-user/group ones too.

Tom
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Wed Mar 27, 2024 3:31 am

Before proceeding with migrating my x86 system, I made myself a short cheatsheet to follow. It went almost flawlessly, though it took about 26 hours doing the emerge --emptytree, and one program failed to install, media-sound/audacity, which I decided to depclean. With that migration under my belt, I updated the cheatsheet for my other similar x86_64 systems.

With the caution that this is MY cheatsheet and it may not (or probably won't) work for you, so if you like the idea, be sure to adapt it for your own use case:

Code: Select all

https://www.gentoo.org/support/news-items/2024-03-22-new-23-profiles.html

1. Remove CHOST from make.conf
2. Select new profile [46] default/linux/amd64/23.0/split-usr/desktop (stable)
3. There are no binpkgs so proceed as follows:
 emerge -1a sys-devel/binutils
 emerge -1a --nodeps sys-devel/gcc
 emerge -1a sys-libs/glibc
4. Doublecheck CHOST with "emerge --info | grep CHOST"
6. Run "env-update && source /etc/profile"
7. Run "emerge --ask --emptytree @world" as shown below to save electrons:

emerge --ask --emptytree --exclude "$(qlist -IC acct-) dev-build/libtool $(qlist -IC media-fonts/) sys-apps/baselayout sys-devel/binutils sys-devel/gcc sys-firmware/intel-microcode sys-kernel/gentoo-sources sys-kernel/linux-firmware sys-kernel/linux-headers sys-libs/glibc $(qlist -IC -- -bin) $(qlist -IC virtual/)" @world

8. Rebuild and install kernel
9. Reboot
Your mileage may vary. Feel free to rain on my parade.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Wed Mar 27, 2024 6:57 am

I plan to do something similar to the post by Havin_it referenced above. I'm unclear as to whether or not to use the --keep-going, ad what the ramifications are.

I was wondering in general as to what the options are if something fails etc, in terms of possibly needing to start over completely etc...a bit confused on that.

Tom
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Mar 27, 2024 7:26 am

// edited out something I was wrong about

tld wrote:I was wondering in general as to what the options are if something fails etc, in terms of possibly needing to start over completely etc...a bit confused on that.

Tom
You either emerge --resume or start completely over. Or have a list of packages to be rebuilt and pass the remaining ones to portage. Those are the options. There's no option to automatically continue. Portage does not see any reason to rebuild those packages so you can't rely on it detecting the remaining ones.

Best Regards,
Georgi
Last edited by logrusx on Sat Mar 30, 2024 4:50 pm, edited 4 times in total.
Top
C5ace
Guru
Guru
Posts: 517
Joined: Mon Dec 23, 2013 12:44 am
Location: Brisbane, Australia

  • Quote

Post by C5ace » Wed Mar 27, 2024 7:42 am

Just finished 1 Desktop, 3 Laptops and 1 USB drive. All have Gentoo, XFce Libreoffice Thunderbird, Firefox, VLC and lots of other stuff installed.

1.) Changed profile from [12] default/linux/amd64/17.1/no-multilib (exp) to [49] default/linux/amd64/23.0/split-usr/no-multilib (stable) *

2.) Removed CHOST="x86_64-pc-linux-gnu" from /etc/portage/make.conf

3.) emerge -av --update --deep --with-bdeps=y --changed-use --newuse --backtrack=300 --tree --keep-going=y --verbose-conflicts @world

4.) emerge --depclean

5.) revdep-rebuild

Everything is working fine after updating about 250 packages.
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Wed Mar 27, 2024 11:02 am

logrusx wrote:You either emerge --resume or start completely over. Or have a list of packages to be rebuilt and pass the remaining ones to portage.
Thanks! I think I'm not going to use the --keep-going, and rely on the --resume (and possibly --skipfirst if there's some error I can't otherwise resolve). Thanks again.

Tom
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Wed Mar 27, 2024 11:28 am

// I edited out something I was wrong about here

Best Regards,
Georgi
Last edited by logrusx on Sat Mar 30, 2024 4:51 pm, edited 2 times in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Wed Mar 27, 2024 12:27 pm

figueroa wrote:

Code: Select all

emerge --ask --emptytree --exclude "$(qlist -IC acct-) dev-build/libtool $(qlist -IC media-fonts/) sys-apps/baselayout sys-devel/binutils sys-devel/gcc sys-firmware/intel-microcode sys-kernel/gentoo-sources sys-kernel/linux-firmware sys-kernel/linux-headers sys-libs/glibc $(qlist -IC -- -bin) $(qlist -IC virtual/)" @world
FWIW, you can replace most of those qlist commands with, e.g., virtual/* and the like in the exclude list.
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Mar 27, 2024 12:37 pm

tld wrote:[...] I'm unclear as to whether or not to use the --keep-going, ad what the ramifications are.

I was wondering in general as to what the options are if something fails etc, in terms of possibly needing to start over completely etc...a bit confused on that.
I never recommend "--keep-going" ... because if there is an error it is better to find the reason for it and then correct the error before starting emerge again. If someone is afraid to start "emerge -e" again, then I want point to this brilliant solution from @Massimo B. =>

viewtopic-p-8821469.html#8821469
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
Post Reply

37 posts
  • 1
  • 2
  • Next

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