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: fix VPN activation through nm-applet #44037
Conversation
/cc @jtojnar |
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.
did not test but looks good
@@ -76,6 +76,13 @@ in stdenv.mkDerivation rec { | |||
url = https://bugzilla.gnome.org/attachment.cgi?id=372953; | |||
sha256 = "1crjplyiiipkhjjlifrv6hhvxinlcxd6irp9ijbc7jij31g44i0a"; | |||
}) | |||
(fetchpatch { | |||
# https://gitlab.gnome.org/GNOME/network-manager-applet/issues/12 | |||
# should be fixed in 1.13.0 |
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.
1.13.0 would be unstable, plus Lubomir promised 1.12.2.
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.
updated the comment.
5576df4
to
379939f
Compare
added a patch on top that fixes the initial connection setup from file (in case there's no other VPN connection already configured) |
]; | ||
|
||
# remove again if #11 is merged |
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.
Do you mean !11?
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.
explicitly linked https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/15 now.
@@ -20,8 +20,18 @@ in stdenv.mkDerivation rec { | |||
url = https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/12.patch; | |||
sha256 = "0q5qbjpbrfvhqsprnwjwz4c42nly59cgnbn41w2zlxvqf29gjvwk"; | |||
}) | |||
(fetchpatch { | |||
# https://gitlab.gnome.org/GNOME/network-manager-applet/issues/11 | |||
# should be fixed in 1.8.15 |
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.
1.8.15 is a dev version (unlike rest of GNOME, NM stable versions need to have even patches in addition to even minors), next release will be 1.8.16.
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.
didn't knew that, ok - updated string to 1.8.16.
# https://gitlab.gnome.org/GNOME/network-manager-applet/issues/11 | ||
# should be fixed in 1.8.15 | ||
name = "show-import-file-chooser.patch"; | ||
url = https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/15.patch; |
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.
We probably should not use unmerged MR for patch, as it can change. I would use the two specific commits (or commit range if it is available as a patch).
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 added all three commits separately, as the bluetooth one also shouldn't hurt and is included in the upstream MR.
b4d1bb7
to
a0a8d25
Compare
a0a8d25
to
14ec6e9
Compare
updated PR with updated upstream patches, now without |
@GrahamcOfBorg build networkmanagerapplet |
Success on x86_64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: networkmanagerapplet Partial log (click to expand)
|
@GrahamcOfBorg build networkmanagerapplet |
Success on x86_64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: networkmanagerapplet Partial log (click to expand)
|
14ec6e9
to
461a344
Compare
NetworkManager 1.12.2 was released by now, with above patch and patch in https://bugzilla.gnome.org/show_bug.cgi?id=796752 included |
461a344
to
cae1b12
Compare
@GrahamcOfBorg build networkmanager networkmanagerapplet |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: networkmanager, networkmanagerapplet Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: networkmanager, networkmanagerapplet Partial log (click to expand)
|
networkmanagerapplet doesn't build anymore with the bumped networkmanager. |
Failure on aarch64-linux (full log) Attempted: networkmanager, networkmanagerapplet Partial log (click to expand)
|
I can no longer compile the openconnect plugin after applying this pull request:
|
Yes, see above comment - I didn't receive any feedback on the upstream issue so far...
I could flip this PR back to just apply the patches as before, but we'll then still need to figure out how to bump networkmanager at a later time...
|
fix VPN activation through nm-applet (NixOS#43806), upstream bug https://gitlab.gnome.org/GNOME/network-manager-applet/issues/12
cae1b12
to
24726a3
Compare
rebased and added upstream patch for networkmanager that fixes |
@GrahamcOfBorg build networkmanagerapplet |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: networkmanagerapplet Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: networkmanager Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: networkmanager Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: networkmanager Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: networkmanagerapplet Partial log (click to expand)
|
Motivation for this change
Currently, activating VPN connections via nm-applet fails, but still is possible via
nmcli con up $name
.That's fixed in the commit cherry-picked here, I can now activate VPN connections using nm-applet. Will be fixed in NetworkManager 1.13.0 as well.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)