Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34421 - Patch for more detailed version info in qpkg -q
Summary: Patch for more detailed version info in qpkg -q
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 09:41 UTC by Qian Wang
Modified: 2004-02-06 15:36 UTC (History)
1 user (show)

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


Attachments
Returns more detailed dependency information (qpkg-query.patch,680 bytes, patch)
2003-11-26 09:43 UTC, Qian Wang
Details | Diff
Alternate speedup patch (qpkg.patch.3,1005 bytes, patch)
2003-12-24 08:35 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Qian Wang 2003-11-26 09:41:04 UTC
This patch allows qpkg -q to report more detailed dependency information which
is especially useful when there are dulicate packages in different slots.

For example, currently qpkg -q searches only for the base name of the package.
So we get queries like this:

$ qpkg -q -I sys-libs/db
sys-libs/db-1.85-r1
DEPENDED ON BY:
        perl-5.8.0-r12
        python-2.2.3-r5
        gaim-0.72-r1
        apache-2.0.48-r1
        pam-0.75-r11
sys-libs/db-4.0.14-r2
DEPENDED ON BY:
        perl-5.8.0-r12
        python-2.2.3-r5
        gaim-0.72-r1
        apache-2.0.48-r1
        pam-0.75-r11
sys-libs/db-3.2.9-r7
DEPENDED ON BY:
        perl-5.8.0-r12
        python-2.2.3-r5
        gaim-0.72-r1
        apache-2.0.48-r1
        pam-0.75-r11

which is rather confusing and doesn't show the true depencencies.

With this patch we get:

$ ./qpkg.mine -q -I sys-libs/db
sys-libs/db-1.85-r1 *
DEPENDED ON BY:
        >=sys-libs/db   python-2.2.3-r5
        =sys-libs/db-1  gaim-0.72-r1
        =sys-libs/db-1  libperl-5.8.0
        >=sys-libs/db   pam-0.75-r11
sys-libs/db-4.0.14-r2 *
DEPENDED ON BY:
        >=sys-libs/db   python-2.2.3-r5
        =sys-libs/db    gaim-0.72-r1
        >=sys-libs/db   libperl-5.8.0
        >=sys-libs/db   pam-0.75-r11
sys-libs/db-3.2.9-r7 *
DEPENDED ON BY:
        >=sys-libs/db-3 python-2.2.3-r5
        =sys-libs/db    gaim-0.72-r1
        >=sys-libs/db-3 libperl-5.8.0
        >=sys-libs/db-3 pam-0.75-r11

which shows more detailed info such as gaim depends on =db-1 and python needs
>=deb-3.

Detailed information like this should eliminate some of the forum questions
like "Why do I need 3 versions of foo?" and "Can I removed all old versions of
foo safely?".
Comment 1 Qian Wang 2003-11-26 09:43:32 UTC
Created attachment 21321 [details, diff]
Returns more detailed dependency information

patch against gentoolkit-0.1.36
Comment 2 Paul Varner (RETIRED) gentoo-dev 2003-12-24 08:35:59 UTC
Created attachment 22622 [details, diff]
Alternate speedup patch
Comment 3 Paul Varner (RETIRED) gentoo-dev 2003-12-24 08:36:26 UTC
Comment on attachment 22622 [details, diff]
Alternate speedup patch

wrong bug
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-02-06 15:36:34 UTC
just from looking at your sample output I see that it doesn't work (testing confirmed that), also qpkg will be phased out in favor of equery so I'm resistent to add new features to it.