From 0dc3ea716009e616710e5d363316813844ebb948 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 20 Nov 2026 13:12:44 +0800 Subject: [PATCH 1/2] Use OpenConnect's bundled JSON parser --- crates/openconnect/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/openconnect/build.rs b/crates/openconnect/build.rs index 6ae59fd..d93597a 100644 --- a/crates/openconnect/build.rs +++ b/crates/openconnect/build.rs @@ -115,6 +115,7 @@ fn build_openconnect(deps_dir: &PathBuf, out_dir: &PathBuf) -> PathBuf { .without("libpcsclite", None) .without("libpskc", None) .without("gssapi", None) + .with("builtin-json", None) .with("gnutls", None) .without("openssl", None) .with("gnutls-tss2", Some("no")) From 4ba50ca945de5c9611145f0179b042106e1b0279 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 20 Nov 2026 13:12:44 +0800 Subject: [PATCH 2/2] Document installation from the Gentoo overlay --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 54b0229..e46ba56 100644 --- a/README.md +++ b/README.md @@ -181,14 +181,22 @@ doas pkg_add -D unsigned ./globalprotect-openconnect-*-openbsd-*.tgz ### Gentoo -Available via the `guru` repository: +Add the overlay: ```bash -sudo eselect repository enable guru -sudo emerge --sync guru -sudo emerge --ask net-vpn/GlobalProtect-openconnect +sudo emerge --ask app-eselect/eselect-repository dev-vcs/git +sudo eselect repository add yuezk git https://github.com/yuezk/gentoo-overlay.git +sudo emerge --sync yuezk ``` +Install the prebuilt package (glibc): + +```bash +sudo emerge --ask net-vpn/globalprotect-openconnect-bin::yuezk +``` + +For a source build, use `net-vpn/globalprotect-openconnect::yuezk`. If Portage requests keyword or USE flag changes, review and apply them, then rerun the install command. + ### NixOS Add the flake to your `flake.nix`: