#2 Avoid using _prefix macro for /usr/lib/debug dir
Merged 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ churchyard/python27 flatpak_prefix  into  master

file modified
+1 -1
@@ -1023,7 +1023,7 @@ 

  # 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

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

Metadata Update from @churchyard:
- Request assigned

4 years ago

Pull-Request has been merged by churchyard

4 years ago