Skip to content

kernel-clk6.12: add ciq-kmod Requires and ship %clk_version macro#1253

Open
josephtate wants to merge 1 commit into
ciq-6.12.yfrom
jtate/clk-kmod-requires-6.12
Open

kernel-clk6.12: add ciq-kmod Requires and ship %clk_version macro#1253
josephtate wants to merge 1 commit into
ciq-6.12.yfrom
jtate/clk-kmod-requires-6.12

Conversation

@josephtate
Copy link
Copy Markdown

Summary

  • Add Requires: ciq-kmod to the kernel-clk6.12 metapackage so the patched kmod binary (which handles xz-compressed symvers in CLK 6.x kernels) is pulled in automatically when the CLK kernel is installed
  • Create /usr/lib/rpm/macros.d/macros.kernel-clk6.12 in kernel-clk6.12-devel containing %clk_version 6.12, so kmod spec files can reference the CLK version without hardcoding it
  • The macros file and %files entry are both guarded to the base (non-variant) devel package only

Test plan

  • Build kernel-clk6.12 and kernel-clk6.12-devel RPMs
  • Verify rpm -qR kernel-clk6.12-*.rpm includes ciq-kmod
  • Verify rpm -ql kernel-clk6.12-devel-*.rpm includes /usr/lib/rpm/macros.d/macros.kernel-clk6.12
  • Verify contents of that file are %clk_version 6.12
  • Verify debug-devel and 64k-devel do NOT own the macros file

🤖 Generated with Claude Code

Require ciq-kmod from the kernel metapackage so the patched kmod binary
(which handles xz-compressed symvers in CLK 6.x kernels) is pulled in
automatically when the CLK kernel is installed.

Ship /usr/lib/rpm/macros.d/macros.kernel-clk6.12 in kernel-clk6.12-devel
so kmod spec files can use %clk_version to name CLK subpackages without
hardcoding the kernel version string.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@PlaidCat PlaidCat requested review from a team, bmastbergen and Copilot and removed request for bmastbergen May 21, 2026 22:08
@PlaidCat PlaidCat requested a review from jdieter May 21, 2026 22:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the kernel-clk6.12 RPM spec to ensure the CLK kernel pulls in the patched ciq-kmod package automatically, and to ship a %clk_version RPM macro via the kernel-clk6.12-devel package for downstream kmod specs to reference.

Changes:

  • Add Requires: ciq-kmod to the kernel-clk6.12 metapackage.
  • Install a macros drop-in file that defines %clk_version %{kernel_major_minor} during the base (non-variant) kernel-devel build.
  • Add the macros file to the %files ... devel list only for the base (non-variant) devel package.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2881 to +2882
install -D -m 0644 /dev/null $RPM_BUILD_ROOT/usr/lib/rpm/macros.d/macros.kernel-%{pkg_suffix}
printf '%%clk_version %{kernel_major_minor}\n' > $RPM_BUILD_ROOT/usr/lib/rpm/macros.d/macros.kernel-%{pkg_suffix}
%{expand:%%files %{?3:%{3}-}devel}\
%defverify(not mtime)\
/usr/src/kernels/%{KVERREL}%{?3:+%{3}}\
%{!?3:/usr/lib/rpm/macros.d/macros.kernel-%{pkg_suffix}}\
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.

2 participants