From 06c78128987a7b5599a419e67ad6aa66a771fa3f Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 25 Sep 2019 06:50:47 +0000 Subject: [PATCH] Avoid using _prefix macro for /usr/lib/debug dir In case of flatpak module builds, _prefix is redefined as /app. rpm-build however hardcodes /usr/lib/debug without using the _prefix macro, so do the same here to match this. This fixes building Python as a flatpak module. https://bugzilla.redhat.com/show_bug.cgi?id=1737933#c14 --- python38.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python38.spec b/python38.spec index 4accab5..11f543d 100644 --- a/python38.spec +++ b/python38.spec @@ -745,7 +745,7 @@ topdir=$(pwd) # information %if %{with gdb_hooks} -DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir} +DirHoldingGdbPy=%{_usr}/lib/debug/%{_libdir} mkdir -p %{buildroot}$DirHoldingGdbPy %endif # with gdb_hooks