Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47451 - bug and patch: qpkg --find-file /bin/kill show that kill belongs two packages due regexp bug
Summary: bug and patch: qpkg --find-file /bin/kill show that kill belongs two packages...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 41731 50157 56193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-10 12:20 UTC by Jani Averbach
Modified: 2005-01-06 05:01 UTC (History)
3 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 Jani Averbach 2004-04-10 12:20:01 UTC
cd /var/db/pkg/sys-apps/
grep '/bin/kill' */*
procps-3.2.1/CONTENTS:obj /bin/kill 866477c17b1f2f0cfe93ab8c086f8b69 1081623336
psmisc-21.4/CONTENTS:sym /usr/bin/killall -> /bin/killall 1081623478
psmisc-21.4/CONTENTS:obj /bin/killall 9da385d7f9ae5bc14834eabfaea2304f 1081623478
util-linux-2.12-r4/util-linux-2.12-r4.ebuild:   # /bin/kill is provided by procps ONLY

Now try unpatched version of qpkg
$ qpkg -nc -v --find-file /bin/kill
sys-apps/procps-3.2.1
sys-apps/psmisc-21.4

This is due the fact that regexp which has been used by script is:

 xargs grep -Fl " ${arg}"

when it should be:

 xargs grep -Fl " ${arg} "

This is with app-portage/gentoolkit-0.2.0_pre8.

With patched version, qpkg returns only 
$ qpkg -nc -v --find-file /bin/kill
sys-apps/procps-3.2.1


Reproducible: Always
Steps to Reproduce:




--- qpkg~       2004-04-10 13:14:38.159114928 -0600 
+++ qpkg        2004-04-10 13:17:36.246757819 -0600 
@@ -309,7 +309,7 @@ 
                [ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}" 
 
                dirs=`ls /var/db/pkg/${group}/*/CONTENTS \ 
-               | xargs grep -Fl " ${arg}" \ 
+               | xargs grep -Fl " ${arg} " \ 
                | xargs --no-run-if-empty -n 1 dirname` 
        fi 
        ipak=`(
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-04-21 20:06:02 UTC
*** Bug 41731 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2004-05-07 17:15:23 UTC
*** Bug 50157 has been marked as a duplicate of this bug. ***
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-07-06 05:50:03 UTC
*** Bug 56193 has been marked as a duplicate of this bug. ***
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:41 UTC
this tool is deprecated
Comment 5 Vincent 2005-01-06 03:22:55 UTC
Does that means that bugs won't be fixed? IMHO, this is a bug ...
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2005-01-06 05:01:36 UTC
actually this was fixed for some reason.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-01-06 05:01:59 UTC
closing