data service: Show list of files and allow qeuerying

OpenSubmitted by Hartmut Goebel.
Details
5 participants
  • Bengt Richter
  • Hartmut Goebel
  • Pierre Neidhardt
  • Christopher Baines
  • zimoun
Owner
unassigned
Severity
wishlist
H
H
Hartmut Goebel wrote on 9 Jul 10:13 +0200
(name . bug-guix)(address . bug-guix@gnu.org)(name . Christopher Baines)(address . mail@cbaines.net)
38704555-aa70-e925-d43c-baa02998b58f@crazy-compilers.com
Serverity: wishlistI 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 :-)
-- RegardsHartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com || www.crazy-compilers.com | compilers which you thought are impossible |
H
H
Hartmut Goebel wrote on 9 Jul 11:06 +0200
control
(name . debbugs control)(address . control@debbugs.gnu.org)
f3383588-518f-1ff3-9f87-332c264e55d6@crazy-compilers.com
severity 42290 wishlistseverity 42291 wishlistseverity 42292 wishlist
Z
Z
zimoun wrote on 9 Jul 11:25 +0200
Re: bug#42291: data service: Show list of files and allow qeuerying
863661ca6m.fsf@gmail.com
Dear,
+Pierre because I am not sure he reads carefully debuugs. ;-)
On Thu, 09 Jul 2020 at 10:13, Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:
Toggle quote (5 lines)> 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

Toggle quote (2 lines)> 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
P
P
Pierre Neidhardt wrote on 9 Jul 11:34 +0200
873661m3ql.fsf@ambrevar.xyz
The good news is that I'm going to work on this... Soon© ;)
-- Pierre Neidhardthttps://ambrevar.xyz/
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl8G5JIACgkQm9z0l6S7zH8fQwf9H4odEJLR1fyoVrfojoWSjz+9sWC0aMK0h5080X9E63a2OIO4/SgezmZZlNivPzQdjBdt7Smjvw5+hI6mX/sw4UNDoUjv1bkPEbBMBb7YVqjudKiLc+NIc/tZKRP4OY2qq2rL/oAvqw0NJYdZsrWJsAfBgcjT8KeXp1IjmjPisrKusJsRk3dYRywYzbTkOScd1Z790sZhZq5g4QDZ/PHbYg3yOD1DAcsMm8jRG7z5thl05HzZoMjOEfz+BT+b85ReVxTmhFeOGzm5a30hPABe4YjcdrUVZ+d+WYlM03yNUzZv/vdrGGa/zlwF8ioDdEI8BE2YPUEQaXjJAWyxb8hjjg===zQgW-----END PGP SIGNATURE-----
B
B
Bengt Richter wrote on 10 Jul 03:52 +0200
(name . zimoun)(address . zimon.toutoune@gmail.com)
20200710015216.GA2523@LionPure
Hi
On +2020-07-09 11:25:05 +0200, zimoun wrote:
Toggle quote (20 lines)> Dear,> > +Pierre because I am not sure he reads carefully debuugs. ;-)> > On Thu, 09 Jul 2020 at 10:13, Hartmut Goebel <h.goebel@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 providea 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 designto a few consistent ways of specifying source and output options, so we wouldn't haveto 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 :)
Toggle quote (7 lines)> > All the best,> simon> > >
-- Regards,Bengt Richter
C
C
Christopher Baines wrote on 13 Jul 21:29 +0200
Re: data service: Show list of files and allow qeuerying
(name . Hartmut Goebel)(address . h.goebel@crazy-compilers.com)(address . 42291@debbugs.gnu.org)
877dv7jjs3.fsf@cbaines.net
Hartmut Goebel <h.goebel@crazy-compilers.com> writes:
Toggle quote (12 lines)> 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 sofar I've not been imagining meeting the need to search the files orcontents of store items through the Guix Data Service.
The contents of a package can also be viewed as the contents of adirectory in the store. The Guix Data Service does know about nars, butjust the information in the narinfo file.
What I've had in mind for a while is a service that listens to the GuixData Service for new nars, downloads them, indexes them (either just thefiles, or file contents too), and then provides a search interface overthis data. It's a little tricky, as you have to decide what to do aboutthe build reproducibility problem, if a package doesn't buildreproducibly, it's possible to get multiple different lists of files forthe same package.
At the moment, I'm looking at the "building things" area, but I'm stillinterested in this.
Thanks,
Chris
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl8MthxfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNFODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE9XfTaw//ZWJHx3Tujxtd5byOST7gwUyF3exGIa6pQCVJEtwVyZwJWMAk91OEV1hlbRoGVAtPVlcBBhiT/KZCdyut60ocVbdNFyGNKUdeyhafa8HOBB2XgQ0XMqAO+dYXgC9N6oowE6usqPXCd8hgxnQo18AbYyN0pGmOherETVp8XlLwsYKt30yCsQh+PBQeRdUjtQl8fGh2ZbzBfdbykdmrHs5+moTURvaQc0d9Ba+6sMqhW5K4xQI8Wf7B4w9wrHG4MCc7jpyLlwTS6htTUHlU+sDjIB09jASQw2e5baKTJnbqWo9+tF8NbAwTHaR1LRGrY9Fgkqh7Pmr04HtwUdFnrMxhYXWz8dd6gkYo//FcWCjXnFVOGpokT0V36P+szJpAJIS06xw1NCYY4o63575HzZVQEFLu3VuQQ9dtVaDZu2BLLGQmYdh/PS3l2lLgocC+LmBdDa9uKzId00dYxATM+C3PfGeUNFTiwKTLWrgfEJa9yDDPlO+r6L5ODsygr33EKWlTPEEGXBlTUJmZZmH5AFW6o9LNV5ktgbD1pC8AH3HCX9keGmLe1Drk+kmg6/8MzkwxF5Md4hFSYagLs0h5JApSUlapPxX2FR5AkD3lp4kpJJQ/aLRfI6+1zJ29L8hhIPNHhthCzHtjQrVv4etoK4LICytKr5msiXqcQVuBAJm9c6U==XLMK-----END PGP SIGNATURE-----
?