Unable build kernel locally because command fedpkg mockbuild failed with error "Empty %files file /builddir/build/BUILD/kernel-5.19-rc8-17-g39c3c396f813/debugfiles.list"
Full build log: https://pastebin.com/48ZYg3XQ
I also tried build kernels which early build successfully, but now all build ends with same error.
For example "kernel-5.19.0-0.rc7.20220722git68e77ffbfd06.56": https://pastebin.com/zgdEYuxR
Looks like something broken in the "fedpkg mockbuild" :(
From: Miko Larsson on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1923
In !961, it was proposed that STRUCTLEAK_BYREF_ALL should be enabled,
but that specific proposal was rejected due to structleak being a GCC
plugin. However, in GCC 12, support for INIT_STACK_ALL_ZERO was
introduced, which (if I'm not mistaken) is functionally identical to
STRUCTLEAK_BYREF_ALL, so we should probably enable this for Fedora.
Signed-off-by: Miko Larsson <mikoxyzzz(a)gmail.com>
---
redhat/configs/common/generic/CONFIG_INIT_STACK_ALL_ZERO => redhat/configs/ark/generic/CONFIG_INIT_STACK_ALL_ZERO | 0
redhat/configs/common/generic/CONFIG_INIT_STACK_NONE => redhat/configs/ark/generic/CONFIG_INIT_STACK_NONE | 0
redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO | 1 +
redhat/configs/fedora/generic/CONFIG_INIT_STACK_NONE | 1 +
4 files changed, 2 insertions(+), 0 deletions(-)
From: Miko Larsson on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1923
In !961, it was proposed that STRUCTLEAK_BYREF_ALL should be enabled,
but that specific proposal was rejected due to structleak being a GCC
plugin. However, in GCC 12, support for INIT_STACK_ALL_ZERO was
introduced, which (if I'm not mistaken) is functionally identical to
STRUCTLEAK_BYREF_ALL, so we should probably enable this for Fedora.
Signed-off-by: Miko Larsson <mikoxyzzz(a)gmail.com>
---
redhat/configs/common/generic/CONFIG_INIT_STACK_ALL_ZERO => redhat/configs/ark/generic/CONFIG_INIT_STACK_ALL_ZERO | 0
redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO | 1 +
2 files changed, 1 insertions(+), 0 deletions(-)
From: Miko Larsson on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1923
In !961, it was proposed that STRUCTLEAK_BYREF_ALL should be enabled,
but that specific proposal was rejected due to structleak being a GCC
plugin. However, in GCC 12, support for INIT_STACK_ALL_ZERO was
introduced, which (if I'm not mistaken) is functionally identical to
STRUCTLEAK_BYREF_ALL, so we should probably enable this for Fedora.
Signed-off-by: Miko Larsson <mikoxyzzz(a)gmail.com>
---
redhat/configs/common/generic/CONFIG_INIT_STACK_ALL_ZERO => redhat/configs/ark/generic/CONFIG_INIT_STACK_ALL_ZERO | 0
redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO | 1 +
2 files changed, 1 insertions(+), 0 deletions(-)
From: Miko Larsson <mikoxyzzz(a)gmail.com>
redhat/configs: Enable INIT_STACK_ALL_ZERO for Fedora
In !961, it was proposed that STRUCTLEAK_BYREF_ALL should be enabled,
but that specific proposal was rejected due to structleak being a GCC
plugin. However, in GCC 12, support for INIT_STACK_ALL_ZERO was
introduced, which (if I'm not mistaken) is functionally identical to
STRUCTLEAK_BYREF_ALL, so we should probably enable this for Fedora.
Signed-off-by: Miko Larsson <mikoxyzzz(a)gmail.com>
diff --git a/redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO b/redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/fedora/generic/CONFIG_INIT_STACK_ALL_ZERO
@@ -0,0 +1 @@
+CONFIG_INIT_STACK_ALL_ZERO=y
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1923
From: Vladis Dronov <vdronov(a)redhat.com>
Add new FIPS module name and version configs
Recently merged upstream 5a44749f65b2 ("crypto: fips - make proc files
report fips module name and version") adds a couple of configs which
defaults need to be set explicitly.
Signed-off-by: Vladis Dronov <vdronov(a)redhat.com>
diff --git a/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_CUSTOM_VERSION b/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_CUSTOM_VERSION
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_CUSTOM_VERSION
@@ -0,0 +1 @@
+# CONFIG_CRYPTO_FIPS_CUSTOM_VERSION is not set
diff --git a/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_NAME b/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_NAME
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_CRYPTO_FIPS_NAME
@@ -0,0 +1 @@
+CONFIG_CRYPTO_FIPS_NAME="Linux Kernel Cryptographic API"
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1909
From: Prarit Bhargava <prarit(a)redhat.com>
self-test: Add test for DIST=".eln"
There's never a dist-git commit with eln data so there's no self-test data
generated for DIST=".eln". To avoid any future errors with DIST=".eln",
add a test to verify that it results in BUILD_TARGET value being set to
"eln".
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/self-test/1005-dist-dump-variables.bats b/redhat/self-test/1005-dist-dump-variables.bats
index blahblah..blahblah 100644
--- a/redhat/self-test/1005-dist-dump-variables.bats
+++ b/redhat/self-test/1005-dist-dump-variables.bats
@@ -16,3 +16,10 @@ load test-lib.bash
[ -d $BATS_TMPDIR ] && rm -rf $BATS_TMPDIR/data
check_status
}
+
+# Purpose: This test verifies the BUILD_TARGET value is "eln" for DIST=".eln".
+@test "eln BUILD_TARGET test" {
+ bt=$(make DIST=".eln" dist-dump-variables | grep "BUILD_TARGET=" | cut -d"=" -f2)
+ run [ "$bt" != "eln" ]
+ check_status
+}
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1919