Rebase x86_64_v2 reporegistry patch onto relocated osbuild/image-builder vendor path #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "triage/fix-osbuild-composer-manual-68321"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The osbuild-composer 164->176 update restructured the vendored library: the
reporegistrypackage (and itsrpmmd/distroidparsersiblings) moved fromvendor/github.com/osbuild/images/...tovendor/github.com/osbuild/image-builder/....The downstream AlmaLinux patch #1000
(
0001-reporegistry-serve-x86_64_v2-RPMs-on-AlmaLinux-10-x8.patch) stilltargeted the old path
vendor/github.com/osbuild/images/pkg/reporegistry/reporegistry.go,which no longer exists in the 176 Source0 tarball. rpmbuild's
%prepaborted with"No file to patch. Skipping patch. / 3 out of 3 hunks ignored".
Fix
Rebased the patch against the new vendor location
vendor/github.com/osbuild/image-builder/pkg/reporegistry/reporegistry.go.The file content of
reposByDistroArch()and the surrounding functions isotherwise unchanged between 164 and 176, so all three hunks re-express at the
same offsets:
@@ -4,6 +4,9 @@): addos/exec,runtime,stringsimports.The two import context lines were updated to the new
osbuild/image-builderpackage paths.
@@ -99,6 +102,52 @@): thehostIsX8664V2(),distroHasX8664V2Variant()andrewriteBaseurlsTov2()helpers, insertedbetween
ReposByArchNameandreposByDistroArch.@@ -117,6 +166,10 @@): the x86_64->x86_64_v2 baseurl rewritedispatch inside
reposByDistroArch.Verified
rpmmd.RepoConfig.BaseURLsanddistroidparser.DefaultParserstillexist under the new path. The downstream-only x86_64_v2 rewrite behaviour is
preserved exactly.
Verification
patch -p1 --fuzz=0applies all 3 hunks cleanly against the unpackedosbuild-composer-176 tree (dry-run and real apply both succeed).
Follow-up (separate file, not fixed here)
The same vendor relocation affects
config.yaml: itsreplaceblock injects%installlines referencingvendor/github.com/osbuild/images/data/repositories/almalinux*,but that data now lives under
vendor/github.com/osbuild/image-builder/data/repositories/. This would faillater in
%installand should be updated to theimage-builderpath in afollow-up change (out of scope for the single-file %prep unblock here).