Debian Bug report logs - #638517
Introduce a Commands field for command-not-found or similar utilities

Package: ftp.debian.org; Maintainer for ftp.debian.org is Debian FTP Master <ftpmaster@ftp-master.debian.org>;

Reported by: Julian Andres Klode <jak@debian.org>

Date: Fri, 19 Aug 2011 15:42:05 UTC

Severity: wishlist

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, jak@debian.org, mvo@debian.org, Debian FTP Master <ftpmaster@ftp-master.debian.org>:
Bug#638517; Package ftp.debian.org. (Fri, 19 Aug 2011 15:42:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julian Andres Klode <jak@debian.org>:
New Bug report received and forwarded. Copy sent to jak@debian.org, mvo@debian.org, Debian FTP Master <ftpmaster@ftp-master.debian.org>. (Fri, 19 Aug 2011 15:42:08 GMT) Full text and rfc822 format available.

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

From: Julian Andres Klode <jak@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ftp.debian.org: Introduce a Commands field for command-not-found or similar utilities
Date: Fri, 19 Aug 2011 17:39:09 +0200
[Message part 1 (text/plain, inline)]
Package: ftp.debian.org
Severity: wishlist

For tools such as command-not-found, we need to know which commands
a package provides. We currently provide update-command-not-found
which downloads and processes Contents files due to ftpmaster
request, but I think that this solution is not good enough due
to the following things:

    (a) Contents files require much space on the disk
    (b) Parsing Contents files is not exactly fast
    (c) Users have to manually update the data, or there needs to
        be a cron job
    (d) Due to (c), the package is unusable after direct installation
        without first fetching Contents files

I propose that we add a new field called Commands (or whatever you
want) that provides a list of all commands a package provides in
the standard (root) path ({/usr,}/{s,}bin and /usr/games, although
the first ones are most important) with their basenames.

Example:
 Package: apt
 Commands: apt-get, apt-config, apt-mark, apt-cdrom, apt-cache, apt-key 

We could then use that information directly and potentially add
command-not-found support to APT itself (once we break ABI), which
means one package less in the archive :)

The needed information can be found in bin_contents.file, but we
may want to allow packages to override the field themselves, as
bin_contents.file does not deal with alternatives and other
things done in maintainer scripts, maintainers of such packages
could then manually maintain the field with alternatives, or
the maintainer-supplied value could be merged with the value
extracted from projectb.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
[Message part 2 (application/pgp-signature, inline)]

Changed Bug title to 'Introduce a Commands field for command-not-found or' from 'ftp.debian.org: Introduce a Commands field for command-not-found or similar utilities' Request was from Luca Falavigna <dktrkranz@debian.org> to control@bugs.debian.org. (Tue, 26 Jun 2012 10:21:40 GMT) Full text and rfc822 format available.

Changed Bug title to 'Introduce a Commands field for command-not-found or similar utilities' from 'Introduce a Commands field for command-not-found or' Request was from Luca Falavigna <dktrkranz@debian.org> to control@bugs.debian.org. (Tue, 26 Jun 2012 14:48:05 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 16:57:25 2014; Machine Name: beach.debian.org

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