Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796986 - app-portage/gentoolkit equery c fails with !!! Unknown module 'c'
Summary: app-portage/gentoolkit equery c fails with !!! Unknown module 'c'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-20 17:30 UTC by Alessandro Barbieri
Modified: 2022-06-03 08:38 UTC (History)
5 users (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 Alessandro Barbieri 2021-06-20 17:30:58 UTC
equery c fails at running

Reproducible: Always

Steps to Reproduce:
1. equery c gcc


Expected Results:  
!!! Unknown module 'c'
Comment 1 Jonas Stein gentoo-dev 2021-06-20 18:36:46 UTC
I can not reproduce it here.
The situation seems to be a bit more complicate and requires some analysis.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-20 18:46:48 UTC
 % equery c gcc                 
!!! Unknown module 'c'
Usage: equery [global-options] module-name [module-options]

global options
 -h, --help              display this help message
 -q, --quiet             minimal output
 -C, --no-color          turn off colors
 -N, --no-pipe           turn off pipe detection
 -V, --version           display version info

modules (short name)
 (b)elongs               list what package FILES belong to
 (c)hanges               list changelog entries for ATOM
 chec(k)                 verify checksums and timestamps for PKG
 (d)epends               list all packages directly depending on ATOM
 dep(g)raph              display a tree of all dependencies for PKG
 (f)iles                 list all files installed by PKG
 h(a)s                   list all packages for matching ENVIRONMENT data stored in /var/db/pkg
 (h)asuse                list all packages that have USE flag
 ke(y)words              display keywords for specified PKG
 (l)ist                  list package matching PKG
 (m)eta                  display metadata about PKG
 (s)ize                  display total size of all files owned by PKG
 (u)ses                  display USE flags for PKG
 (w)hich                 print full path to ebuild for PKG
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-20 18:47:28 UTC
(In reply to Sam James from comment #2)
>  % equery c gcc                 
> !!! Unknown module 'c'
> Usage: equery [global-options] module-name [module-options]
> 
> global options
>  -h, --help              display this help message
>  -q, --quiet             minimal output
>  -C, --no-color          turn off colors
>  -N, --no-pipe           turn off pipe detection
>  -V, --version           display version info
> 
> modules (short name)
>  (b)elongs               list what package FILES belong to
>  (c)hanges               list changelog entries for ATOM

I suspect 'c' / changelogs makes no sense in 2021 (with git) and this is an obsolete entry in the help output.
Comment 4 LW 2021-07-06 19:32:14 UTC
If equery doesn't show the reasons for changes to an ebuild, what command-line tools would? Not seeing anything in DESCRIPTION of app-portage ebuilds that
looks appropriate for replacing the removed operation in equery.

Is it unreasonable for gentoolkit or portage-utils to provide information
about why an ebuild is changed? Or would it be a lot of work to have the
commit process insert the commit message in the ebuild?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-06 19:34:27 UTC
(In reply to LW from comment #4)
> If equery doesn't show the reasons for changes to an ebuild, what
> command-line tools would? Not seeing anything in DESCRIPTION of app-portage
> ebuilds that
> looks appropriate for replacing the removed operation in equery.
> 
> Is it unreasonable for gentoolkit or portage-utils to provide information
> about why an ebuild is changed? Or would it be a lot of work to have the
> commit process insert the commit message in the ebuild?

We actually had ChangeLogs years ago with CVS and got rid of them.
Comment 6 Matt Turner gentoo-dev 2021-07-16 21:20:39 UTC
Oops, looks like I missed a couple of spots when deleting 'equery changes' in https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=bcb81589c94c416aa460100092f1c2c76c013a93

I'll fix that...

(In reply to LW from comment #4)
> If equery doesn't show the reasons for changes to an ebuild, what
> command-line tools would? Not seeing anything in DESCRIPTION of app-portage
> ebuilds that
> looks appropriate for replacing the removed operation in equery.
> 
> Is it unreasonable for gentoolkit or portage-utils to provide information
> about why an ebuild is changed? Or would it be a lot of work to have the
> commit process insert the commit message in the ebuild?

It's not possible without the ChangeLog files that we haven't generated in years. The much better solution is to go straight to the source (i.e., the gentoo git repository) and use `git log`.
Comment 7 Larry the Git Cow gentoo-dev 2021-07-16 21:25:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=55170b5be88df6d5d8f6e07ecb39fc1a86d3426a

commit 55170b5be88df6d5d8f6e07ecb39fc1a86d3426a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-07-16 21:21:44 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-07-16 21:21:44 +0000

    equery: Remove leftovers from 'changes' removal
    
    Closes: https://bugs.gentoo.org/796986
    Fixes: bcb8158 ("equery: Remove 'changes' subcommand")
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 man/equery.1                      | 48 ---------------------------------------
 pym/gentoolkit/equery/__init__.py |  1 -
 2 files changed, 49 deletions(-)
Comment 8 Daniel Hiepler 2022-06-03 08:38:07 UTC
Just came across this bug, since equery (0.5.1-r1) still shows:

# equery --help
...
(c)hanges               list changelog entries for ATOM
...