clean up some debuginfo stuff & python-sitearch

This commit is contained in:
Kyle McMartin 2014-11-17 16:58:58 -05:00
parent e955e6d055
commit d0c82b7f5a

View File

@ -376,6 +376,7 @@ Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}
# #
# List the packages used during the kernel build # List the packages used during the kernel build
# #
BuildRequires: python-devel
BuildRequires: kmod, patch, bash, sh-utils, tar BuildRequires: kmod, patch, bash, sh-utils, tar
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
@ -384,7 +385,7 @@ BuildRequires: net-tools, hostname, bc
BuildRequires: sparse BuildRequires: sparse
%endif %endif
%if %{with_perf} %if %{with_perf}
BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel perl(ExtUtils::Embed) bison flex
BuildRequires: audit-libs-devel BuildRequires: audit-libs-devel
%ifnarch s390 s390x %{arm} %ifnarch s390 s390x %{arm}
BuildRequires: numactl-devel BuildRequires: numactl-devel
@ -396,7 +397,8 @@ BuildRequires: pciutils-devel gettext ncurses-devel
BuildConflicts: rhbuildsys(DiskFree) < 500Mb BuildConflicts: rhbuildsys(DiskFree) < 500Mb
%if %{with_debuginfo} %if %{with_debuginfo}
BuildRequires: rpm-build, elfutils BuildRequires: rpm-build, elfutils
%define debuginfo_args --strict-build-id -r %define _missing_build_ids_terminate_build 1
%global _find_debuginfo_opts -r
%endif %endif
%if %{signmodules} %if %{signmodules}
@ -697,7 +699,7 @@ This package provides debug information for the perf package.
# symlinks because of the trailing nonmatching alternation and # symlinks because of the trailing nonmatching alternation and
# the leading .*, because of find-debuginfo.sh's buggy handling # the leading .*, because of find-debuginfo.sh's buggy handling
# of matching the pattern against the symlinks file. # of matching the pattern against the symlinks file.
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/traceevent/plugins/.*|XXX' -o perf-debuginfo.list} %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|.*%%{_libdir}/traceevent/plugins/.*|XXX' -o perf-debuginfo.list}
%package -n python-perf %package -n python-perf
Summary: Python bindings for apps which will manipulate perf events Summary: Python bindings for apps which will manipulate perf events
@ -707,8 +709,6 @@ The python-perf package contains a module that permits applications
written in the Python programming language to use the interface written in the Python programming language to use the interface
to manipulate perf events. to manipulate perf events.
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%package -n python-perf-debuginfo %package -n python-perf-debuginfo
Summary: Debug information for package perf python bindings Summary: Debug information for package perf python bindings
Group: Development/Debug Group: Development/Debug
@ -717,8 +717,8 @@ AutoReqProv: no
%description -n python-perf-debuginfo %description -n python-perf-debuginfo
This package provides debug information for the perf python bindings. This package provides debug information for the perf python bindings.
# the python_sitearch macro should already be defined from above %define __python_sitearch %%{python_sitearch}
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{python_sitearch}/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list} %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_libdir}/python*/site-packages/perf.so(\.debug)?|XXX' -o python-perf-debuginfo.list}
%endif # with_perf %endif # with_perf
@ -773,7 +773,7 @@ This package provides debug information for package kernel-tools.
# symlinks because of the trailing nonmatching alternation and # symlinks because of the trailing nonmatching alternation and
# the leading .*, because of find-debuginfo.sh's buggy handling # the leading .*, because of find-debuginfo.sh's buggy handling
# of matching the pattern against the symlinks file. # of matching the pattern against the symlinks file.
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|XXX' -o kernel-tools-debuginfo.list} %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*%%{_bindir}/centrino-decode(\.debug)?|.*%%{_bindir}/powernow-k8-decode(\.debug)?|.*%%{_bindir}/cpupower(\.debug)?|.*%%{_libdir}/libcpupower.*|.*%%{_bindir}/turbostat(\.debug)?|.*%%{_bindir}/x86_energy_perf_policy(\.debug)?|.*%%{_bindir}/tmon(\.debug)?|XXX' -o kernel-tools-debuginfo.list}
%endif # with_tools %endif # with_tools
@ -792,7 +792,7 @@ AutoReqProv: no\
%description -n %{name}%{?1:-%{1}}-debuginfo\ %description -n %{name}%{?1:-%{1}}-debuginfo\
This package provides debug information for package %{name}%{?1:-%{1}}.\ This package provides debug information for package %{name}%{?1:-%{1}}.\
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\ This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\ %{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
%{nil} %{nil}
# #
@ -1823,10 +1823,6 @@ popd
%if %{with_debuginfo} %if %{with_debuginfo}
%define __debug_install_post \
/usr/lib/rpm/find-debuginfo.sh %{debuginfo_args} %{_builddir}/%{?buildsubdir}\
%{nil}
%ifnarch noarch %ifnarch noarch
%global __debug_package 1 %global __debug_package 1
%files -f debugfiles.list debuginfo-common-%{_target_cpu} %files -f debugfiles.list debuginfo-common-%{_target_cpu}
@ -2074,7 +2070,7 @@ fi
%files -n python-perf %files -n python-perf
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch} %{__python_sitearch}
%if %{with_debuginfo} %if %{with_debuginfo}
%files -f perf-debuginfo.list -n perf-debuginfo %files -f perf-debuginfo.list -n perf-debuginfo
@ -2201,6 +2197,12 @@ fi
# ||----w | # ||----w |
# || || # || ||
%changelog %changelog
* Tue Dec 02 2014 Kyle McMartin <kyle@fedoraproject.org>
- python-devel is BuildRequires regardless of with_perf.
- Use %_find_debuginfo_opts instead of pointless debuginfo_args.
- Remove pointless __debug_install_post.
- Remove python_sitearch since it's in the global rpm macros anyway.
* Mon Dec 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git0.1 * Mon Dec 01 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.18.0-0.rc7.git0.1
- Linux v3.18-rc7 - Linux v3.18-rc7