Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666546 - app-portage/eix: Show SRC_URI and LICENSE
Summary: app-portage/eix: Show SRC_URI and LICENSE
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-19 10:59 UTC by Joakim Tjernlund
Modified: 2018-09-19 18:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2018-09-19 10:59:23 UTC
I like to have a simple way to display SRC_URI and LICENSE in this view:
 ~ # eix -I eix
[I] app-portage/eix
     Available versions:  0.32.9 ~0.33.0-r1 ~0.33.2 {debug doc nls sqlite}
     Installed versions:  0.32.9(03:07:05 28/01/18)(nls sqlite -debug -doc)
     Homepage:            https://github.com/vaeth/eix/
     Description:         Search and query ebuilds
Comment 1 Martin Väth 2018-09-19 12:24:16 UTC
LICENSE: You can use "eix -Iv eix" (which displays also a little bit more).
Or you can define your own format. For instance, you can modify the output of
eix --dump|grep FORMAT_ALL=
and insert %{FORMATLINE_LICENSES} (e.g. after %{FORMATLINE_DESCRIPTION}), and then export the new FORMAT_ALL variable (or put the assignment into some file from /etc/eixrc/ or into ~/.eixrc).

SRC_URI: This data is currently not stored in the eix database, because it would presumably double or triple the size of the database (with a corresponding slowdown) for not too much gain.
Unless there is a very good reason I also do not indent to change this, since SRC_URI is only useful if it would be stored/displayed for each version (instead of a package), i.e. it would only go to the output of "eix -Ivl eix"
Comment 2 Joakim Tjernlund 2018-09-19 14:11:47 UTC
(In reply to Martin Väth from comment #1)
> LICENSE: You can use "eix -Iv eix" (which displays also a little bit more).
> Or you can define your own format. For instance, you can modify the output of
> eix --dump|grep FORMAT_ALL=
> and insert %{FORMATLINE_LICENSES} (e.g. after %{FORMATLINE_DESCRIPTION}),
> and then export the new FORMAT_ALL variable (or put the assignment into some
> file from /etc/eixrc/ or into ~/.eixrc).

OK, this will work for me, thanks.

> 
> SRC_URI: This data is currently not stored in the eix database, because it
> would presumably double or triple the size of the database (with a
> corresponding slowdown) for not too much gain.
> Unless there is a very good reason I also do not indent to change this,
> since SRC_URI is only useful if it would be stored/displayed for each
> version (instead of a package), i.e. it would only go to the output of "eix
> -Ivl eix"

I see, I would only need SRC_URI for installed pkgs.

I tend to use eix to get of list of installed pkgs in the system for
documentation purposes. Maybe there another way to get at the SRC_URI ?
Comment 3 Martin Väth 2018-09-19 18:51:18 UTC
Unfortunately, portage does not store the SRC_URI of installed packages in /var/db.

It seems the only way to get the information is to use the metadata.

After thinking it over, I decided that eix should optionally support SRC_URI, depending on the value of a new eix configuration variable SRC_URI.
(So that people who do not want the increase of disk/memory usage can configure eix correspondingly).

The new version with this optional support is now in the git repository.
The corresponding alpha version eix-0.33.5_alpha20180919 is in the mv overlay.
In that overlay there is also a USE-flag for setting the default value of SRC_URI.