GNU bug report logs - #42291
data service: Show list of files and allow qeuerying

Previous Next

Package: guix;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Thu, 9 Jul 2020 08:15:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 42291 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

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


Report forwarded to bug-guix <at> gnu.org:
bug#42291; Package guix. (Thu, 09 Jul 2020 08:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 09 Jul 2020 08:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: bug-guix <bug-guix <at> gnu.org>
Cc: Christopher Baines <mail <at> cbaines.net>
Subject: data service: Show list of files and allow qeuerying
Date: Thu, 9 Jul 2020 10:13:58 +0200
Serverity: wishlist
I often find myself checking the content of a package. For this I would like to be able to inspect the list of files in a package, or even query for a specific file.

This is much like Debian does in "list of files" for each package (e.g. <https://packages.debian.org/en/buster/amd64/ejabberd-mod-cron/filelist>) and with "Search the contents of packages" <https://www.debian.org/distrib/packages#search_contents>

Many thanks :-)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Severity set to 'wishlist' from 'normal' Request was from Hartmut Goebel <h.goebel <at> crazy-compilers.com> to control <at> debbugs.gnu.org. (Thu, 09 Jul 2020 09:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#42291; Package guix. (Thu, 09 Jul 2020 09:26:02 GMT) Full text and rfc822 format available.

Message #10 received at 42291 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 42291 <at> debbugs.gnu.org,
 Pierre Neidhardt <mail <at> ambrevar.xyz>
Subject: Re: bug#42291: data service: Show list of files and allow qeuerying
Date: Thu, 09 Jul 2020 11:25:05 +0200
Dear,

+Pierre because I am not sure he reads carefully debuugs. ;-)

On Thu, 09 Jul 2020 at 10:13, Hartmut Goebel <h.goebel <at> crazy-compilers.com> wrote:
> Serverity: wishlist
> I often find myself checking the content of a package. For this I
> would like to be able to inspect the list of files in a package, or
> even query for a specific file.

Pierre proposed "guix filesearch" some time ago.

https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00236.html


> This is much like Debian does in "list of files" for each package (e.g. <https://packages.debian.org/en/buster/amd64/ejabberd-mod-cron/filelist>) and with "Search the contents of packages" <https://www.debian.org/distrib/packages#search_contents>

Yes, it could be nice to have that in the Data Service.


All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#42291; Package guix. (Thu, 09 Jul 2020 09:35:01 GMT) Full text and rfc822 format available.

Message #13 received at 42291 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>,
 Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 42291 <at> debbugs.gnu.org
Subject: Re: bug#42291: data service: Show list of files and allow qeuerying
Date: Thu, 09 Jul 2020 11:34:10 +0200
[Message part 1 (text/plain, inline)]
The good news is that I'm going to work on this... Soon© ;)

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42291; Package guix. (Fri, 10 Jul 2020 01:53:02 GMT) Full text and rfc822 format available.

Message #16 received at 42291 <at> debbugs.gnu.org (full text, mbox):

From: Bengt Richter <bokr <at> bokr.com>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>,
 Pierre Neidhardt <mail <at> ambrevar.xyz>, 42291 <at> debbugs.gnu.org
Subject: Re: bug#42291: data service: Show list of files and allow qeuerying
Date: Fri, 10 Jul 2020 03:52:16 +0200
Hi

On +2020-07-09 11:25:05 +0200, zimoun wrote:
> Dear,
> 
> +Pierre because I am not sure he reads carefully debuugs. ;-)
> 
> On Thu, 09 Jul 2020 at 10:13, Hartmut Goebel <h.goebel <at> crazy-compilers.com> wrote:
> > Serverity: wishlist
> > I often find myself checking the content of a package. For this I
> > would like to be able to inspect the list of files in a package, or
> > even query for a specific file.
> 
> Pierre proposed "guix filesearch" some time ago.
> 
> https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00236.html
> 
> 
> > This is much like Debian does in "list of files" for each package (e.g. <https://packages.debian.org/en/buster/amd64/ejabberd-mod-cron/filelist>) and with "Search the contents of packages" <https://www.debian.org/distrib/packages#search_contents>
> 
> Yes, it could be nice to have that in the Data Service.
>

Since this is about listing files, seems like it wouldn't be that hard to provide
a file globbing selection option like find dir -iname globexpr (pass through to find itself?)
(hm, also -newerct timespec can be a handy find opt)
and/or output control like "stat -c 'formatstring'" (likewise pass through to stat) ?
Also, ls-borrowed options like -B -1 -d -A might be nice.

If you want to consider the general problem of inspecting arbitrary object component details,
lsblk -o,selected,fields,listed,here  might be a good model (including -n option).

I think it would be nice if all object detail listing functions would converge in design
to a few consistent ways of specifying source and output options, so we wouldn't have
to re-invent "$(foo -dumpalot|sed -E ad_hoc_hack)" so much.

Are there any system design guidelines for converging?

BTW, please preserve cli and info retrieval independence from GUI systems,
(except when GUI preferences and parameters are the objects being inspected,
of course, but even then, minimize entanglements :)
    
> 
> All the best,
> simon
> 
> 
> 

-- 
Regards,
Bengt Richter




Information forwarded to bug-guix <at> gnu.org:
bug#42291; Package guix. (Mon, 13 Jul 2020 19:30:02 GMT) Full text and rfc822 format available.

Message #19 received at 42291 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 42291 <at> debbugs.gnu.org
Subject: Re: data service: Show list of files and allow qeuerying
Date: Mon, 13 Jul 2020 20:29:32 +0100
[Message part 1 (text/plain, inline)]
Hartmut Goebel <h.goebel <at> crazy-compilers.com> writes:

> Serverity: wishlist
> I often find myself checking the content of a package. For this I
> would like to be able to inspect the list of files in a package, or
> even query for a specific file.
>
> This is much like Debian does in "list of files" for each package
> (e.g. <https://packages.debian.org/en/buster/amd64/ejabberd-mod-cron/filelist>)
> and with "Search the contents of packages"
> <https://www.debian.org/distrib/packages#search_contents>
>
> Many thanks :-)

Hi Hartmut,

So, I'm in total agreement that this data would be great to have, but so
far I've not been imagining meeting the need to search the files or
contents of store items through the Guix Data Service.

The contents of a package can also be viewed as the contents of a
directory in the store. The Guix Data Service does know about nars, but
just the information in the narinfo file.

What I've had in mind for a while is a service that listens to the Guix
Data Service for new nars, downloads them, indexes them (either just the
files, or file contents too), and then provides a search interface over
this data. It's a little tricky, as you have to decide what to do about
the build reproducibility problem, if a package doesn't build
reproducibly, it's possible to get multiple different lists of files for
the same package.

At the moment, I'm looking at the "building things" area, but I'm still
interested in this.

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 4 years and 334 days ago.

Previous Next


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