qubes-libvchan-xen: link against non-versionned xen libraries #214

Merged
forge merged 1 commit from qubes-libvchan-xen/fix-xen-upgrade-tk2 into main 2025-05-12 13:01:36 +00:00

1 commit

Author SHA1 Message Date
bcc832b2ce
qubes-libvchan-xen: link against non-versionned xen libraries
All checks were successful
/ lint (pull_request) Successful in 33s
/ deploy-v3.21 (pull_request) Successful in 32s
/ build-v3.21 (pull_request) Successful in 1m14s
/ build-v3.20 (pull_request) Successful in 1m15s
/ deploy-v3.20 (pull_request) Successful in 34s
/ deploy-edge (pull_request) Successful in 39s
/ build-edge (pull_request) Successful in 1m20s
Previous workaround to the xen upgrade race condition actually caused
xen to be uninstalled on most systems, breaking the template. This is
thus another approach at fixing the race condition by linking against
non-versionned xen libraries. Thus, a minor version upgrade of xen will
not cause libxenvchan.so to lose xen libraries.

The linking process is changed by adding a step before linking where ld
is linked against libraries where DT_SONAME has been patched with
patchelf. This is not an elegant solution, but it does work. Ideally, we
would find a way for seamless upgrading of xen while the proxy is up.
2025-05-12 08:57:33 -04:00