Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
handling "=" dependencies...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2853

PostPosted: Mon Mar 17, 2025 4:10 pm    Post subject: Reply with quote

eccerr0r wrote:
TBH I did not use --backtrack=0 but it completed saying (backtrack: 0/20) which as far as I understand means it never backtracked and --backtrack=0 would have given the same results (except saying backtrack: 0/0) ?


It might be the same. But if you don't explicitly tell it not to backtrack it may not inform you for problems it encounters and instead silently "fix" them.

But then if it was 0/20 you should have seen something interesting at the bottom?

EDIT: when I omitted --backtrack=0 and with --ask it didn't inform me for openjdk-bin:23 missing, it only asked me for the required use changes. It informed me about it only after I said no.
Best Regards,
Georgi
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2231

PostPosted: Mon Mar 17, 2025 4:42 pm    Post subject: Reply with quote

logrusx wrote:
eccerr0r wrote:
logrusx wrote:
Sam's command may still give useful information once emerge is finished.

what specific bits would be useful?

I glanced over the results of the pretend emptytree two days ago (that I didn't save) before I let the --emptytree go run. The results looked exactly what I had hoped for - all the packages I was expecting to upgrade indeed upgraded and hence skirted the issue that was being found in --update, and without any backtracking or complaints about missing ebuilds...


--backtrack=0 instructs portage not to try to resolve conflicts but instantly give up. It'll output for which packages it does. It'll only succeed if portage does not encounter any issues whatsoever.

For example it complained I had a few packages installed with ACCEPT_KEYWORDS on the command line, but not added to package.accept_keywords. I usually do that with apps I don't intend to keep or I'm testing or which I've emerged with ebuild merge for some reason.

After some cleanup it only complains for openjdk-bin:23 because it's not in tree anymore, but I intend to keep it. It also wants a few use changes because I told it not to do the round trip to try to find a longer dependency chain which can solve the issue:

Code:

# emerge -pve --backtrack=0 @world

These are the packages that would be merged, in order:

Calculating dependencies  .... done!
Dependency resolution took 14.66 s (backtrack: 0/0).

...

Total: 1686 packages (4 upgrades, 1 downgrade, 1 new, 1680 reinstalls), Size of downloads: 3,033,990 KiB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by media-gfx/graphviz-12.2.1-r1::gentoo
# required by media-gfx/plantuml-1.2025.0::localrepo
# required by @selected
# required by @world (argument)
>=media-libs/gd-2.3.3-r4 fontconfig
# required by net-im/viber-23.2.0.3::nest
# required by @selected
# required by @world (argument)
>=media-video/ffmpeg-compat-58-r2 vdpau

!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
dev-java/openjdk-bin:23


Best Regards,
Georgi


Yes, I specifically asked for --backtrack=0 because the idea is to have Portage immediately give up and show us what it normally backtracks around but is still a problem. Your explanation is exactly right.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9955
Location: almost Mile High in the USA

PostPosted: Mon Mar 17, 2025 5:51 pm    Post subject: Reply with quote

Yeah, so yes when I was futzing with --emptytree two days ago, it reported 0/20 backtracks needed to find a solution and did not report any packages that needed an ebuild, unmasks, or use changes -- it was completely clean. Because of that I removed the --pretend and it proceeded as expected. Minus the missing distfiles which I re-merged after I got it downloaded, it ended up solving the issue on its own. The --emptytree run had no issue finding out that it needed to rebuild those packages that needed rebuilding unlike doing an --update. I hope this does not recur, emptytree is more than what was needed to fix the problem.

As of right now, the machine's emerge --update --deep --newuse @world reports no packages needing to be merged with backtrack:0/20 and everything's hunky dory, so I think the bad data is gone at this point, unless there's something interesting that could be extracted from emerge.log ...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2853

PostPosted: Mon Mar 17, 2025 5:59 pm    Post subject: Reply with quote

eccerr0r wrote:
The --emptytree run had no issue finding out that it needed to rebuild those packages that needed rebuilding unlike doing an --update.


What are you talking about? Emptytree rebuilds everything.

eccerr0r wrote:
Minus the missing distfiles which I re-merged after I got it downloaded


Did you remember to use --oneshot? I still maintain there are other issues, why don't you check your world file?

Best Regards,
Georgi
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9955
Location: almost Mile High in the USA

PostPosted: Mon Mar 17, 2025 9:09 pm    Post subject: Reply with quote

logrusx wrote:
eccerr0r wrote:
The --emptytree run had no issue finding out that it needed to rebuild those packages that needed rebuilding unlike doing an --update.


What are you talking about? Emptytree rebuilds everything.

Everything but stuff it doesn't know how to rebuild... which is what I thought you wanted to see from the output?

Quote:
eccerr0r wrote:
Minus the missing distfiles which I re-merged after I got it downloaded


Did you remember to use --oneshot? I still maintain there are other issues, why don't you check your world file?

Indeed it is oneshot. I also audit my world file quite frequently in case I botch the oneshot, though I think it's second nature for me to include it when merging pure dependencies...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
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
Goto page Previous  1, 2
Page 2 of 2

 
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