commit ccache for openSUSE:Factory
Hello community, here is the log from the commit of package ccache for openSUSE:Factory checked in at 2013-02-25 20:33:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ccache (Old) and /work/SRC/openSUSE:Factory/.ccache.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ccache", Maintainer is "VDziewiecki@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/ccache/ccache.changes 2013-01-08 13:34:04.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ccache.new/ccache.changes 2013-02-25 20:33:17.000000000 +0100 @@ -1,0 +2,15 @@ +Sat Feb 23 20:55:27 UTC 2013 - asterios.dramis@gmail.com + +- Update to 3.1.9: + - The EAGAIN signal is now handled correctly when emitting cached stderr + output. This fixes a problem triggered by large error outputs from the + compiler. + - Subdirectories in the cache are no longer created in read-only mode. + - Fixed so that ccache's log file descriptor is not made available to the + compiler. + - Improved error reporting when failing to create temporary stdout/stderr + files when executing the compiler. + - Disappearing temporary stdout/stderr files are now handled gracefully. + - Fixed test suite to work on ecryptfs. + +------------------------------------------------------------------- Old: ---- ccache-3.1.8.tar.bz2 New: ---- ccache-3.1.9.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ccache.spec ++++++ --- /var/tmp/diff_new_pack.ZKTS4A/_old 2013-02-25 20:33:20.000000000 +0100 +++ /var/tmp/diff_new_pack.ZKTS4A/_new 2013-02-25 20:33:20.000000000 +0100 @@ -17,19 +17,17 @@ Name: ccache -Version: 3.1.8 +Version: 3.1.9 Release: 0 Summary: A Fast C/C++ Compiler Cache License: GPL-3.0+ Group: Development/Languages/C and C++ - Url: http://ccache.samba.org/ Source0: http://samba.org/ftp/ccache/%{name}-%{version}.tar.bz2 Patch1: xclang.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: zlib-devel Provides: distcc:/usr/bin/ccache +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ccache is a compiler cache. It speeds up recompilation by caching the result of ++++++ ccache-3.1.8.tar.bz2 -> ccache-3.1.9.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/AUTHORS.html new/ccache-3.1.9/AUTHORS.html --- old/ccache-3.1.8/AUTHORS.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/AUTHORS.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>ccache authors</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -751,11 +751,21 @@ <div class="ulist"><ul> <li> <p> +Alfred Landrum <<a href="mailto:alfred.landrum@riverbed.com">alfred.landrum@riverbed.com</a>> +</p> +</li> +<li> +<p> Andrea Bittau <<a href="mailto:a.bittau@cs.ucl.ac.uk">a.bittau@cs.ucl.ac.uk</a>> </p> </li> <li> <p> +Andrew Stubbs <<a href="mailto:ams@codesourcery.com">ams@codesourcery.com</a>> +</p> +</li> +<li> +<p> Andrew Tridgell <<a href="mailto:tridge@samba.org">tridge@samba.org</a>> </p> </li> @@ -892,8 +902,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-08-11 10:57:17 CEST +Version 3.1.9<br /> +Last updated 2013-01-06 17:56:05 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/AUTHORS.txt new/ccache-3.1.9/AUTHORS.txt --- old/ccache-3.1.8/AUTHORS.txt 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/AUTHORS.txt 2013-01-06 17:57:59.000000000 +0100 @@ -6,7 +6,9 @@ ccache is a collective work with contributions from many people, including: +* Alfred Landrum <alfred.landrum@riverbed.com> * Andrea Bittau <a.bittau@cs.ucl.ac.uk> +* Andrew Stubbs <ams@codesourcery.com> * Andrew Tridgell <tridge@samba.org> * Bernhard Bauer <bauerb@google.com> * Björn Jacke <bj@sernet.de> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/INSTALL.html new/ccache-3.1.9/INSTALL.html --- old/ccache-3.1.8/INSTALL.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/INSTALL.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>ccache installation</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -845,8 +845,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-01-09 20:53:18 CET +Version 3.1.9<br /> +Last updated 2012-11-07 19:42:42 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/LICENSE.html new/ccache-3.1.9/LICENSE.html --- old/ccache-3.1.8/LICENSE.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/LICENSE.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>ccache copyright and license</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -1212,8 +1212,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-08-11 10:57:17 CEST +Version 3.1.9<br /> +Last updated 2013-01-06 17:46:13 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/MANUAL.html new/ccache-3.1.9/MANUAL.html --- old/ccache-3.1.8/MANUAL.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/MANUAL.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>CCACHE(1)</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -2002,8 +2002,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-08-11 10:57:17 CEST +Version 3.1.9<br /> +Last updated 2013-01-06 17:46:13 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/NEWS.html new/ccache-3.1.9/NEWS.html --- old/ccache-3.1.8/NEWS.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/NEWS.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>ccache news</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -744,6 +744,56 @@ </div> <div id="content"> <div class="sect1"> +<h2 id="_ccache_3_1_9">ccache 3.1.9</h2> +<div class="sectionbody"> +<div class="paragraph"><p>Release date: 2013-01-06</p></div> +<div class="sect2"> +<h3 id="_bug_fixes">Bug fixes</h3> +<div class="ulist"><ul> +<li> +<p> +The EAGAIN signal is now handled correctly when emitting cached stderr + output. This fixes a problem triggered by large error outputs from the + compiler. +</p> +</li> +<li> +<p> +Subdirectories in the cache are no longer created in read-only mode. +</p> +</li> +<li> +<p> +Fixed so that ccache’s log file descriptor is not made available to the + compiler. +</p> +</li> +<li> +<p> +Improved error reporting when failing to create temporary stdout/stderr + files when executing the compiler. +</p> +</li> +<li> +<p> +Disappearing temporary stdout/stderr files are now handled gracefully. +</p> +</li> +</ul></div> +</div> +<div class="sect2"> +<h3 id="_other">Other</h3> +<div class="ulist"><ul> +<li> +<p> +Fixed test suite to work on ecryptfs. +</p> +</li> +</ul></div> +</div> +</div> +</div> +<div class="sect1"> <h2 id="_ccache_3_1_8">ccache 3.1.8</h2> <div class="sectionbody"> <div class="paragraph"><p>Release date: 2012-08-11</p></div> @@ -769,7 +819,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_bug_fixes">Bug fixes</h3> +<h3 id="_bug_fixes_2">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -796,7 +846,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other">Other</h3> +<h3 id="_other_2">Other</h3> <div class="ulist"><ul> <li> <p> @@ -818,7 +868,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2012-01-08</p></div> <div class="sect2"> -<h3 id="_bug_fixes_2">Bug fixes</h3> +<h3 id="_bug_fixes_3">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -871,7 +921,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other_2">Other</h3> +<h3 id="_other_3">Other</h3> <div class="ulist"><ul> <li> <p> @@ -902,7 +952,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_bug_fixes_3">Bug fixes</h3> +<h3 id="_bug_fixes_4">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -955,7 +1005,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_bug_fixes_4">Bug fixes</h3> +<h3 id="_bug_fixes_5">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -989,7 +1039,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2011-01-09</p></div> <div class="sect2"> -<h3 id="_bug_fixes_5">Bug fixes</h3> +<h3 id="_bug_fixes_6">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1022,7 +1072,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2010-11-28</p></div> <div class="sect2"> -<h3 id="_bug_fixes_6">Bug fixes</h3> +<h3 id="_bug_fixes_7">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1033,7 +1083,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other_3">Other</h3> +<h3 id="_other_4">Other</h3> <div class="ulist"><ul> <li> <p> @@ -1049,7 +1099,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2010-11-21</p></div> <div class="sect2"> -<h3 id="_bug_fixes_7">Bug fixes</h3> +<h3 id="_bug_fixes_8">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1070,7 +1120,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other_4">Other</h3> +<h3 id="_other_5">Other</h3> <div class="ulist"><ul> <li> <p> @@ -1097,7 +1147,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2010-11-07</p></div> <div class="sect2"> -<h3 id="_bug_fixes_8">Bug fixes</h3> +<h3 id="_bug_fixes_9">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1136,7 +1186,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other_5">Other</h3> +<h3 id="_other_6">Other</h3> <div class="ulist"><ul> <li> <p> @@ -1221,7 +1271,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_bug_fixes_9">Bug fixes</h3> +<h3 id="_bug_fixes_10">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1247,7 +1297,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_other_6">Other</h3> +<h3 id="_other_7">Other</h3> <div class="ulist"><ul> <li> <p> @@ -1309,7 +1359,7 @@ <div class="sectionbody"> <div class="paragraph"><p>Release date: 2010-07-15</p></div> <div class="sect2"> -<h3 id="_bug_fixes_10">Bug fixes</h3> +<h3 id="_bug_fixes_11">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1503,7 +1553,7 @@ </ul></div> </div> <div class="sect2"> -<h3 id="_bug_fixes_11">Bug fixes</h3> +<h3 id="_bug_fixes_12">Bug fixes</h3> <div class="ulist"><ul> <li> <p> @@ -1648,8 +1698,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-08-11 10:57:17 CEST +Version 3.1.9<br /> +Last updated 2013-01-06 17:55:15 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/NEWS.txt new/ccache-3.1.9/NEWS.txt --- old/ccache-3.1.8/NEWS.txt 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/NEWS.txt 2013-01-06 17:57:59.000000000 +0100 @@ -2,6 +2,31 @@ =========== +ccache 3.1.9 +------------ +Release date: 2013-01-06 + + +Bug fixes +~~~~~~~~~ + + - The EAGAIN signal is now handled correctly when emitting cached stderr + output. This fixes a problem triggered by large error outputs from the + compiler. + - Subdirectories in the cache are no longer created in read-only mode. + - Fixed so that ccache's log file descriptor is not made available to the + compiler. + - Improved error reporting when failing to create temporary stdout/stderr + files when executing the compiler. + - Disappearing temporary stdout/stderr files are now handled gracefully. + + +Other +~~~~~ + + - Fixed test suite to work on ecryptfs. + + ccache 3.1.8 ------------ Release date: 2012-08-11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/README.html new/ccache-3.1.9/README.html --- old/ccache-3.1.8/README.html 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/README.html 2013-01-06 17:57:59.000000000 +0100 @@ -736,7 +736,7 @@ <body class="article"> <div id="header"> <h1>ccache README</h1> -<span id="revnumber">version 3.1.8</span> +<span id="revnumber">version 3.1.9</span> <div id="toc"> <div id="toctitle">Table of Contents</div> <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript> @@ -832,8 +832,8 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Version 3.1.8<br /> -Last updated 2012-01-09 20:53:18 CET +Version 3.1.9<br /> +Last updated 2012-11-07 19:42:42 CET </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/ccache.1 new/ccache-3.1.9/ccache.1 --- old/ccache-3.1.8/ccache.1 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/ccache.1 2013-01-06 17:57:59.000000000 +0100 @@ -2,12 +2,12 @@ .\" Title: ccache .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/> -.\" Date: 08/11/2012 +.\" Date: 01/06/2013 .\" Manual: ccache Manual -.\" Source: ccache 3.1.8 +.\" Source: ccache 3.1.9 .\" Language: English .\" -.TH "CCACHE" "1" "08/11/2012" "ccache 3\&.1\&.8" "ccache Manual" +.TH "CCACHE" "1" "01/06/2013" "ccache 3\&.1\&.9" "ccache Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/ccache.c new/ccache-3.1.9/ccache.c --- old/ccache-3.1.8/ccache.c 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/ccache.c 2013-01-06 17:57:59.000000000 +0100 @@ -2,7 +2,7 @@ * ccache -- a fast C/C++ compiler cache * * Copyright (C) 2002-2007 Andrew Tridgell - * Copyright (C) 2009-2012 Joel Rosdahl + * Copyright (C) 2009-2013 Joel Rosdahl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -266,7 +266,7 @@ char *p = format("%s/%c", path, name[i]); free(path); path = p; - if (create_dir(path) != 0) { + if (!getenv("CCACHE_READONLY") && create_dir(path) != 0) { fatal("Failed to create %s: %s", path, strerror(errno)); } } @@ -551,7 +551,13 @@ args_pop(args, 3); if (stat(tmp_stdout, &st) != 0) { - fatal("Could not create %s (permission denied?)", tmp_stdout); + /* The stdout file was removed - cleanup in progress? Better bail out. */ + cc_log("%s not found: %s", tmp_stdout, strerror(errno)); + stats_update(STATS_MISSING); + tmp_unlink(tmp_stdout); + tmp_unlink(tmp_stderr); + tmp_unlink(tmp_obj); + failed(); } if (st.st_size != 0) { cc_log("Compiler produced stdout"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/execute.c new/ccache-3.1.9/execute.c --- old/ccache-3.1.8/execute.c 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/execute.c 2013-01-06 17:57:59.000000000 +0100 @@ -19,6 +19,10 @@ #include "ccache.h" +/* Let's hope no compiler uses these exit statuses. */ +#define FAILED_TO_CREATE_STDOUT 212 +#define FAILED_TO_CREATE_STDERR 213 + static char * find_executable_in_path(const char *name, const char *exclude_name, char *path); @@ -179,7 +183,8 @@ tmp_unlink(path_stdout); fd = open(path_stdout, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666); if (fd == -1) { - exit(1); + cc_log("Error creating %s: %s", path_stdout, strerror(errno)); + exit(FAILED_TO_CREATE_STDOUT); } dup2(fd, 1); close(fd); @@ -187,7 +192,8 @@ tmp_unlink(path_stderr); fd = open(path_stderr, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666); if (fd == -1) { - exit(1); + cc_log("Error creating %s: %s", path_stderr, strerror(errno)); + exit(FAILED_TO_CREATE_STDERR); } dup2(fd, 2); close(fd); @@ -203,6 +209,12 @@ return -1; } + if (status == FAILED_TO_CREATE_STDOUT) { + fatal("Could not create %s (permission denied?)", path_stdout); + } else if (status == FAILED_TO_CREATE_STDERR) { + fatal("Could not create %s (permission denied?)", path_stderr); + } + return WEXITSTATUS(status); } #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/test.sh new/ccache-3.1.9/test.sh --- old/ccache-3.1.8/test.sh 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/test.sh 2013-01-06 17:57:59.000000000 +0100 @@ -497,7 +497,7 @@ link_suite() { if [ `dirname $COMPILER` = . ]; then - ln -s ../ccache $COMPILER + ln -s "$CCACHE" $COMPILER CCACHE_COMPILE="./$COMPILER" base_tests else @@ -1387,17 +1387,26 @@ # Make the cache readonly # Check that readonly mode finds the result. testname="cache hit" - rm -f test.o + rm -f test.o test2.o chmod -R a-w $CCACHE_DIR - CCACHE_READONLY=1 CCACHE_TEMPDIR=/tmp CCACHE_PREFIX=false $CCACHE $COMPILER -c test.c -o test.o - status=$? + CCACHE_READONLY=1 CCACHE_TEMPDIR=/tmp CCACHE_PREFIX=false $CCACHE $COMPILER -c test.c -o test.o >/dev/null 2>&1 + status1=$? + # Check that fallback to the real compiler works for a cache miss. + CCACHE_READONLY=1 CCACHE_TEMPDIR=/tmp $CCACHE $COMPILER -c test2.c -o test2.o >/dev/null 2>&1 + status2=$? chmod -R a+w $CCACHE_DIR - if [ $status -ne 0 ]; then + if [ $status1 -ne 0 ]; then test_failed "failure when compiling test.c readonly" fi + if [ $status2 -ne 0 ]; then + test_failed "failure when compiling test2.c readonly" + fi if [ ! -f test.o ]; then test_failed "test.o missing" fi + if [ ! -f test2.o ]; then + test_failed "test2.o missing" + fi # Check that readonly mode doesn't try to store new results. testname="cache miss" @@ -1542,6 +1551,11 @@ fi done + # Warning: this test is known to fail on filesystems that have + # unusual block sizes, including ecryptfs. The workaround is + # to place the test directory elsewhere: + # cd /tmp + # CCACHE=$DIR/ccache $DIR/test.sh testname="forced cleanup, size limit" $CCACHE -C >/dev/null prepare_cleanup_test $CCACHE_DIR/a diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/util.c new/ccache-3.1.9/util.c --- old/ccache-3.1.8/util.c 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/util.c 2013-01-06 17:57:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * Copyright (C) 2002 Andrew Tridgell - * Copyright (C) 2009-2012 Joel Rosdahl + * Copyright (C) 2009-2013 Joel Rosdahl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -48,6 +48,11 @@ } logfile = fopen(cache_logfile, "a"); if (logfile) { + int fd = fileno(logfile); + int flags = fcntl(fd, F_GETFD, 0); + if (flags >= 0) { + fcntl(fd, F_SETFD, flags | FD_CLOEXEC); + } return true; } else { return false; @@ -149,10 +154,13 @@ ssize_t count, written = 0; do { count = write(fd_out, buf + written, n - written); - if (count == -1 && errno != EINTR) { - fatal("Failed to copy fd"); + if (count == -1) { + if (errno != EAGAIN && errno != EINTR) { + fatal("Failed to copy fd"); + } + } else { + written += count; } - written += count; } while (written < n); } @@ -1118,7 +1126,7 @@ * file. We don't care if the temp file is trashed, so it's always safe to * unlink it first. */ - char* tmp_name = format("%s.%s.rmXXXXXX", path, tmp_string()); + char *tmp_name = format("%s.tmp.rm.%s", path, tmp_string()); int result = 0; cc_log("Unlink %s via %s", path, tmp_name); if (x_rename(path, tmp_name) == -1) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ccache-3.1.8/version.c new/ccache-3.1.9/version.c --- old/ccache-3.1.8/version.c 2012-08-11 11:03:17.000000000 +0200 +++ new/ccache-3.1.9/version.c 2013-01-06 17:57:59.000000000 +0100 @@ -1 +1 @@ -const char CCACHE_VERSION[] = "3.1.8"; +const char CCACHE_VERSION[] = "3.1.9"; -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de