Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
@preserved-rebuild: Why are rebuilds not automatic? [SOLVED]
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
ermor
n00b
n00b


Joined: 05 Jan 2025
Posts: 15

PostPosted: Tue Apr 22, 2025 7:51 pm    Post subject: @preserved-rebuild: Why are rebuilds not automatic? [SOLVED] Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2117

PostPosted: Tue Apr 22, 2025 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
ermor
n00b
n00b


Joined: 05 Jan 2025
Posts: 15

PostPosted: Tue Apr 22, 2025 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4004

PostPosted: Tue Apr 22, 2025 10:37 pm    Post subject: Reply with quote

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 :roll:.

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
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