summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/lcov
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2016-05-05 11:38:33 +0300
committerTuomas Tynkkynen <tuomas@tuxera.com>2016-07-08 03:27:07 +0300
commit21253ac835166b6204f1b8ee7bea13d797c0ce00 (patch)
tree056fc3b72061c56514aa1c67a5fc76d10fea2cdc /pkgs/development/tools/analysis/lcov
parent9e6aac9cb0bb23d49b44af3c36f78e05849cdae0 (diff)
downloadnixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar.gz
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar.bz2
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar.lz
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar.xz
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.tar.zst
nixpkgs-21253ac835166b6204f1b8ee7bea13d797c0ce00.zip
lcov: 1.10 -> 1.12; maintain
Diffstat (limited to 'pkgs/development/tools/analysis/lcov')
-rw-r--r--pkgs/development/tools/analysis/lcov/default.nix21
-rw-r--r--pkgs/development/tools/analysis/lcov/freebsd-install.patch13
-rw-r--r--pkgs/development/tools/analysis/lcov/lcov-except-unreach.patch13
-rw-r--r--pkgs/development/tools/analysis/lcov/no-warn-missing.patch54
4 files changed, 5 insertions, 96 deletions
diff --git a/pkgs/development/tools/analysis/lcov/default.nix b/pkgs/development/tools/analysis/lcov/default.nix
index 10cdf01103a..daefafa9e6a 100644
--- a/pkgs/development/tools/analysis/lcov/default.nix
+++ b/pkgs/development/tools/analysis/lcov/default.nix
@@ -1,31 +1,20 @@
 {stdenv, fetchurl, perl}:
 
 stdenv.mkDerivation rec {
-  name = "lcov-1.10";
+  name = "lcov-1.12";
 
   src = fetchurl {
     url = "mirror://sourceforge/ltp/${name}.tar.gz";
-    sha256 = "13xq2ln4jjasslqzzhr5g11q1c19gwpng1jphzbzmylmrjz62ila";
+    sha256 = "19wfifdpxxivhq9adbphanjfga9bg9spms9v7c3589wndjff8x5l";
   };
 
-  patches =
-    [ ./lcov-except-unreach.patch ./no-warn-missing.patch ]
-    ++ stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch;
+  buildInputs = [ perl ];
 
   preBuild = ''
+    patchShebangs bin/
     makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
   '';
 
-  preInstall = ''
-    substituteInPlace bin/install.sh --replace /bin/bash $shell
-  '';
-
-  postInstall = ''
-    for i in "$out/bin/"*; do
-      substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
-    done
-  '';
-
   meta = with stdenv.lib; {
     description = "Code coverage tool that enhances GNU gcov";
 
@@ -41,7 +30,7 @@ stdenv.mkDerivation rec {
     homepage = http://ltp.sourceforge.net/coverage/lcov.php;
     license = stdenv.lib.licenses.gpl2Plus;
 
-    maintainers = [ maintainers.mornfall ];
+    maintainers = with maintainers; [ dezgeg mornfall ];
     platforms = platforms.all;
   };
 }
diff --git a/pkgs/development/tools/analysis/lcov/freebsd-install.patch b/pkgs/development/tools/analysis/lcov/freebsd-install.patch
deleted file mode 100644
index 7ca2608cf5e..00000000000
--- a/pkgs/development/tools/analysis/lcov/freebsd-install.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-FreeBSD's `install' doesn't support `-D'.  Thus, use GNU install instead,
-since `stdenv-native' assumes that `ginstall' is available.
-
---- lcov-1.9/bin/install.sh	2010-08-06 13:05:17.000000000 +0200
-+++ lcov-1.9/bin/install.sh	2012-03-02 16:53:28.000000000 +0100
-@@ -34,6 +34,6 @@
-   local TARGET=$2
-   local PARAMS=$3
- 
--  install -p -D $PARAMS $SOURCE $TARGET
-+  ginstall -p -D $PARAMS $SOURCE $TARGET
- }
- 
diff --git a/pkgs/development/tools/analysis/lcov/lcov-except-unreach.patch b/pkgs/development/tools/analysis/lcov/lcov-except-unreach.patch
deleted file mode 100644
index 6c8d8664d02..00000000000
--- a/pkgs/development/tools/analysis/lcov/lcov-except-unreach.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?r1=1.117&r2=1.118&view=patch
-
---- a/bin/geninfo	2012/10/10 08:36:16	1.117
-+++ b/bin/geninfo	2012/11/13 09:58:53	1.118
-@@ -1833,7 +1833,7 @@
- 						push(@result, 0);
- 					} else {
- 						# Check for zero count
--						if ($count eq "#####") {
-+						if ($count =~ /^[#=]/) {
- 							$count = 0;
- 						}
- 						push(@result, 1);
diff --git a/pkgs/development/tools/analysis/lcov/no-warn-missing.patch b/pkgs/development/tools/analysis/lcov/no-warn-missing.patch
deleted file mode 100644
index fa1f476fba0..00000000000
--- a/pkgs/development/tools/analysis/lcov/no-warn-missing.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/geninfo?view=log
-
---- a/bin/geninfo	2013/01/10 09:02:32	1.119
-+++ b/bin/geninfo	2013/02/22 14:09:08	1.120
-@@ -864,7 +864,6 @@
- 	my $source;		# gcov source header information
- 	my $object;		# gcov object header information
- 	my @matches;		# List of absolute paths matching filename
--	my @unprocessed;	# List of unprocessed source code files
- 	my $base_dir;		# Base directory for current file
- 	my @tmp_links;		# Temporary links to be cleaned up
- 	my @result;
-@@ -1060,7 +1059,6 @@
- 
- 	# Traverse the list of generated .gcov files and combine them into a
- 	# single .info file
--	@unprocessed = keys(%{$instr});
- 	foreach $gcov_file (sort(@gcov_list))
- 	{
- 		my $i;
-@@ -1143,16 +1141,6 @@
- 						\@matches, \@gcov_content);
- 		}
- 
--		# Remove processed file from list
--		for ($index = scalar(@unprocessed) - 1; $index >= 0; $index--)
--		{
--			if ($unprocessed[$index] eq $source_filename)
--			{
--				splice(@unprocessed, $index, 1);
--				last;
--			}
--		}
--
- 		# Skip external files if requested
- 		if (!$opt_external) {
- 			if (is_external($source_filename)) {
-@@ -1297,16 +1285,6 @@
- 		unlink($gcov_file);
- 	}
- 
--	# Check for files which show up in the graph file but were never
--	# processed
--	if (@unprocessed && @gcov_list)
--	{
--		foreach (@unprocessed)
--		{
--			warn("WARNING: no data found for $_\n");
--		}
--	}
--
- 	if (!($output_filename && ($output_filename eq "-")))
- 	{
- 		close(INFO_HANDLE);