michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame SOURCES/rpm-4.14.3-macroize-find-debuginfo-script-location.patch

92d408
From 77007d68782b66f2d00d7b200516731246876dca Mon Sep 17 00:00:00 2001
92d408
From: Panu Matilainen <pmatilai@redhat.com>
92d408
Date: Thu, 27 May 2021 13:58:58 +0300
92d408
Subject: [PATCH] Macroize find-debuginfo script location
92d408
92d408
Makes it easier to handle varying paths, mainly in preparation for the
92d408
next step.
92d408
92d408
Backported for 4.14.3.
92d408
---
92d408
 macros.in | 4 +++-
92d408
 1 file changed, 3 insertions(+), 1 deletion(-)
92d408
92d408
diff --git a/macros.in b/macros.in
92d408
index a6069ee4d..be28a3b28 100644
92d408
--- a/macros.in
92d408
+++ b/macros.in
92d408
@@ -82,6 +82,8 @@
92d408
 %__remsh		%{__rsh}
92d408
 %__strip		@__STRIP@
92d408
 
92d408
+%__find_debuginfo	%{_rpmconfigdir}/find-debuginfo.sh
92d408
+
92d408
 # XXX avoid failures if tools are not installed when rpm is built.
92d408
 %__libtoolize		libtoolize
92d408
 %__aclocal		aclocal
92d408
@@ -177,7 +179,7 @@
92d408
 #	the script.  See the script for details.
92d408
 #
92d408
 %__debug_install_post   \
92d408
-    %{_rpmconfigdir}/find-debuginfo.sh \\\
92d408
+    %{__find_debuginfo} \\\
92d408
     %{?_smp_mflags} \\\
92d408
     %{?_missing_build_ids_terminate_build:--strict-build-id} \\\
92d408
     %{?_no_recompute_build_ids:-n} \\\
92d408
-- 
92d408
2.33.1
92d408