From: Prarit Bhargava <prarit(a)redhat.com>
kernel.spec: Add glibc-static build requirement
CKI and brew builds resulted in two different values for
CONFIG_CC_CAN_LINK_STATIC. In CKI CONFIG_CC_CAN_LINK_STATIC=y while in
brew CONFIG_CC_CAN_LINK_STATIC was not defined. This occurs because
glibc-static is installed on the CKI build containers and was not
installed in brew.
In order to guarantee consistency across build systems add a build
requirement for the glibc-static package.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -585,6 +585,8 @@ BuildRequires: net-tools, hostname, bc, elfutils-devel
BuildRequires: dwarves
BuildRequires: python3-devel
BuildRequires: gcc-plugin-devel
+# required for CONFIG_CC_CAN_LINK_STATIC=y
+BuildRequires: glibc-static
%ifnarch %{nobuildarches} noarch
BuildRequires: bpftool
%endif
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1538