Add back debuginfo files to the right place

Redefine the __debug_install_post macro to add our own files
into the debuginfo package
This commit is contained in:
Stef Walter 2015-03-21 08:46:27 +01:00
parent a78ac8fa13
commit cf02704454

View File

@ -25,7 +25,7 @@ Version: %{gitcommit}
%else %else
Version: 0.44 Version: 0.44
%endif %endif
Release: 2%{?dist} Release: 3%{?dist}
Summary: A user interface for Linux servers Summary: A user interface for Linux servers
License: LGPLv2+ License: LGPLv2+
@ -220,14 +220,20 @@ find %{buildroot}%{_datadir}/%{name}/kubernetes -type f > kubernetes.list
%endif %endif
sed -i "s|%{buildroot}||" *.list sed -i "s|%{buildroot}||" *.list
# XXX for now put all debug info in the shell package # Build the package lists for debug package
find %{buildroot}/debug%{_datadir}/%{name} -type f >> shell.list find %{buildroot}/debug%{_datadir}/%{name} -type f > debug.list
sed -i "s|%{buildroot}/debug||" shell.list sed -i "s|%{buildroot}/debug||" debug.list
# Move the debug files into place mixed in with the other files # Move the debug files into place mixed in with the other files
tar -C %{buildroot}/debug -cf - . | tar -C %{buildroot} -xf - tar -C %{buildroot}/debug -cf - . | tar -C %{buildroot} -xf -
rm -rf %{buildroot}/debug rm -rf %{buildroot}/debug
# Redefine how debug info is built to slip in our extra debug files
%define __debug_install_post \
%{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_include_minidebuginfo:-m} %{?_find_debuginfo_dwz_opts} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}" \
cat debug.list >> %{_builddir}/%{?buildsubdir}/debugfiles.list \
%{nil}
%files %files
%{_docdir}/%{name}/AUTHORS %{_docdir}/%{name}/AUTHORS
%{_docdir}/%{name}/COPYING %{_docdir}/%{name}/COPYING
@ -386,6 +392,9 @@ fi
%endif %endif
%changelog %changelog
* Sat Mar 21 2015 Stef Walter <stefw@redhat.com> - 0.44-3
- Add back debuginfo files to the right place
* Fri Mar 20 2015 Stef Walter <stefw@redhat.com> - 0.44-2 * Fri Mar 20 2015 Stef Walter <stefw@redhat.com> - 0.44-2
- Disable separate debuginfo for now: build failure - Disable separate debuginfo for now: build failure