From 4bb277b58a46ea6bc21c1442cd01e62b28b387cb Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 26 2019 13:56:20 +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/python27.spec b/python27.spec index 0663255..f64c63d 100644 --- a/python27.spec +++ b/python27.spec @@ -1023,7 +1023,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