all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Edouard Klein <edou@rdklein.fr>
To: Soren Stoutner <soren@stoutner.com>
Cc: help-guix@gnu.org
Subject: Re: lookup which file can be found in which package
Date: Sat, 03 Jun 2023 20:13:25 +0200	[thread overview]
Message-ID: <87pm6ce732.fsf@rdklein.fr> (raw)
In-Reply-To: <7085200.u18OAy0pa5@soren-desktop>

My usual method is first: guix search, then: grep -ri in a checkout of
the source, and last searching the web for the package name in other
distros, and a bit of guesswork. It usually endup in a *-utils or
*-tools package.

From a computer science standpoint this is an interesting problem.

The content of the store is the output of a program, so
discovering what it is reduces to the Halting Problem, which can't be
solved by automatic means for all packages.

Of course most packages are nicely coded, and grep usually find the
answer. Nevertheless, the only way to solve this for all packages would
be to install all packages and grep the store... i.e. run all programs
to completion and look at the output.

If you build a program to analyze the package code before it is
executed, one can always build a pathological package that will make it
fail (the canonical example would be a package that incorporates the
code of the checker, runs the checker on itself, and chose the answer
that makes the checker fail, but one can make a package whose output
depends on the Riemann conjecture being false, for example).

Cheers,



Soren Stoutner via <help-guix@gnu.org> writes:

> [[PGP Signed Part:Undecided]]
> This would be a nice feature that I hope gets implemented some day.
>
> On Friday, June 2, 2023 2:45:28 PM MST W. T. Meyer wrote:
>> "W. T. Meyer" <w@wmeyer.eu> writes:
>> > Is there a quick way in Guix to figure out which package provides which
>> > file similar to what other package managers provide with dnf
>> > provides/apt-file search/nix-locate etc.?
>>
>> There's an open patch for a guix index command mention on the
>> guix-patches mailing list:
>> https://lists.gnu.org/archive/html/guix-patches/2023-03/msg01210.html
>>
>> I guess this answers my question.
>>
>> - Wilko


  reply	other threads:[~2023-06-03 18:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 17:36 lookup which file can be found in which package W. T. Meyer
2023-06-02 21:45 ` W. T. Meyer
2023-06-02 22:27   ` Soren Stoutner via
2023-06-03 18:13     ` Edouard Klein [this message]
2023-06-03 21:04       ` Soren Stoutner via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm6ce732.fsf@rdklein.fr \
    --to=edou@rdklein.fr \
    --cc=help-guix@gnu.org \
    --cc=soren@stoutner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.