Debian Bug report logs - #575776
binfmt-support/run-detectors tries to run binfmt-detector-cli.

version graph

Package: binfmt-support; Maintainer for binfmt-support is Colin Watson <cjwatson@debian.org>; Source for binfmt-support is src:binfmt-support.

Reported by: Erik de Castro Lopo <erikd@mega-nerd.com>

Date: Mon, 29 Mar 2010 07:45:02 UTC

Severity: normal

Tags: patch

Found in version binfmt-support/1.2.17

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#575776; Package binfmt-support. (Mon, 29 Mar 2010 07:45:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik de Castro Lopo <erikd@mega-nerd.com>:
New Bug report received and forwarded. Copy sent to Colin Watson <cjwatson@debian.org>. (Mon, 29 Mar 2010 07:45:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Erik de Castro Lopo <erikd@mega-nerd.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: binfmt-support/run-detectors tries to run binfmt-detector-cli.
Date: Mon, 29 Mar 2010 18:22:43 +1100
Package: binfmt-support
Version: 1.2.17
Severity: normal

    Can't exec "/usr/lib/cli/binfmt-detector-cli": No such file or directory
    at /usr/share/binfmt-support/run-detectors line 92.

Basically the run-detectors script should check to see if
binfmt-detector-cli exists and only exec it if it does.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages binfmt-support depends on:
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 

binfmt-support recommends no packages.

binfmt-support suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#575776; Package binfmt-support. (Mon, 29 Mar 2010 08:06:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik de Castro Lopo <erikd@mega-nerd.com>:
Extra info received and forwarded to list. Copy sent to Colin Watson <cjwatson@debian.org>. (Mon, 29 Mar 2010 08:06:10 GMT) Full text and rfc822 format available.

Message #10 received at 575776@bugs.debian.org (full text, mbox):

From: Erik de Castro Lopo <erikd@mega-nerd.com>
To: 575776@bugs.debian.org
Subject: Patch : Trivial fix!
Date: Mon, 29 Mar 2010 19:05:04 +1100
The fix for this is really trivial. Patch below.

Cheers,
Erik

--- run-detectors.pl.orig    2008-08-19 19:24:20.000000000 +1000
+++ run-detectors.pl     2010-03-29 19:02:45.869495423 +1100
@@ -88,7 +88,7 @@
 # as one succeeds, exec() it.
 
 for my $format (@ok_formats) {
-    if (length $format->{detector}) {
+    if (length $format->{detector} && -e $format->{detector}) {
        my $status = system $format->{detector}, $ARGV[0];
        $status /= 256; # actual exit value
        if ($status == 0) {



-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#575776; Package binfmt-support. (Mon, 29 Mar 2010 08:33:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. (Mon, 29 Mar 2010 08:33:06 GMT) Full text and rfc822 format available.

Message #15 received at 575776@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@debian.org>
To: Erik de Castro Lopo <erikd@mega-nerd.com>, 575776@bugs.debian.org
Subject: Re: Bug#575776: binfmt-support/run-detectors tries to run binfmt-detector-cli.
Date: Mon, 29 Mar 2010 09:28:50 +0100
On Mon, Mar 29, 2010 at 06:22:43PM +1100, Erik de Castro Lopo wrote:
>     Can't exec "/usr/lib/cli/binfmt-detector-cli": No such file or directory
>     at /usr/share/binfmt-support/run-detectors line 92.
> 
> Basically the run-detectors script should check to see if
> binfmt-detector-cli exists and only exec it if it does.

While it's true that your patch represents a trivial fix, it seems odd
that this situation should ever arise.  If the package providing
/usr/lib/cli/binfmt-detector-cli has been removed, shouldn't all the
binary formats using it as a detector also have been removed?  Could you
please elaborate on how you came across this problem?

Thanks,

-- 
Colin Watson                                       [cjwatson@debian.org]




Information forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#575776; Package binfmt-support. (Mon, 29 Mar 2010 08:57:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik de Castro Lopo <erikd@mega-nerd.com>:
Extra info received and forwarded to list. Copy sent to Colin Watson <cjwatson@debian.org>. (Mon, 29 Mar 2010 08:57:08 GMT) Full text and rfc822 format available.

Message #20 received at 575776@bugs.debian.org (full text, mbox):

From: Erik de Castro Lopo <erikd@mega-nerd.com>
To: 575776@bugs.debian.org
Cc: Colin Watson <cjwatson@debian.org>
Subject: Re: Bug#575776: binfmt-support/run-detectors tries to run binfmt-detector-cli.
Date: Mon, 29 Mar 2010 19:55:16 +1100
Colin Watson wrote:

> On Mon, Mar 29, 2010 at 06:22:43PM +1100, Erik de Castro Lopo wrote:
> >     Can't exec "/usr/lib/cli/binfmt-detector-cli": No such file or directory
> >     at /usr/share/binfmt-support/run-detectors line 92.
> > 
> > Basically the run-detectors script should check to see if
> > binfmt-detector-cli exists and only exec it if it does.
> 
> While it's true that your patch represents a trivial fix, it seems odd
> that this situation should ever arise.  If the package providing
> /usr/lib/cli/binfmt-detector-cli has been removed, shouldn't all the
> binary formats using it as a detector also have been removed?

I did look, but I couldn't figure out how binfmt-support figured out
that it should look for binfmt-detector-cli.

>  Could you
> please elaborate on how you came across this problem?

Well some time ago I removed the mono-runtime package which provides
binfmt-detector-cli.

There were no warnings of any kind. So either binfmt-support is a missing
dependency on mono-runtime (which would be silly) or binfmt-support needs
to be aware that mono-runtime may not be installed.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/




Added tag(s) patch. Request was from Erik de Castro Lopo <erikd@mega-nerd.com> to control@bugs.debian.org. (Wed, 31 Mar 2010 05:12:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#575776; Package binfmt-support. (Thu, 13 Oct 2011 06:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Andrew O. Shadura" <bugzilla@tut.by>:
Extra info received and forwarded to list. Copy sent to Colin Watson <cjwatson@debian.org>. (Thu, 13 Oct 2011 06:09:03 GMT) Full text and rfc822 format available.

Message #27 received at 575776@bugs.debian.org (full text, mbox):

From: "Andrew O. Shadura" <bugzilla@tut.by>
To: 575776@bugs.debian.org
Subject: binfmt-support/run-detectors tries to run binfmt-detector-cli
Date: Thu, 13 Oct 2011 09:07:30 +0300
[Message part 1 (text/plain, inline)]
Hello,

I seems to me that /var/lib/binfmts/cli file is still in place for
some reason even after mono runtime was removed. Removing it by hand
fixes the problem, so I guess we should reassing this bug to mono.

-- 
WBR, Andrew
[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 07:39:42 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.