Accepting request 1000202 from home:bmwiedemann:branches:devel:tools:building

Add fix2038.patch to make tests pass after 2038

OBS-URL: https://build.opensuse.org/request/show/1000202
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=123
This commit is contained in:
Danilo Spinella 2022-08-30 09:33:08 +00:00 committed by Git OBS Bridge
parent 0ce4dae4de
commit 90a19062a4
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 30 04:03:21 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add fix2038.patch to make tests pass after 2038
-------------------------------------------------------------------
Sat Jun 4 23:58:52 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -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

13
fix2038.patch Normal file
View File

@ -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 <<EOF >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