-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support RPMTRANS_FLAG_DEPLOOPS #1271
Conversation
Does it help anything? According to rpm sources, it only changes logging the loops from a debug level to a warning level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It helps diagnostics on packaging dependency loops, which are getting ever more popular.
For everybody's sanity, this should've been added to yum twenty years ago, but I think Python 2 had issues with the (1 << 31) enum value.
Thank you Panu for your comment. I think we can add the support. |
To elaborate: currently when somebody reports a bug that is an obvious (to me anyway) dependency loop situation, it's often reported against anaconda from where it then gets tossed to whatever random package is failing (which usually has nothing to do with it) and then after a few false tries it ends up on rpm for comments. With this two-liner patch, anaconda can enable it for all installs so instead of the above circus, folks can just inspect the anaconda log. And for dnf-reproducers, it's equally just an additional --setopts away. |
I understand what it is good for. My question targets to DNF5: Does DNF5 display RPM warnings or is it rather librpm to print directly to stderr and mixing up, potentially in the middle of a word, with DNF5 output? Does DNF5 log RPM debug messages into DNF5 log? If it logs, then the user should find the strongly connected components debugging there already without this patch. |
There is a similar patch for DNF4. I've approve it - rpm-software-management/dnf#2057. |
Orion, does your patch prints anything related to SCC? I cannot reproduce it with:
Instead I get an error:
But that error does not depend --setopt=tsflags=deploops. Were Fedora 40 repositories fixed in between? |
Oh, right, forgot about dnf eating up rpm's output so it ends up in a log someplace. In that case dnf could just leave the flag always on, that'd be okay too. |
Honestly, this is completely untested. I figured though that is was at least the first step for trying to get the desired output. |
The log is also missing the rpm log:
|
This is exactly the error that this added option would hopefully help us debug. We would hope to see rpm output like:
Unfortunately it appears that dnf5 has become FTBFS in rawhide. I guess I'll try shifting to F40 itself. |
F40 suffers from the same FTBFS triggered by swig 4.2.1. You need to apply upstream commit 2ee2bd9 if you work on Fedora sources. |
I think that the patch is OK and can be merged to DNF5 |
bee73b0
I think this could be helpful for debugging some installer issues - e.g. https://bugzilla.redhat.com/show_bug.cgi?id=2244744