Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116470 - app-portage/portage-utils: qlist libstdc++-v3 does not work
Summary: app-portage/portage-utils: qlist libstdc++-v3 does not work
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-23 02:35 UTC by Petteri Räty (RETIRED)
Modified: 2010-01-24 21:29 UTC (History)
2 users (show)

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


Attachments
portage-utils-libstdc++-v3.patch (portage-utils-libstdc++-v3.patch,1021 bytes, patch)
2008-11-01 20:35 UTC, Peter Volkov (RETIRED)
Details | Diff
portage-utils-libstdc++-v3.patch (portage-utils-libstdc++-v3.patch,1.26 KB, patch)
2008-11-02 06:50 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2005-12-23 02:35:59 UTC
betelgeuse@pena /mnt/checkouts/gentoo-x86/virtual $ qlist libstdc++-v3
betelgeuse@pena /mnt/checkouts/gentoo-x86/virtual $ equery f libstdc++-v3
[ Searching for packages matching libstdc++-v3... ]
* Contents of sys-libs/libstdc++-v3-3.3.6:
/etc
/etc/env.d
/etc/env.d/99libstdc++
/usr
/usr/lib
/usr/lib/libstdc++-v3
/usr/lib/libstdc++-v3/libstdc++.so.5 -> libstdc++.so.5.0.7
/usr/lib/libstdc++-v3/libstdc++.so.5.0.7
Comment 1 SpanKY gentoo-dev 2005-12-23 07:56:43 UTC
thats because qlist takes regex's
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-12-23 09:55:52 UTC
NAME
       qlist - manual page for qlist compiled on Nov  6 2005

SYNOPSIS
       qlist <pkgname> : list files owned by pkgname

Please improve the manua page to reflect this.
Comment 3 SpanKY gentoo-dev 2005-12-23 10:41:32 UTC
thanks jackass but it isnt a documentation issue :P
Comment 4 solar (RETIRED) gentoo-dev 2005-12-25 00:37:32 UTC
It works fine you are just using it wrong.
Try. qlist -e libstdc++-v3
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2005-12-25 02:25:14 UTC
(In reply to comment #4)
> It works fine you are just using it wrong.
> Try. qlist -e libstdc++-v3
> 

Had I guessed it takes regular expressions I could have used 
qlist 'libstdc\+\+-v3' too.
Comment 6 solar (RETIRED) gentoo-dev 2005-12-25 10:19:18 UTC
ok so can this be closed as invalid/workforsome/other?
Comment 7 SpanKY gentoo-dev 2005-12-25 10:39:32 UTC
no, i'll take care of it
Comment 8 David Watzke 2007-03-02 23:29:03 UTC
Looks like fixed, so this can be closed, or not?
Comment 9 solar (RETIRED) gentoo-dev 2007-03-03 00:21:35 UTC
Fixed in what version?

tinderbox hardened-sources # qlist -Uv portage-utils
app-portage/portage-utils-0.1.24

tinderbox hardened-sources # qlist -e libstdc++-v3
/usr/lib/libstdc++-v3/libstdc++.so.5
/usr/lib/libstdc++-v3/libstdc++.so.5.0.6
/etc/env.d/99libstdc++

tinderbox hardened-sources # qlist libstdc++-v3
tinderbox hardened-sources # 

tinderbox hardened-sources # qlist libstdc\\+\\+-v3
/usr/lib/libstdc++-v3/libstdc++.so.5
/usr/lib/libstdc++-v3/libstdc++.so.5.0.6
/etc/env.d/99libstdc++
Comment 10 David Watzke 2007-03-03 00:31:54 UTC
Not fixed that way, this is imho OK. When SpanKY said "i'll take care of it", I thought he changed something in manpage. My bad.

Anyway, just a note (in man qlist) that it takes regex in default would be IMHO good solution. There's no need to change default to behave like with -e option.
Comment 11 solar (RETIRED) gentoo-dev 2007-06-21 14:56:59 UTC
(In reply to comment #7)
> no, i'll take care of it
> 

I'm say we close this as LATER. The current behavior of -e is suitable.
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2008-11-01 20:33:30 UTC
(In reply to comment #7)
> no, i'll take care of it

Mike what was the idea? May be I'll help to implement this.

I'm thinking about either following variants (in no specific order):

1. escaping + character ( + -> \+ )
2. escaping + only when ++ encounters
3. document that this is regular expression, not package name
4. Always try exact match before regular expression
5. Before regexp match try match name with buf and then de[x]->d_name symbol by symbol and if all symbols in name match return that

So what is the best solution? For me 5 looks like best solution...
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2008-11-01 20:35:37 UTC
Created attachment 170478 [details, diff]
portage-utils-libstdc++-v3.patch

Suggestion 5 coded. Possibly I missed something at it's too late now, but you've got an idea. What do you think?
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2008-11-02 06:50:58 UTC
Created attachment 170501 [details, diff]
portage-utils-libstdc++-v3.patch

And this is a better patch.
Comment 15 Peter Volkov (RETIRED) gentoo-dev 2008-11-04 07:26:01 UTC
Discussed with solar in IRC and he allowed me to commit this change. So bug FIXED. Although I agree (bug 112818) that some general solution to this problem is required.