From 1f1435d585b032bc6e0305c6a3e4dd16d60317b9 Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Mon, 16 Mar 2020 13:34:02 +0100 Subject: [PATCH] pkg: fedora: Make sure build-id's are unique This will make it possible to install multiple -devel packages in parallel, just like with the stock kernel. Signed-off-by: Dorian Stoll --- pkg/fedora/kernel-surface/kernel-surface.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/fedora/kernel-surface/kernel-surface.spec b/pkg/fedora/kernel-surface/kernel-surface.spec index 34b4fd356..f4ca1b1bf 100755 --- a/pkg/fedora/kernel-surface/kernel-surface.spec +++ b/pkg/fedora/kernel-surface/kernel-surface.spec @@ -146,6 +146,10 @@ pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \ scripts/gen_compile_commands.py %build + +# This ensures build-ids are unique to allow parallel debuginfo +perl -p -i -e "s/^CONFIG_BUILD_SALT.*/CONFIG_BUILD_SALT=\"%{kernel_name}\"/" .config + make %{?_smp_mflags} all LOCALVERSION=-%{kernel_localversion} ARCH=%{_target_cpu} %define __modsign_install_post \