Force SOURCE_DATE_EPOCH

Resolves: rhbz#1994082
This commit is contained in:
serge-sans-paille 2021-08-17 10:29:15 +02:00
parent 51d83400cb
commit f282655200
1 changed files with 9 additions and 4 deletions

View File

@ -78,7 +78,7 @@
Name: %pkg_name
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A C language family front-end for LLVM
License: NCSA
@ -487,12 +487,14 @@ rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
%check
# see rhbz#1994082
sed -i -e "s/'ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH'/'ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH', 'SOURCE_DATE_EPOCH'/" test/lit.cfg.py
%if !0%{?compat_build}
# requires lit.py from LLVM utilities
# FIXME: Fix failing ARM tests
# FIXME: Don't require s390x checks due to: rhbz#1994082
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
%ifarch %{arm} s390x
SOURCE_DATE_EPOCH=1629181597 LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
%ifarch %{arm}
:
%else
false
@ -583,6 +585,9 @@ false
%endif
%changelog
* Tue Aug 17 2021 sguelton@redhat.com - 12.0.1-5
- Force SOURCE_DATE_EPOCH, fix rhbz#1994082
* Mon Aug 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-4
- Don't requirest tests on s390x