Package: blhc
Version: 0.04+20130814+gitd569fff-1
Severity: normal
Tags: patch

% blhc ~/.cache/sbuild/logs/subversion_1.8.9-2_amd64-20140601-2135.build
NONVERBOSE BUILD: Compiling 
/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/libsvn/__init__.py ...
NONVERBOSE BUILD: Compiling 
/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/libsvn/client.py ...

The attached patch finishes the previous attempt (#714630) at fixing
these false positives.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages blhc depends on:
ii  libdpkg-perl  1.17.10

blhc recommends no packages.

blhc suggests no packages.

-- no debconf information
>From bb0d8f93123feb6d9ea80e7edf0e612c8ac569ca Mon Sep 17 00:00:00 2001
From: James McCoy <james...@debian.org>
Date: Sat, 28 Jun 2014 23:26:23 -0400
Subject: [PATCH] Fix false positive when "compiling" python files
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Allow whitespace between the filename and the following “...” or end of
line.

Signed-off-by: James McCoy <james...@debian.org>
---
 bin/blhc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/blhc b/bin/blhc
index 2624585..72918fe 100755
--- a/bin/blhc
+++ b/bin/blhc
@@ -466,7 +466,7 @@ sub is_non_verbose_build {
     return 0 if $line =~ /^\s*C\+\+.+?:\s+(?:yes|no)\s*$/;
     return 0 if $line =~ /^\s*C\+\+ Library: stdc\+\+$/;
     # "Compiling" non binary files.
-    return 0 if $line =~ /^\s*Compiling \S+\.(?:py|el)['"]?(?:\.\.\.)?$/;
+    return 0 if $line =~ /^\s*Compiling \S+\.(?:py|el)['"]?\s*(?:\.\.\.)?$/;
     # "Compiling" with no file name.
     if ($line =~ /^\s*[Cc]ompiling\s+(.+?)(?:\.\.\.)?$/) {
         # $file_extension_regex may need spaces around the filename.
-- 
2.0.0

Reply via email to