Repository navigation
[CLK 6.18] spec: use system bindgen-cli on el9 and drop bundled bindgen - #1875
Closed
bmastbergen wants to merge 1 commit into
Closed
bmastbergen wants to merge 1 commit into
bmastbergen wants to merge 1 commit into
Conversation
Rocky 9.8 and 9.9 ship bindgen-cli in CRB, so the bundled bindgen-cli source that was originally added for Rocky 9.6 builds is no longer needed. Use the system bindgen-cli package on all EL versions via an unconditional BuildRequires, the same mechanism already used for el10. - Remove the bundled bindgen-cli source (Source5000) and the %build cargo build that built it into PATH - Remove ciq/SOURCES/bundle_bindgen.sh, which vendored bindgen-cli from crates.io into the SRPM sources - Drop the 'Bundle bindgen' step and the now-unneeded rust/cargo container deps from the RPM Build workflow - Drop the stale ciq/SOURCES/bindgen-cli* .gitignore entries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bindgen. This spec bundled bindgen-cli from crates.io (Source5000, built with cargo inside%build) because bindgen wasn't packaged when builds ran on Rocky 9.6 builders. el10 already uses the systembindgen-clipackage (available in CRB).bindgen-cliin CRB too (verified on a Rocky 9.9 host:bindgen-cli-0.72.1-1.el9from thecrbrepo, available for both x86_64 and aarch64; the standard mockrocky-9template ships with CRB enabled). So the bundling is no longer needed on el9 either.BuildRequires: bindgen-cliunconditional, dropSource5000and the%buildcargo build, deleteciq/SOURCES/bundle_bindgen.sh, and drop the "Bundle bindgen" step plus the now-unneededrust/cargocontainer deps from the RPM Build workflow. Also clean the staleciq/SOURCES/bindgen-cli*.gitignoreentries../ciq/SOURCES/generate_tarball.sh.ciq-6.12.ytree, which still bundles bindgen-cli from source (its spec notes bindgen is not packaged in Rocky 9.6).%changelogis intentionally untouched; it is regenerated from commit subjects at the next spec bump.Test plan
rpmspec -P --define "rhel 9"and--define "rhel 10"both parse cleanly: exactly oneBuildRequires: bindgen-cli, noSource5000/BINDGEN_DIR/cargo buildremnants,bindgen --versionstill runs in%build, andSource0expands tolinux-6.18.66-1.1.el9/el10.tar.zstrespectively.bindgen-cliavailability in Rocky 9 CRB on a Rocky 9.9 host (bindgen-cli.x86_64andbindgen-cli.aarch640.72.1-1.el9), with CRB enabled in the mockrocky-9template.rpm-build.ymlstill parses as valid YAML.