Skip to content

Commit ecac06d

Browse files
committed
redhat: find-debuginfo workaround is no longer needed on F42
JIRA: https://issues.redhat.com/browse/RHEL-85401 Upstream Status: RHEL only commit 4978183a89ec4a5dd1bfbb487321641a5cdfc016 Author: Jan Stancek <jstancek@redhat.com> Date: Fri Mar 28 02:36:50 2025 -0400 redhat: find-debuginfo workaround is no longer needed on F42 Make it conditional and use for Fedora <= 41. Fedora 42 and later no longer need the workaround as they can override tools with target versions. Signed-off-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Jan Stancek <jstancek@redhat.com>
1 parent aedfa7e commit ecac06d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redhat/kernel.spec.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,13 +834,16 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
834834
%define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu-
835835
%define __strip %{_build_arch}-linux-gnu-strip
836836

837+
%if 0%{?fedora} && 0%{?fedora} <= 41
837838
# Work around find-debuginfo for cross builds.
838839
# find-debuginfo doesn't support any of CROSS options (RHEL-21797),
839840
# and since debugedit > 5.0-16.el10, or since commit
840841
# dfe1f7ff30f4 ("find-debuginfo.sh: Exit with real exit status in parallel jobs")
841-
# it now aborts and build fails.
842+
# it now aborts on failure and build fails.
843+
# debugedit-5.1-5 in F42 added support to override tools with target versions.
842844
%undefine _include_gdb_index
843845
%endif
846+
%endif
844847

845848
# These below are required to build man pages
846849
%if %{with_perf}

0 commit comments

Comments
 (0)