ccache: 3.3.5 -> 3.4
This commit is contained in:
parent
8a10de3749
commit
c24c0d560d
@ -1,18 +1,23 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, runCommand, zlib, makeWrapper }:
|
{ stdenv, fetchurl, fetchpatch, runCommand, perl, gcc, zlib, makeWrapper }:
|
||||||
|
|
||||||
let ccache = stdenv.mkDerivation rec {
|
let ccache = stdenv.mkDerivation rec {
|
||||||
name = "ccache-${version}";
|
name = "ccache-${version}";
|
||||||
version = "3.3.5";
|
version = "3.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
sha256 = "1iih5d171rq29366c1z90dri2h8173yyc8rm2740wxiqx6k7c18r";
|
sha256 = "0sfisvjs2iham29flxgmnfg7kzqz66bhk6q0qcwbdv1n569say5j";
|
||||||
url = "mirror://samba/ccache/${name}.tar.xz";
|
url = "mirror://samba/ccache/${name}.tar.xz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ perl gcc ];
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
# non to be fail on filesystems with unconventional blocksizes (zfs on Hydra?)
|
# non to be fail on filesystems with unconventional blocksizes (zfs on Hydra?)
|
||||||
patches = [ ./skip-fs-dependent-test.patch ];
|
patches = [
|
||||||
|
./fix-debug-prefix-map-suite.patch
|
||||||
|
./skip-fs-dependent-test.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
|
substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
--- a/test/suites/debug_prefix_map.bash
|
||||||
|
+++ b/test/suites/debug_prefix_map.bash
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
expect_stat 'cache hit (preprocessed)' 0
|
||||||
|
expect_stat 'cache miss' 1
|
||||||
|
expect_stat 'files in cache' 2
|
||||||
|
- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then
|
||||||
|
+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then
|
||||||
|
test_failed "Source dir (`pwd`) found in test.o"
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
expect_stat 'cache hit (preprocessed)' 0
|
||||||
|
expect_stat 'cache miss' 1
|
||||||
|
expect_stat 'files in cache' 2
|
||||||
|
- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then
|
||||||
|
+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then
|
||||||
|
test_failed "Source dir (`pwd`) found in test.o"
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -52,10 +52,10 @@
|
||||||
|
expect_stat 'cache hit (preprocessed)' 0
|
||||||
|
expect_stat 'cache miss' 1
|
||||||
|
expect_stat 'files in cache' 2
|
||||||
|
- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then
|
||||||
|
+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then
|
||||||
|
test_failed "Source dir (`pwd`) found in test.o"
|
||||||
|
fi
|
||||||
|
- if ! grep "name" test.o >/dev/null 2>&1; then
|
||||||
|
+ if ! objdump -g test.o | grep ": name$" >/dev/null 2>&1; then
|
||||||
|
test_failed "Relocation (name) not found in test.o"
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@
|
||||||
|
expect_stat 'cache hit (preprocessed)' 0
|
||||||
|
expect_stat 'cache miss' 1
|
||||||
|
expect_stat 'files in cache' 2
|
||||||
|
- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then
|
||||||
|
+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then
|
||||||
|
test_failed "Source dir (`pwd`) found in test.o"
|
||||||
|
fi
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
--- a/test.sh
|
--- a/test/suites/cleanup.bash
|
||||||
+++ b/test.sh
|
+++ b/test/suites/cleanup.bash
|
||||||
@@ -2669,23 +2669,6 @@ SUITE_cleanup() {
|
@@ -94,23 +94,6 @@
|
||||||
|
|
||||||
$CCACHE -F 0 -M 256K >/dev/null
|
$CCACHE -F 0 -M 256K >/dev/null
|
||||||
CCACHE_LOGFILE=/tmp/foo $CCACHE -c >/dev/null
|
CCACHE_LOGFILE=/tmp/foo $CCACHE -c >/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user