View previous topic :: View next topic |
Author |
Message |
ermor n00b

Joined: 05 Jan 2025 Posts: 15
|
Posted: Tue Apr 22, 2025 7:51 pm Post subject: @preserved-rebuild: Why are rebuilds not automatic? [SOLVED] |
|
|
Hello everyone!
After my daily update, Portage complained about an old version of a library that was kept because xfce-base/libxfce4windowing was built against it, if I remember correctly. Unfortunately I can't quite find the exact message in my logs.
Portage told me I could use the "emerge @preserved-rebuild" command to rebuild the package against the new version of the library, and a few articles I found seemed to suggest I should indeed do it (or at the very least, that there was no particular reason not to do it), but I'm a bit puzzled.
If I understand these articles correctly, the reason why the package wasn't automatically rebuilt was that it was still referring to an old version of the library, which did not trigger a rebuild of the package after it was detected that the library was updated. But in that case, would it not be better to leave it like that? Presumably, if the maintainer referred to that version specifically, he might have had a good reason. Or was I just too fast in upgrading after the library updated, and these things have to be manually set by the package maintainers? It's the first time this happens to me, so I'm a bit surprised, I just assumed all packages were immediately set to be rebuilt upon their dependencies being updated. Should I have waited for the issue to resolve "naturally" after a few days?
Last edited by ermor on Tue Apr 22, 2025 10:13 pm; edited 1 time in total |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2117
|
Posted: Tue Apr 22, 2025 8:21 pm Post subject: |
|
|
First, try to run emerge --ask --depclean to clean up libraries that are no longer needed.
If the message still remains, then you could certainly run the @preserved-rebuild.
This is technically a bug if the depclean does not clean up such items as portage can do automatic rebuilds with a certain ebuild change. |
|
Back to top |
|
 |
ermor n00b

Joined: 05 Jan 2025 Posts: 15
|
Posted: Tue Apr 22, 2025 10:13 pm Post subject: |
|
|
grknight wrote: | First, try to run emerge --ask --depclean to clean up libraries that are no longer needed.
If the message still remains, then you could certainly run the @preserved-rebuild.
This is technically a bug if the depclean does not clean up such items as portage can do automatic rebuilds with a certain ebuild change. |
Thankfully that's what I did, but the message was indeed still there. Thanks for clearing that up! Wish I thought of saving the message somehow... I don't think I'm logging Portage terminal outputs. I'll have to look into it. |
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4004
|
Posted: Tue Apr 22, 2025 10:37 pm Post subject: |
|
|
From time to time, gentoo world update triggers some package rebuilds.
Once a gentoo world update has been proceeded, it could be emerge does indeed ask for Code: | emerge @preserved-rebuild | manual run to finalize the update.
To answer the OP title, my 2 cents is that to be rebuild ebuild are responsible for not being automatically triggered. (BDEPEND, RDEPEND related ???)
I sometime report such behavior, hoping for improvement .
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
 |
|
|
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
|
|