Files
gentoo-zh/net-proxy
Zakk 07bcd8d5c1 net-proxy/v2rayA: build bundled core from source for 2.4.6
2.4.6 no longer drives an external v2ray/xray; it ships its own core (a fork
of xray-core with the MultiObservatory patches) whose version must match the
service exactly. The reverted prebuilt-binary fix is replaced by a proper
source build.

core and service are separate Go modules with different go.mod, so each is
built from its own vendored deps tarball (v2rayA-core-${PV}-vendor and
v2rayA-service-${PV}-vendor) with -mod=vendor. Extend LICENSE to cover the
dependency trees now statically linked into both binaries. Drop the stale
external v2ray/v2ray-bin/Xray RDEPEND and the meaningless xray USE flag,
depend on app-alternatives/v2ray-geoip and v2ray-geosite, and symlink the
geodata into /usr/share/v2raya where v2rayA looks for it (the /usr/share/xray
path is owned by net-proxy/Xray, so it is not installed here).

Build-tested with network-sandbox and a full emerge: core and service build
entirely from their vendored deps (no module cache, no network); v2raya_core
and v2raya both report 2.4.6; the geodata symlinks resolve to the installed
dat files and the bundled core starts.
2026-07-19 13:03:08 +10:00
..