Skip to content

feat: backport vendored openconnect build to 2.3.x#593

Merged
yuezk merged 10 commits into2.3.xfrom
codex/backport-openconnect-2.3
Apr 18, 2026
Merged

feat: backport vendored openconnect build to 2.3.x#593
yuezk merged 10 commits into2.3.xfrom
codex/backport-openconnect-2.3

Conversation

@yuezk
Copy link
Copy Markdown
Owner

@yuezk yuezk commented Apr 18, 2026

Summary

  • backport the vendored OpenConnect and libxml2 build flow to 2.3.x
  • bundle vpnc-script and hipreport.sh under app-owned paths and add /usr/lib/gpclient fallback lookup
  • add gpclient hip and align packaging and release workflows with the vendored runtime

Main Changes

  • build crates/openconnect from vendored OpenConnect sources with the required patch set
  • add bundled script installation and prefer app-owned HIP and vpnc script paths during lookup
  • update Debian, RPM, Arch, Nix, and GitHub Actions packaging paths and build dependencies for LIBXML2_STATIC=1

API / Usage

  • gpclient now exposes a hip subcommand on 2.3.x
  • gpclient connect --hip now resolves the bundled HIP wrapper by default
  • script discovery prefers /usr/libexec/gpclient/... and also accepts /usr/lib/gpclient/...

Verification

  • cargo check -p gpclient
  • cargo build -p gpclient
  • cargo check -p gpservice
  • ./target/debug/gpclient --help
  • ./target/debug/gpclient hip --cookie 'user=testuser&domain=example&preferred-ip=10.0.0.2' --md5 deadbeef --client-os Linux
  • GPCLIENT_BIN=... packaging/files/usr/libexec/gpclient/hipreport.sh --cookie ... --md5 deadbeef --client-os Linux
  • git diff --check

@yuezk yuezk merged commit a269a60 into 2.3.x Apr 18, 2026
10 checks passed
@yuezk yuezk deleted the codex/backport-openconnect-2.3 branch April 18, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant