Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447538 - app-portage/gentoolkit: `equery meta' doesn't report package description
Summary: app-portage/gentoolkit: `equery meta' doesn't report package description
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2012-12-17 00:40 UTC by Dyweni
Modified: 2022-07-10 23:14 UTC (History)
4 users (show)

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

updated with an ugly fix for the issue (,15.70 KB, text/x-python)
2021-06-08 04:44 UTC, J21

Note You need to log in before you can comment on or make changes to this bug.
Description Dyweni 2012-12-17 00:40:14 UTC
Equery does not report the description listed in the ebuild file.

Reproducible: Always

Steps to Reproduce:
1. Ask equery for package description

# equery m -d gentoopm
 * app-portage/gentoopm [gentoo]
None specified

3. For workaround, grep the ebuild for the DESCRIPTION variable

# equery w gentoopm

# grep DESCRIPTION /usr/portage/app-portage/gentoopm/gentoopm-0.2.6.ebuild
DESCRIPTION="A common interface to Gentoo package managers"

Actual Results:  
Equery returns 'None specified'

Expected Results:  
Equery should return the package description.  In this case, it would be 'A common interface to Gentoo package managers'.
Comment 1 Dyweni 2012-12-17 00:43:21 UTC
I just tested this with the latest live ebuild of gentoolkit and the issue is not fixed there.

# equery w gentoopm

# equery m -d gentoopm
 * app-portage/gentoopm [gentoo]
None specified

# equery -V
equery (9999-f96e8dfc59ac1a4d7cc1bb296083561335e9a0e3) - Gentoo package query tool
Comment 2 Brian Dolbec gentoo-dev 2012-12-17 01:10:30 UTC
Yes, we know about this problem.  And we will work on it.

I am currently busy with some other more important coding at the moment.
Comment 3 Coacher 2016-05-14 10:45:18 UTC
Still reproducible with app-portage/gentoolkit-9999 @ e4dda3e.
Comment 4 José de Paula Rodrigues 2020-05-29 01:28:03 UTC

I've come from 8 years in the future to report that this is still an open issue :D
Comment 5 J21 2021-06-08 04:44:14 UTC
Created attachment 714375 [details]
updated with an ugly fix for the issue


An ugly fix for this is to update the (attached)

	if QUERY_OPTS["description"]:
		desc = best_match.metadata.descriptions()
		if not desc:
			sdesc = best_match.ebuild_path()
			file = open(sdesc, "r")
			for line in file:
				if"DESCRIPTION", line):

A proper one is probably creating a new class for ebuild reading and adding the same or enforcing\populating the metadata.xml description with the ebuild description value for all the packages
Comment 6 Brian Dolbec gentoo-dev 2022-07-10 03:46:57 UTC
Fixed description output when metadata.xml did not have one.
Falls back to the ebuild description.

brian@storm ~/Dev/git/gentoolkit $ equery m -d gentoopm
 * app-portage/gentoopm [gentoo]
A common interface to Gentoo package managers
brian@storm ~/Dev/git/gentoolkit $
Comment 7 Larry the Git Cow gentoo-dev 2022-07-10 03:47:17 UTC
The bug has been referenced in the following commit(s):

commit cc0b45fde4d333bd62da9988bc35418cd383c9ee
Author:     Brian Dolbec <>
AuthorDate: 2022-07-10 03:41:54 +0000
Commit:     Brian Dolbec <>
CommitDate: 2022-07-10 03:44:38 +0000

    equery meta: Fix missing description when not in metadata.xml
    Add description property to Package class.
    If no description in metadata.xml, get the description from the ebuild.
    Signed-off-by: Brian Dolbec <>

 pym/gentoolkit/equery/ | 2 ++
 pym/gentoolkit/     | 9 +++++++++
 2 files changed, 11 insertions(+)