From e86332ab221bde3b2b52bb7eda00788f422b71ea Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Mar 18 2007 12:20:13 +0000 Subject: - Bypass cache with --coverage, -fprofile-arcs and -ftest-coverage (upstream CVS and Matt Fago, #231462). --- diff --git a/ccache-2.4-coverage-231462.patch b/ccache-2.4-coverage-231462.patch new file mode 100644 index 0000000..27d063b --- /dev/null +++ b/ccache-2.4-coverage-231462.patch @@ -0,0 +1,12 @@ +--- ccache.c~ 2004-09-13 13:38:30.000000000 +0300 ++++ ccache.c 2007-03-15 12:31:41.000000000 +0200 +@@ -640,6 +640,9 @@ + + /* these are too hard */ + if (strcmp(argv[i], "-fbranch-probabilities")==0 || ++ strcmp(argv[i], "--coverage") == 0 || ++ strcmp(argv[i], "-fprofile-arcs") == 0 || ++ strcmp(argv[i], "-ftest-coverage") == 0 || + strcmp(argv[i], "-M") == 0 || + strcmp(argv[i], "-MM") == 0 || + strcmp(argv[i], "-x") == 0) { diff --git a/ccache.spec b/ccache.spec index 94c6aba..099724d 100644 --- a/ccache.spec +++ b/ccache.spec @@ -3,7 +3,7 @@ Name: ccache Version: 2.4 -Release: 7%{?dist} +Release: 8%{?dist} Summary: C/C++ compiler cache Group: Development/Tools @@ -11,6 +11,7 @@ License: GPL URL: http://ccache.samba.org/ Source0: http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz Patch0: %{name}-html-links.patch +Patch1: %{name}-2.4-coverage-231462.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(triggerin): coreutils @@ -26,6 +27,7 @@ a 5 to 10 times speedup in common compilations. %prep %setup -q %patch0 -p0 +%patch1 -p0 %build @@ -86,6 +88,10 @@ done %changelog +* Thu Mar 15 2007 Ville Skyttä - 2.4-8 +- Bypass cache with --coverage, -fprofile-arcs and -ftest-coverage + (upstream CVS and Matt Fago, #231462). + * Fri Nov 10 2006 Ville Skyttä - 2.4-7 - Require coreutils for triggers (#215030).