-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
globalprotect-openconnect_2: init at 2.3.9 #350777
Conversation
01df7ea
to
a6d026b
Compare
Result of |
10a1cd4
to
f123c93
Compare
Result of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@tomodachi94 If ever you have time to check out this pr ❤️ |
I'll take a look in a little bit ❤️ thanks for the ping. Another good reviewer would be the maintainer of the regular ( |
At first glance this looks like a partial duplicate of #316526 by @Binary-Eater, though that work didn't attempt to package the GUI. Not sure whether it makes sense to try using this packaging of the GUI with the existing packaging of I haven't tried this locally yet but will try to find time for that soon. |
Turns out the gui cannot be compiled with rust as the sources are not available on the github. |
I feel like, if the gui is used, it makes sense to have all the binaries in one package since
|
The license for the GUI component is not GPLv3 while the rest of the components are. That messiness is main reason why I avoided touching the GUI in packaging work for v2. Since v1 is unmaintained, I did not feel comfortable persisting it. |
That said, I would be more keen on bringing back the v1 globalprotect-openconnect as a separate package than dealing with the proprietary licensed and paidware gui for v2. |
Maybe we can change the license of the v2 full package to unfree, whilst keeping your packaged version of gpclient and gpauth as gpl3 packages, but I feel like the gui is a nice add to the packages and it requires gpservice which is unpackaged as of now. |
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.
The new changes do not work since the copied desktop entry will need to be patched using substituteInPlace
.
❯ sudo -E gpclient connect --default-browser XXXX
Place your right index finger on the fingerprint reader
Failed to match fingerprint
Place your right index finger on the fingerprint reader
[2024-11-13T20:32:26Z INFO gpclient::cli] gpclient started: 2.3.9 (2024-11-13)
[2024-11-13T20:32:26Z INFO gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-11-13T20:32:26Z INFO gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-11-13T20:32:28Z INFO gpauth::cli] gpauth started: 2.3.9 (2024-11-13)
[2024-11-13T20:32:28Z INFO gpapi::process::browser_authenticator] Launching the default browser...
[2024-11-13T20:32:28Z INFO gpauth::cli] Please continue the authentication process in the default browser
[2024-11-13T20:32:28Z INFO gpauth::cli] Listening authentication data on port 36861
[2024-11-13T20:32:28Z INFO gpauth::cli] If it hangs, please check the logs at `/tmp/gpcallback.log` for more information
# Hangs here
Turns out there is a bug running the gui with |
My suggestion would be to file an issue upstream, and go from there. |
Yeah, I never felt comfortable with chucking the GUI into nixpkgs given it's proprietary, hard to patch, and dependent on webkitgtk (so it's built against a fixed version of it most likely and shipped). It seems like a huge maintenance cost. Even packages like protonmail-bridge strip their GUI components in nixpkgs. |
The GUI still looks like a nice feature to have, especially since we are replacing the old version of the package which had the GUI I think 🤔 . |
I would be ok with bringing back v1 which was fully open (so patching is an option) rather than trying to replace it with v2's GUI (where a paid license is required to use it anyways). |
Just opened #355758 |
And some people might be willing to pay to use the GUI I guess, maybe, the right way is to bring back the v1 to life, i don't know. |
Yeah, my issue is having a bunch of broken packages in nixpkgs. I think keeping v1's GUI workable is viable, but I do not feel comfortable about v2. The nice thing about nixos is it is trivial to include external packaging. I think nixpkgs at the very least should contain working packages that are not trivially susceptible to breaking on upgrades and do not need pinned dependencies. |
That's a fair point |
I can add you as a maintainer on the existing in-tree packages for v2 as well (I would actually really appreciate that if you do not mind). |
That would be very nice. |
@m1dugh has contributed a lot in NixOS#350777. The upstream state of the GUI component combined with the paid licensing model has made it daunting to consider integrating into nixpkgs. Instead, add @m1dugh as a co-maintainer for the existing v2 packages. Signed-off-by: Rahul Rameshbabu <[email protected]>
@m1dugh has contributed a lot in NixOS#350777. The upstream state of the GUI component combined with the paid licensing model has made it daunting to consider integrating into nixpkgs. Instead, add @m1dugh as a co-maintainer for the existing v2 packages. Signed-off-by: Rahul Rameshbabu <[email protected]>
Just opened #355768. |
@m1dugh has contributed a lot in NixOS#350777. The upstream state of the GUI component combined with the paid licensing model has made it daunting to consider integrating into nixpkgs. Instead, add @m1dugh as a co-maintainer for the existing v2 packages. Signed-off-by: Rahul Rameshbabu <[email protected]>
I guess we can just close this one now regarding @Binary-Eater comments on package being broken for gui. |
We can in parallel explore reaching out to the upstream maintainer and revive this PR if we see enough interest. Does that seem reasonable as an action plan? |
That works for me. |
Going to close this PR now that the other two have merged. We can revisit this later on if need be/desired. |
@m1dugh has contributed a lot in NixOS#350777. The upstream state of the GUI component combined with the paid licensing model has made it daunting to consider integrating into nixpkgs. Instead, add @m1dugh as a co-maintainer for the existing v2 packages. Signed-off-by: Rahul Rameshbabu <[email protected]>
The version 2 of globalprotect-openconnect
The package already exists in the registry, however, the version adds considerable breaking changes including
api keys for the frontend.
Things done
Built on platform(s)
Tested, as applicable:
Tested compilation of all packages that depend on this change using
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usageTested basic functionality of all binary files (usually in
./result/bin/
)24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
Fits CONTRIBUTING.md.
Add a 👍 reaction to [pull requests you find important].