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
networkmanager: 1.22.10 → 1.26.0 #87286
Conversation
🤷♀️
It still has a runtime dependency on Also do not like how easily it can fall through |
I'm not too familiar with meson, but would something like this be fine?
|
Yes, if you substituted it in the patch. Though maybe removing the |
I hope that works for you. I'm not sure I can help coming up with a solution that would be acceptable upstream. I'm not even sure what the constraints would be. |
I've bumped this to 1.24.2 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.24.2/NEWS |
@jtojnar Was there anything unresolved with this? This was in my queue, so I pleased to see an open PR 😄 and maybe merge it. |
config_h.set_quoted('POLKIT_PACKAGE_PREFIX', polkit_agent_dep.get_pkgconfig_variable('prefix')) | ||
else | ||
- config_h.set_quoted('POLKIT_PACKAGE_PREFIX', '/usr') | ||
+ config_h.set_quoted('POLKIT_PACKAGE_PREFIX', '@polkit@') |
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.
Actually, looking at the use case, this is not even correct.
We need to patch https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/75bc21c4cf2c54e368d665302760cfe41b1b6814/clients/common/nm-polkit-listener.c#L555 to /run/wrappers/bin/polkit-agent-helper-1
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.
Exactly, will fix.
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.
I've hardcoded it for now by not using POLKIT_PACKGE_PREFIX
as suggested.
Now, about an upstream change, they can just have
option('polkit_package_prefix', type: 'string', value: '/usr', description: 'Prefix for the polkit package')
and just use that option value in the else
. That way we could just put the path in mesonFlags
?
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.
An option for adjusting just the prefix would not help us much, we can already do as such using PKG_CONFIG_POLKIT_AGENT_1_PREFIX
environment variable. The only part we share with the upstream path is the executable name:
-/usr/lib/polkit-1/polkit-agent-helper-1
+/run/wrappers/bin/polkit-agent-helper-1
Changes look mostly good but I am not sure what this means for us:
|
Thank you @mweinelt, this PR was useful to me ✨ |
Thanks for taking the time to finish it! |
Motivation for this change
Finally support for OWE/Enhanced Open.
(Though we'd need hostapd 2.10 for that to work)
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/blob/1.24.0/NEWS
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)@Phreedom @domenkozar @obadz @worldofpeace