Account for reference library paths and release differences
@@ -154,6 +154,8 @@ The refreshed candidate's cold clients also passed the required owner checks. Th
154154
155155The refreshed comparison traces 696 published GCC paths on x86_64 and 588 on AArch64 to package-owned paths under the Vinix compiler triplet. It checks the driver links, headers and compiler internals against the signed installed database. All 165 amd64 and 161 arm64 reference input rows with matching published files have an installed provider backed by a verified source archive. See `foundation/release-mode-migration-gcc-owners-01`, receipt SHA-256 `6b8bd8c685f5386f1b33adedd89758d378281c5239e127e926325cc2ca310bb9`.
156156
157+The reference path check also maps the published OpenMP linker spec and the versioned PCRE2, zlib and LLVM 17 library filenames to their package-owned Vinix paths. The remaining 23 amd64 and 12 arm64 observations are recorded in `reference-differences.tsv`. They include Alpine and Linux configuration, the legacy Mesa owner of the GLX paths, and files outside the candidate's C/C++ and desktop profiles such as the standalone GCC module mapper, Fortran headers and the Mesa OpenCL link. The published ELF dependency tables identify `/sbin/apk` as the sole consumer of `libapk` and show no dependencies on Rusticl or libquadmath. See `foundation/release-mode-migration-reference-paths-02`, receipt SHA-256 `adb42279577ae50499a7dd34c3110a3d61eff88dd1b7c6ba26bebe42eb3cf355`.
158+
157159Run the owner comparison against an installed vpac root on the build worker. It reruns the installed-root auditor, then joins each published path to its actual vpac owner. It retains the original Alpine binary, version, repository and image or sidecar layer. The summary gives the expected Vinix packages, their presence in the signed root and an outstanding check for each input. To inventory an architecture awaiting its first root, omit both client options.
158160
159161```sh
@@ -37,6 +37,12 @@ BINARY_OWNERS = {
3737 "mesa-osmesa": ("mesa-gallium-sdk",),
3838 "mesa-xatracker": ("mesa-gallium-sdk",),
3939}
40+LIBRARY_RELOCATIONS = {
41+ ("llvm17", "usr/lib/libLLVM-17.0.6.so"): "usr/lib/libLLVM-17.so",
42+ ("pcre2", "usr/lib/libpcre2-8.so.0.12.0"): "usr/lib/libpcre2-8.so.0",
43+ ("pcre2", "usr/lib/libpcre2-posix.so.3.0.5"): "usr/lib/libpcre2-posix.so.3",
44+ ("zlib", "usr/lib/libz.so.1.3.2"): "usr/lib/libz.so.1",
45+}
4046
4147
4248def providers(row, path=None):
@@ -106,6 +112,9 @@ def relocated(row, path, arch, versions):
106112 if origin == "binutils" and path.startswith(f"usr/{old_target}/"):
107113 return f"usr/{target}/" + path.removeprefix(f"usr/{old_target}/")
108114 if origin == "gcc":
115+ upstream = row["version"].rsplit("-r", 1)[0]
116+ if path == f"usr/lib/gcc/{old_target}/{upstream}/libgomp.spec":
117+ return "usr/lib/libgomp.spec"
109118 for directory in ("usr/lib/gcc", "usr/libexec/gcc"):
110119 prefix = f"{directory}/{old_target}/"
111120 if path.startswith(prefix):
@@ -117,7 +126,7 @@ def relocated(row, path, arch, versions):
117126 return "usr/bin/cc"
118127 if driver and "/" not in driver:
119128 return f"usr/bin/{target}-{driver}"
120- return None
129+ return LIBRARY_RELOCATIONS.get((origin, path))
121130
122131
123132def replacement(row, path):