NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.9k stars 13.95k forks source link

gpclient refers to /usr/bin/gpservice #350111

Open brianmay opened 4 hours ago

brianmay commented 4 hours ago

Describe the bug

Error trying to launch GUI.

Steps To Reproduce

Steps to reproduce the behavior:

  1. gpclient launch-gui
  2. Observe failure

Expected behavior

Should open GUI

Screenshots

# gpclient launch-gui
[2024-10-20T23:01:11Z INFO  gpclient::cli] gpclient started: 2.3.7 (2024-10-12)
[2024-10-20T23:01:11Z INFO  gpclient::launch_gui] Log file: /home/brian/.local/share/gpclient/gpclient.log
[2024-10-20T23:01:11Z INFO  gpclient::launch_gui] Service exited with status: exit status: 127

# cat /home/brian/.local/share/gpclient/gpclient.log
Error accessing /usr/bin/gpservice: No such file or directory
``

### Additional context
Add any other context about the problem here.

### Notify maintainers

<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->

@Binary-Eater 

### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.

```console
# nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.57, NixOS, 24.11 (Vicuna), 24.11.20241018.4c2fcb0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/riqkpszjqk02bi1wppfg8ip5xvh102qd-source`

Add a :+1: reaction to issues you find important.

brianmay commented 4 hours ago

I can't find any package in nixos unstable that provides gpservice. It use to be provided by globalprotect-openconnect.

brianmay commented 4 hours ago

I am somewhat unclear why the services.globalprotect option was removed in nixos unstable.

brianmay commented 3 hours ago

Never mind, I finally found in the release notes:

Legacy package globalprotect-openconnect 1.x and related module globalprotect-vpn were dropped. Two new packages gpauth and gpclient from the 2.x version of the GlobalProtect-openconnect project are added in its place. The GUI components related to the project are non-free and not packaged.

I guess that might be why services.globalprotect was dropped. Is there any information here what happened? Did they recently change there license or something?

I found the magical incarnation of the gpclient command line that appears to work.