From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0.herbolt.com (mx0.herbolt.com [5.59.97.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CE642F28FB for ; Thu, 12 Feb 2026 13:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.59.97.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770904774; cv=none; b=j+c5u9r0t7/huWY+Ozm/zce5V1cJIAexDnJ/9cLsD7KtQDyCrrXL7fKfxhYMtp8m8HhYzrrW77wTE/JK5KNCGHGfQX9X6fHh0vl3cHN16PPgbCJ5WuUpjEvOahLgFPGByrMGSDR652OKYGOgn+Du+rF7nurGV5D9njCEb9Lki8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770904774; c=relaxed/simple; bh=3I42+xaWATnANNkxqINipeJ3a+/E9Kt2Qth8BPBlG0U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i76dVMKllFUSKm8s6rTdT6FM6EX8iB/0m6kLFsbRR6wYTZRYbb/rE9rUChsVbNVSg9MddZ1XvuEgFB0NLOoRfs6RSsQFHEDgyzJz2FhJOZLlo32hB0Jmqy4qmWA47tkb81Oe9gDAndm9l36UH0F2ZVAQKFCkYmRvdrD4LMwrapo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herbolt.com; spf=pass smtp.mailfrom=herbolt.com; arc=none smtp.client-ip=5.59.97.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=herbolt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=herbolt.com Received: from mx0.herbolt.com (localhost [127.0.0.1]) by mx0.herbolt.com (Postfix) with ESMTP id C82BC180F2C6; Thu, 12 Feb 2026 14:59:25 +0100 (CET) Received: from trufa.intra.herbolt.com.com ([172.168.31.30]) by mx0.herbolt.com with ESMTPSA id uAXPKr3cjWlpZAEAKEJqOA (envelope-from ); Thu, 12 Feb 2026 14:59:25 +0100 From: Lukas Herbolt To: nathan@kernel.org, nsc@kernel.org Cc: linux-kbuild@vger.kernel.org, Lukas Herbolt Subject: [PATCH] kbuild: rpm-pkg: Fix generating debuginfo manually. Date: Thu, 12 Feb 2026 14:58:56 +0100 Message-ID: <20260212135855.147906-2-lukas@herbolt.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The ${OBJCOPY} and ${READELF} are not expanded into path to readelf and objcopy binary so just use the binary name with the %{_bindir} makro. Signed-off-by: Lukas Herbolt --- scripts/package/kernel.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index 0f1c8de1bd95..d032f6aff91b 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -109,11 +109,11 @@ echo /usr/lib/debug/lib/modules/%{KERNELRELEASE}/vmlinux > %{buildroot}/debuginf while read -r mod; do mod="${mod%.o}.ko" dbg="%{buildroot}/usr/lib/debug/lib/modules/%{KERNELRELEASE}/kernel/${mod}" - buildid=$("${READELF}" -n "${mod}" | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p') + buildid=$(%{_bindir}/eu-readelf -n "${mod}" | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p') link="%{buildroot}/usr/lib/debug/.build-id/${buildid}.debug" mkdir -p "${dbg%/*}" "${link%/*}" - "${OBJCOPY}" --only-keep-debug "${mod}" "${dbg}" + %{_bindir}/objcopy --only-keep-debug "${mod}" "${dbg}" ln -sf --relative "${dbg}" "${link}" echo "${dbg#%{buildroot}}" >> %{buildroot}/debuginfo.list -- 2.53.0