michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 5 months ago
Clone
Florian Festi f3da53
From 1a2554da434548e916240796fe7ca9689c5771fe Mon Sep 17 00:00:00 2001
Florian Festi f3da53
From: Panu Matilainen <pmatilai@redhat.com>
Florian Festi f3da53
Date: Thu, 27 May 2021 13:58:58 +0300
Florian Festi f3da53
Subject: [PATCH] Macroize find-debuginfo script location
Florian Festi f3da53
Florian Festi f3da53
Makes it easier to handle varying paths, mainly in preparation for the
Florian Festi f3da53
next step.
Florian Festi f3da53
Florian Festi f3da53
(cherry picked from commit ce48167f37af59b6366083fb78a314f7931c0c6b)
Florian Festi f3da53
---
Florian Festi f3da53
 configure.ac | 1 +
Florian Festi f3da53
 macros.in    | 4 +++-
Florian Festi f3da53
 2 files changed, 4 insertions(+), 1 deletion(-)
Florian Festi f3da53
Florian Festi f3da53
diff --git a/configure.ac b/configure.ac
Florian Festi f3da53
index 39f9a0e5b..35b4dff4c 100644
Florian Festi f3da53
--- a/configure.ac
Florian Festi f3da53
+++ b/configure.ac
Florian Festi f3da53
@@ -113,6 +113,7 @@ AC_PATH_PROG(__NM, nm, /usr/bin/nm, $MYPATH)
Florian Festi f3da53
 AC_PATH_PROG(__OBJCOPY, objcopy, /usr/bin/objcopy, $MYPATH)
Florian Festi f3da53
 AC_PATH_PROG(__OBJDUMP, objdump, /usr/bin/objdump, $MYPATH)
Florian Festi f3da53
 AC_PATH_PROG(__STRIP, strip, /usr/bin/strip, $MYPATH)
Florian Festi f3da53
+AC_PATH_PROG(__FIND_DEBUGINFO, find-debuginfo, /usr/bin/find-debuginfo, $MYPATH)
Florian Festi f3da53
 
Florian Festi f3da53
 AC_PATH_PROG(__GIT, git, /usr/bin/git, $MYPATH)
Florian Festi f3da53
 AC_PATH_PROG(__HG, hg, /usr/bin/hg, $MYPATH)
Florian Festi f3da53
diff --git a/macros.in b/macros.in
Florian Festi f3da53
index 24b124702..2bcf07ef8 100644
Florian Festi f3da53
--- a/macros.in
Florian Festi f3da53
+++ b/macros.in
Florian Festi f3da53
@@ -80,6 +80,8 @@
Florian Festi f3da53
 %__remsh		%{__rsh}
Florian Festi f3da53
 %__strip		@__STRIP@
Florian Festi f3da53
 
Florian Festi f3da53
+%__find_debuginfo	@__FIND_DEBUGINFO@
Florian Festi f3da53
+
Florian Festi f3da53
 #==============================================================================
Florian Festi f3da53
 # Conditional build stuff.
Florian Festi f3da53
 
Florian Festi f3da53
@@ -149,7 +151,7 @@
Florian Festi f3da53
 #       _find_debuginfo_vendor_opts to pass options to the script.
Florian Festi f3da53
 #
Florian Festi f3da53
 %__debug_install_post   \
Florian Festi f3da53
-    %{_rpmconfigdir}/find-debuginfo.sh \\\
Florian Festi f3da53
+    %{__find_debuginfo} \\\
Florian Festi f3da53
     %{?_smp_build_ncpus:-j%{_smp_build_ncpus}} \\\
Florian Festi f3da53
     %{?_missing_build_ids_terminate_build:--strict-build-id} \\\
Florian Festi f3da53
     %{?_no_recompute_build_ids:-n} \\\
Florian Festi f3da53
-- 
Florian Festi f3da53
2.41.0
Florian Festi f3da53