-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
--noreplace false for portage doesn't reinstall packages with changed use flags #6008
Comments
Files identified in the description: If these files are incorrect, please update the |
Hi @desultory, Note where it says it does not trigger reinstallation.
However, you may still have the same issue because of the conditional, I am not seeing where It does seem like a valid bug, but with the wrong portage option/flag. I am not able to confirm this at the moment, but if you switch your config from |
In this case I'm forcing I was testing by running |
Yes, but that happens because you are specifically emerging that package, it has nothing to do with the $ USE="-client" emerge -pv1O dhcp
These are the packages that would be merged, in order:
[ebuild U ] net-misc/dhcp-4.4.3_p1-r1::gentoo [4.4.3-r1::gentoo] USE="ipv6 ssl -client* -ldap (-selinux) -server -vim-syntax" 9,845 KiB
Total: 1 package (1 upgrade), Size of downloads: 9,845 KiB
$ USE="-client" emerge -pv1OU dhcp
These are the packages that would be merged, in order:
[ebuild U ] net-misc/dhcp-4.4.3_p1-r1::gentoo [4.4.3-r1::gentoo] USE="ipv6 ssl -client* -ldap (-selinux) -server -vim-syntax" 9,845 KiB
Total: 1 package (1 upgrade), Size of downloads: 9,845 KiB
Yes, regardless of the flag, that conditional I provided a link to I believe needs to be modified to correct the issue. Unless someone else is able to resolve it sooner, I will try to get to it ASAP. |
I did testing by running: /etc/portage/package.use/dhcp file which may contain either When it contains
Once I change the use flags I get output like this:
Full log:
I did testing running |
…6548) * portage: fix changed_use and newuse not triggering rebuilds (#6008) * Add changelog fragment * Update changelogs/fragments/6548-portage-changed_use-newuse.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 5f968fb)
…6548) * portage: fix changed_use and newuse not triggering rebuilds (#6008) * Add changelog fragment * Update changelogs/fragments/6548-portage-changed_use-newuse.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 5f968fb)
…ewuse not triggering rebuilds (#6008) (#6557) portage: fix changed_use and newuse not triggering rebuilds (#6008) (#6548) * portage: fix changed_use and newuse not triggering rebuilds (#6008) * Add changelog fragment * Update changelogs/fragments/6548-portage-changed_use-newuse.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 5f968fb) Co-authored-by: s-hamann <10639154+s-hamann@users.noreply.github.com>
…ewuse not triggering rebuilds (#6008) (#6558) portage: fix changed_use and newuse not triggering rebuilds (#6008) (#6548) * portage: fix changed_use and newuse not triggering rebuilds (#6008) * Add changelog fragment * Update changelogs/fragments/6548-portage-changed_use-newuse.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 5f968fb) Co-authored-by: s-hamann <10639154+s-hamann@users.noreply.github.com>
Summary
If you change the package use flags for a package and call tell the portage module to make the package
present
withchanged_use
set as true, ansible will detect the package is present and skip it, I'd expect this flag to literally just change how the parameters are passed to portage, especially since it doesn't seem to be checking dependencies itselfIssue Type
Bug Report
Component Name
portage
Ansible Version
Community.general Version
$ ansible-galaxy collection list community.general
Configuration
OS / Environment
Linux boxxy 5.15.74.2-microsoft-custom-WSL2+ #20 SMP Tue Jan 10 11:55:17 CST 2023 x86_64 AMD Ryzen 9 7950X 16-Core Processor AuthenticAMD GNU/Linux
Linux nas 6.1.11-gentoo-ansible #11 SMP Mon Feb 13 07:39:24 CST 2023 x86_64 AMD EPYC 7R32 48-Core Processor AuthenticAMD GNU/Linux
Steps to Reproduce
Expected Results
I would expect the package to reinstall when the use flags are changed and "changed_use" is passed, even if --noreplace is passed:
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: