summary refs log tree commit diff
path: root/pkgs/development/tools/misc/ccache
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-08-25 05:03:05 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-08-25 05:03:05 +0200
commite8a55a43cfc7759d374f72a32a608c1c8d261de9 (patch)
tree452d1968abbacb792aacf3af315eee45a40a35c2 /pkgs/development/tools/misc/ccache
parentc98685c737663689aab7c8bd56c75270869e4caf (diff)
downloadnixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar.gz
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar.bz2
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar.lz
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar.xz
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.tar.zst
nixpkgs-e8a55a43cfc7759d374f72a32a608c1c8d261de9.zip
ccache: update 3.2.2 -> 3.2.3
Diffstat (limited to 'pkgs/development/tools/misc/ccache')
-rw-r--r--pkgs/development/tools/misc/ccache/default.nix14
-rw-r--r--pkgs/development/tools/misc/ccache/test-drop-perl-requirement.patch36
2 files changed, 8 insertions, 42 deletions
diff --git a/pkgs/development/tools/misc/ccache/default.nix b/pkgs/development/tools/misc/ccache/default.nix
index fad2d87cc17..41a6095a9a4 100644
--- a/pkgs/development/tools/misc/ccache/default.nix
+++ b/pkgs/development/tools/misc/ccache/default.nix
@@ -1,10 +1,9 @@
 { stdenv, fetchurl, runCommand, gcc, zlib }:
 
 let
-  # TODO: find out if there's harm in just using 'rec' instead.
   name = "ccache-${version}";
-  version = "3.2.2";
-  sha256 = "1jm0qb3h5sypllaiyj81zp6m009vm50hzjnx994ril94kxlrj3ag";
+  version = "3.2.3";
+  sha256 = "03k0fvblwqb80zwdgas8a5fjrwvghgsn587wp3lfr0jr8gy1817c";
 
   ccache =
 stdenv.mkDerivation {
@@ -14,16 +13,19 @@ stdenv.mkDerivation {
     url = "mirror://samba/ccache/${name}.tar.xz";
   };
 
-  patches = [ ./test-drop-perl-requirement.patch ];
-
   buildInputs = [ zlib ];
 
+  postPatch = ''
+    substituteInPlace Makefile.in --replace 'objs) $(extra_libs)' 'objs)'
+  '';
+
   doCheck = true;
 
   passthru = {
     # A derivation that provides gcc and g++ commands, but that
     # will end up calling ccache for the given cacheDir
-    links = extraConfig : (runCommand "ccache-links" { passthru.gcc = gcc; passthru.isGNU = true; }
+    links = extraConfig: (runCommand "ccache-links"
+      { passthru.gcc = gcc; passthru.isGNU = true; }
       ''
         mkdir -p $out/bin
         if [ -x "${gcc.cc}/bin/gcc" ]; then
diff --git a/pkgs/development/tools/misc/ccache/test-drop-perl-requirement.patch b/pkgs/development/tools/misc/ccache/test-drop-perl-requirement.patch
deleted file mode 100644
index ca4c39edc30..00000000000
--- a/pkgs/development/tools/misc/ccache/test-drop-perl-requirement.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Since perl is used in just one place and can easily be replaced by a
-little bit of shell, do so.  This makes testing on limited systems
-easier.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- INSTALL.txt | 1 -
- test.sh     | 2 +-
- 2 files changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/INSTALL.txt b/INSTALL.txt
-index 256beab..f77cbe6 100644
---- a/INSTALL.txt
-+++ b/INSTALL.txt
-@@ -67,7 +67,6 @@ In addition to the prerequisites mentioned above, you also need:
-
- To debug and run the performance test suite you'll also need:
-
--- Perl (http://www.perl.org/)
- - Python (http://www.python.org/)
-
- Run "./autogen.sh" and then follow the steps mentioned under "Installation"
-diff --git a/test.sh b/test.sh
-index f14e287..1090649 100755
---- a/test.sh
-+++ b/test.sh
-@@ -1834,7 +1834,7 @@ prepare_cleanup_test() {
-     mkdir -p $dir
-     i=0
-     while [ $i -lt 10 ]; do
--        perl -e 'print "A" x 4017' >$dir/result$i-4017.o
-+        printf '%4017s' '' | tr ' ' 'A' >$dir/result$i-4017.o
-         touch $dir/result$i-4017.stderr
-         touch $dir/result$i-4017.d
-         if [ $i -gt 5 ]; then
---