From ca4e4cf01d75d77997afab0cd9f5f65890748f46 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 28 2019 17:21:15 +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/python2.spec b/python2.spec index d763257..d3c5c04 100644 --- a/python2.spec +++ b/python2.spec @@ -1273,7 +1273,7 @@ make install DESTDIR=%{buildroot} # but doing so generated noise when ldconfig was rerun (rhbz:562980) # %if 0%{?with_gdb_hooks} -DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir} +DirHoldingGdbPy=%{_usr}/lib/debug/%{_libdir} PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName-%{version}-%{release}.%{_arch}.debug-gdb.py mkdir -p %{buildroot}$DirHoldingGdbPy