[Rpm-maint] [PATCH] Make sure that debugsourcefiles.list is generated in the build dir.

Mark Wielaard mark at klomp.org
Wed Jul 26 00:37:17 UTC 2017


The %_debugsource_template expects the debugsourcefiles.list file
to be in the (current) build dir. Make sure that is always the case
even if find-debuginfo.sh was invoked in a different (sub) directory
by adding the build dir path as explicit argument to -S.

Signed-off-by: Mark Wielaard <mark at klomp.org>
---
 macros.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/macros.in b/macros.in
index 8518228..147db83 100644
--- a/macros.in
+++ b/macros.in
@@ -185,7 +185,7 @@
     %{?_unique_debug_srcs:--unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\
     %{?_find_debuginfo_dwz_opts} \\\
     %{?_find_debuginfo_opts} \\\
-    %{?_debugsource_packages:-S debugsourcefiles.list} \\\
+    %{?_debugsource_packages:-S "%{_builddir}/%{?buildsubdir}/debugsourcefiles.list"} \\\
     "%{_builddir}/%{?buildsubdir}"\
 %{nil}
 
-- 
1.8.3.1



More information about the Rpm-maint mailing list