diff --git a/ccache.changes b/ccache.changes index 4378958..5a15f8b 100644 --- a/ccache.changes +++ b/ccache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 30 04:03:21 UTC 2022 - Bernhard Wiedemann + +- Add fix2038.patch to make tests pass after 2038 + ------------------------------------------------------------------- Sat Jun 4 23:58:52 UTC 2022 - Dirk Müller diff --git a/ccache.spec b/ccache.spec index b777347..a0c50d1 100644 --- a/ccache.spec +++ b/ccache.spec @@ -25,6 +25,9 @@ URL: https://ccache.dev/ Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc Source2: %{name}.keyring +%ifnarch %ix86 %arm +Patch0: fix2038.patch +%endif BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libzstd-devel >= 1.1.2 diff --git a/fix2038.patch b/fix2038.patch new file mode 100644 index 0000000..adf2dc3 --- /dev/null +++ b/fix2038.patch @@ -0,0 +1,13 @@ +Index: ccache-4.6.1/test/suites/direct.bash +=================================================================== +--- ccache-4.6.1.orig/test/suites/direct.bash ++++ ccache-4.6.1/test/suites/direct.bash +@@ -883,7 +883,7 @@ EOF + cat <new.h + int test; + EOF +- touch -t 203801010000 new.h ++ touch -t 999901010000 new.h + + $CCACHE_COMPILE -c new.c + expect_stat direct_cache_hit 0