data service: Show list of files and allow qeuerying

  • Open
  • quality assurance status badge
Details
5 participants
  • Bengt Richter
  • Hartmut Goebel
  • Pierre Neidhardt
  • Christopher Baines
  • zimoun
Owner
unassigned
Submitted by
Hartmut Goebel
Severity
wishlist
H
H
Hartmut Goebel wrote on 9 Jul 2020 10:13
(name . bug-guix)(address . bug-guix@gnu.org)(name . Christopher Baines)(address . mail@cbaines.net)
38704555-aa70-e925-d43c-baa02998b58f@crazy-compilers.com
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@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
H
H
Hartmut Goebel wrote on 9 Jul 2020 11:06
control
(name . debbugs control)(address . control@debbugs.gnu.org)
f3383588-518f-1ff3-9f87-332c264e55d6@crazy-compilers.com
severity 42290 wishlist
severity 42291 wishlist
severity 42292 wishlist
Z
Z
zimoun wrote on 9 Jul 2020 11:25
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.



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 2020 11:34
873661m3ql.fsf@ambrevar.xyz
The good news is that I'm going to work on this... Soon© ;)

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl8G5JIACgkQm9z0l6S7
zH8fQwf9H4odEJLR1fyoVrfojoWSjz+9sWC0aMK0h5080X9E63a2OIO4/SgezmZZ
lNivPzQdjBdt7Smjvw5+hI6mX/sw4UNDoUjv1bkPEbBMBb7YVqjudKiLc+NIc/tZ
KRP4OY2qq2rL/oAvqw0NJYdZsrWJsAfBgcjT8KeXp1IjmjPisrKusJsRk3dYRywY
zbTkOScd1Z790sZhZq5g4QDZ/PHbYg3yOD1DAcsMm8jRG7z5thl05HzZoMjOEfz+
BT+b85ReVxTmhFeOGzm5a30hPABe4YjcdrUVZ+d+WYlM03yNUzZv/vdrGGa/zlwF
8ioDdEI8BE2YPUEQaXjJAWyxb8hjjg==
=zQgW
-----END PGP SIGNATURE-----

B
B
Bengt Richter wrote on 10 Jul 2020 03:52
(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 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 :)
Toggle quote (7 lines)
>
> All the best,
> simon
>
>
>

--
Regards,
Bengt Richter
C
C
Christopher Baines wrote on 13 Jul 2020 21:29
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 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
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl8MthxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XfTaw//ZWJHx3Tujxtd5byOST7gwUyF3exGIa6pQCVJEtwVyZwJWMAk91OEV1hl
bRoGVAtPVlcBBhiT/KZCdyut60ocVbdNFyGNKUdeyhafa8HOBB2XgQ0XMqAO+dYX
gC9N6oowE6usqPXCd8hgxnQo18AbYyN0pGmOherETVp8XlLwsYKt30yCsQh+PBQe
RdUjtQl8fGh2ZbzBfdbykdmrHs5+moTURvaQc0d9Ba+6sMqhW5K4xQI8Wf7B4w9w
rHG4MCc7jpyLlwTS6htTUHlU+sDjIB09jASQw2e5baKTJnbqWo9+tF8NbAwTHaR1
LRGrY9Fgkqh7Pmr04HtwUdFnrMxhYXWz8dd6gkYo//FcWCjXnFVOGpokT0V36P+s
zJpAJIS06xw1NCYY4o63575HzZVQEFLu3VuQQ9dtVaDZu2BLLGQmYdh/PS3l2lLg
ocC+LmBdDa9uKzId00dYxATM+C3PfGeUNFTiwKTLWrgfEJa9yDDPlO+r6L5ODsyg
r33EKWlTPEEGXBlTUJmZZmH5AFW6o9LNV5ktgbD1pC8AH3HCX9keGmLe1Drk+kmg
6/8MzkwxF5Md4hFSYagLs0h5JApSUlapPxX2FR5AkD3lp4kpJJQ/aLRfI6+1zJ29
L8hhIPNHhthCzHtjQrVv4etoK4LICytKr5msiXqcQVuBAJm9c6U=
=XLMK
-----END PGP SIGNATURE-----

?