From cbb927f346d17d67e9f43d3666f54ebb01d000a0 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 25 2019 13:54:58 +0000 Subject: 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 --- diff --git a/python3.spec b/python3.spec index 597ae02..46b32c5 100644 --- a/python3.spec +++ b/python3.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