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
This commit is contained in:
Kalev Lember 2019-09-25 06:50:47 +00:00 committed by Miro Hrončok
parent 4352870f13
commit 06c7812898

View File

@ -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