Skip to content

[CLK 6.18] spec: use system bindgen-cli on el9 and drop bundled bindgen - #1875

Closed
bmastbergen wants to merge 1 commit into
ciq-6.18.yfrom
{bmastbergen_system-bindgen}_ciq-6.18.y
Closed

bmastbergen wants to merge 1 commit into
ciq-6.18.yfrom
{bmastbergen_system-bindgen}_ciq-6.18.y

Conversation

@bmastbergen

Copy link
Copy Markdown
Collaborator

Summary

  • The kernel's Rust code needs 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 system bindgen-cli package (available in CRB).
  • Rocky 9.8 and 9.9 now ship bindgen-cli in CRB too (verified on a Rocky 9.9 host: bindgen-cli-0.72.1-1.el9 from the crb repo, available for both x86_64 and aarch64; the standard mock rocky-9 template ships with CRB enabled). So the bundling is no longer needed on el9 either.
  • Make BuildRequires: bindgen-cli unconditional, drop Source5000 and the %build cargo build, delete ciq/SOURCES/bundle_bindgen.sh, and drop the "Bundle bindgen" step plus the now-unneeded rust/cargo container deps from the RPM Build workflow. Also clean the stale ciq/SOURCES/bindgen-cli* .gitignore entries.
  • After this, SRPM prep for every EL version is just ./ciq/SOURCES/generate_tarball.sh.
  • Out of scope: the ciq-6.12.y tree, which still bundles bindgen-cli from source (its spec notes bindgen is not packaged in Rocky 9.6).
  • %changelog is 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 one BuildRequires: bindgen-cli, no Source5000/BINDGEN_DIR/cargo build remnants, bindgen --version still runs in %build, and Source0 expands to linux-6.18.66-1.1.el9/el10.tar.zst respectively.
  • Confirmed bindgen-cli availability in Rocky 9 CRB on a Rocky 9.9 host (bindgen-cli.x86_64 and bindgen-cli.aarch64 0.72.1-1.el9), with CRB enabled in the mock rocky-9 template.
  • rpm-build.yml still parses as valid YAML.
  • RPM Build workflow green on this PR for el9 + el10, x86_64 + aarch64.

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
@bmastbergen bmastbergen closed this Dec 3, 2026
@bmastbergen
bmastbergen deleted the {bmastbergen_system-bindgen}_ciq-6.18.y branch December 3, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant