Accepting request 1000203 from devel:tools:building

OBS-URL: https://build.opensuse.org/request/show/1000203
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ccache?expand=0&rev=67
This commit is contained in:
Dominique Leuenberger 2022-08-31 16:08:37 +00:00 committed by Git OBS Bridge
commit 755e5074cd
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