linux/scripts/package
Nathan Chancellor afdfb71c01
kbuild: rpm-pkg: Fix manual debuginfo generation when using .src.rpm
Commit 62089b8048 ("kbuild: rpm-pkg: Generate debuginfo package
manually") added uses of OBJCOPY and READELF, variables from Kbuild.
These variables are defined and work properly when using the binrpm-pkg
target because rpmbuild is run within Kbuild. However, these variables
are not defined when building from a source RPM package generated with
the srcrpm-pkg target, breaking the build when generating the debug info
subpackage.

Define a default value for these variables so that these commands
respect the value from Kbuild but continue to work when built from a
source RPM package.

Cc: stable@vger.kernel.org
Fixes: 62089b8048 ("kbuild: rpm-pkg: Generate debuginfo package manually")
Reported-by: Lukas Herbolt <lukas@herbolt.com>
Closes: https://lore.kernel.org/20260212135855.147906-2-lukas@herbolt.com/
Tested-by: Lukas Herbolt <lukas@herbolt.com>
Link: https://patch.msgid.link/20260213-fix-debuginfo-srcrpm-pkg-v1-1-45cd0c0501b9@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
2026-02-13 14:27:45 -05:00
..
debian kbuild: deb-pkg: don't set KBUILD_BUILD_VERSION unconditionally 2025-03-23 00:56:12 +09:00
builddeb kbuild: deb-pkg: allow hooks also in /usr/share/kernel 2025-01-10 23:01:21 +09:00
buildtar kbuild: package: add -e and -u options to some shell scripts 2024-07-16 16:06:18 +09:00
gen-diff-patch kbuild: package: add -e and -u options to some shell scripts 2024-07-16 16:06:18 +09:00
install-extmod-build kbuild: install-extmod-build: Properly fix CC expansion when ccache is used 2025-11-11 22:31:34 -07:00
kernel.spec kbuild: rpm-pkg: Fix manual debuginfo generation when using .src.rpm 2026-02-13 14:27:45 -05:00
mkdebian kbuild: deb-pkg: Add libdw-dev:native to Build-Depends-Arch 2025-05-12 15:03:17 +09:00
mkspec kernel: rpm-pkg: Restore find-debuginfo.sh approach to -debuginfo package 2026-02-13 14:26:08 -05:00
PKGBUILD kbuild: pacman-pkg: hardcode module installation path 2025-03-23 00:56:13 +09:00
snapcraft.template kbuild: remove the last use of old cmd_src_tar rule in packaging 2023-11-28 11:38:32 +09:00