Hi Marek,

thanks for the report and patch!

Marek Veber wrote:
> The starting slash of the '-S' argument can repare the main bug

Indeed. I've filed https://bugs.debian.org/775379 against dpkg as the
documentation of "dpkg-query -S" does not explain this special
behaviour with a leading slash.

When you say "main bug", what do you consider the "remaining bug"?

> For example, change of /bin/ls will report nothing in wheeze, ..., unstable 
> will not report anything:
> # cp -a /bin/ls /tmp/ls ; echo "bad addon" >> /bin/ls; debsums -c coreutils; 
> cp -a /tmp/ls  /bin/ls

I was able to reproduce this in a pbuilder Sid chroot, so this issue
is also present in Unstable.

> Please aply this patch to fix this issue:
> # diff -Nu /usr/bin/debsums /usr/bin/debsums.new 
> --- /usr/bin/debsums  2014-09-01 20:47:24.000000000 +0200
> +++ /usr/bin/debsums.new    2015-01-13 08:20:17.000000000 +0100
> @@ -462,7 +462,7 @@
>         return 0;
>     }
>  
> -   my $correct_package = `dpkg-query "--admindir=$DPKG" -S "$path" | awk -F: 
> '{print \$1}'`;
> +   my $correct_package = `dpkg-query "--admindir=$DPKG" -S "/$path" | awk 
> -F: '{print \$1}'`;
>     chomp($correct_package);
>     if ($pack ne $correct_package) {
>         #print "$pack != $correct_package\n";

I intent to fix this with an NMU (as my last NMU was obviously buggy).

> Please fix it in wheeze, ...

It should be fixed in Unstable first, before fixing it in Wheezy, too.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to