lcov: Apply upstream patch for GCC >= 4.7 compatibility
This commit is contained in:
parent
c60f9cdb3e
commit
d7cb2f5712
@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
patches =
|
||||
(stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch);
|
||||
[ ./lcov-except-unreach.patch ]
|
||||
++ stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch;
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
|
||||
|
@ -0,0 +1,13 @@
|
||||
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);
|
Loading…
Reference in New Issue
Block a user