Run valgrind with the built glibc to ensure that it does not break
This commit is contained in:
parent
7007495c88
commit
e9a7f4cb5d
18
glibc.spec
18
glibc.spec
@ -14,6 +14,8 @@
|
|||||||
# If run_glibc_tests is zero then tests are not run for the build.
|
# If run_glibc_tests is zero then tests are not run for the build.
|
||||||
# You must always set run_glibc_tests to one for production builds.
|
# You must always set run_glibc_tests to one for production builds.
|
||||||
%define run_glibc_tests 1
|
%define run_glibc_tests 1
|
||||||
|
# Run valgrind test to ensure compatibility.
|
||||||
|
%define run_valgrind_tests 1
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Auxiliary arches are those arches that can be built in addition
|
# Auxiliary arches are those arches that can be built in addition
|
||||||
# to the core supported arches. You either install an auxarch or
|
# to the core supported arches. You either install an auxarch or
|
||||||
@ -261,6 +263,10 @@ BuildRequires: /bin/ps, /bin/kill, /bin/awk
|
|||||||
BuildRequires: systemtap-sdt-devel
|
BuildRequires: systemtap-sdt-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{run_valgrind_tests}
|
||||||
|
BuildRequires: /usr/bin/valgrind
|
||||||
|
%endif
|
||||||
|
|
||||||
# We use systemd rpm macros for nscd
|
# We use systemd rpm macros for nscd
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
|
||||||
@ -1493,6 +1499,17 @@ echo ====================PLT RELOCS LIBC.SO==============
|
|||||||
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/libc-*.so | sed -n -e "$PLTCMD"
|
readelf -Wr $RPM_BUILD_ROOT/%{_lib}/libc-*.so | sed -n -e "$PLTCMD"
|
||||||
echo ====================PLT RELOCS END==================
|
echo ====================PLT RELOCS END==================
|
||||||
|
|
||||||
|
%if %{run_valgrind_tests}
|
||||||
|
# Finally, check if valgrind runs with the new glibc.
|
||||||
|
# We want to fail building if valgrind is not able to run with this glibc so
|
||||||
|
# that we can then coordinate with valgrind to get it fixed before we update
|
||||||
|
# glibc.
|
||||||
|
pushd build-%{target}
|
||||||
|
elf/ld.so --library-path .:elf:nptl:dlfcn /usr/bin/valgrind \
|
||||||
|
elf/ld.so --library-path .:elf:nptl:dlfcn /usr/bin/true
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%endif # %{run_glibc_tests}
|
%endif # %{run_glibc_tests}
|
||||||
|
|
||||||
|
|
||||||
@ -1682,6 +1699,7 @@ rm -f *.filelist*
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Sep 23 2014 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20.90-4
|
* Tue Sep 23 2014 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20.90-4
|
||||||
- Don't own the common debuginfo directories (#1144853).
|
- Don't own the common debuginfo directories (#1144853).
|
||||||
|
- Run valgrind in the %%check section to ensure that it does not break.
|
||||||
|
|
||||||
* Tue Sep 16 2014 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20.90-3
|
* Tue Sep 16 2014 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20.90-3
|
||||||
- Sync with upstream master.
|
- Sync with upstream master.
|
||||||
|
Loading…
Reference in New Issue
Block a user