Gentoo Archives: gentoo-user

From: Willie Wong <wwong@×××××××××.EDU>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge --search can't find local ebuild?
Date: Wed, 28 May 2008 16:15:16
Message-Id: 20080528161659.GA25062@princeton.edu
In Reply to: Re: [gentoo-user] emerge --search can't find local ebuild? by Neil Bothwick
1 On Wed, May 28, 2008 at 04:34:10PM +0100, Penguin Lover Neil Bothwick squawked:
2 > On Wed, 28 May 2008 15:21:53 +0000 (UTC), Grant Edwards wrote:
3 >
4 > > I can't figure out why "emerge --search" can't find a local
5 > > ebuild, but "emerge -av" can:
6 >
7 > The man page states:
8 >
9 > --search (-s)
10 > Searches for matches of the supplied string in the portage tree.
11 >
12 > It only mentions the portage tree, not overlays. emerge --search is not
13 > worth using anyway, it is far too slow. Use eix instead.
14 >
15
16 That's just false (not that emerge --search not worth using part, but
17 the part before that).
18
19 app-i18n/gcin is provided by the gentoo-taiwan overlay:
20
21 ~ $ emerge --search gcin
22 Searching...
23 [ Results for search key : gcin ]
24 [ Applications found : 1 ]
25
26 * app-i18n/gcin
27 Latest version available: 1.4.0_pre13
28 Latest version installed: 1.4.0_pre10
29 Size of files: 6,716 kB
30 Homepage: http://www.csie.nctu.edu.tw/~cp76/gcin/ http://cle.linux.org.tw/trac/wiki/GcinGirlForNoBopomofo
31 Description: Another Traditional Chinese IM.
32 License: GPL-2
33
34 but
35
36 ~ $ emerge --search "app-i18n/gcin"
37 Searching...
38 [ Results for search key : app-i18n/gcin ]
39 [ Applications found : 0 ]
40
41
42 whereas app-i18n/kinput2 is provided by the tree
43
44 ~ $ emerge --search kinput2
45 Searching...
46 [ Results for search key : kinput2 ]
47 [ Applications found : 1 ]
48
49 * app-i18n/kinput2
50 Latest version available: 3.1-r1
51 Latest version installed: 3.1-r1
52 Size of files: 500 kB
53 Homepage: http://www.nec.co.jp/canna/
54 Description: A Japanese input server which supports the XIM protocol
55 License: as-is
56
57
58 and yet I can't search it either with category
59
60 ~ $ emerge --search "app-i18n/kinput2"
61 Searching...
62 [ Results for search key : app-i18n/kinput2 ]
63 [ Applications found : 0 ]
64
65
66 The right answer, should you have looked several more lines
67 down the man page, is that:
68
69 = If you want to include the category into the
70 = search string, prepend an @: emerge --search "%@^dev-java.*jdk".
71
72 So
73
74 ~ $ emerge --search "@app-i18n/gcin"
75 Searching...
76 [ Results for search key : app-i18n/gcin ]
77 [ Applications found : 1 ]
78
79 * app-i18n/gcin
80 Latest version available: 1.4.0_pre13
81 Latest version installed: 1.4.0_pre10
82 Size of files: 6,716 kB
83 Homepage: http://www.csie.nctu.edu.tw/~cp76/gcin/ http://cle.linux.org.tw/trac/wiki/GcinGirlForNoBopomofo
84 Description: Another Traditional Chinese IM.
85 License: GPL-2
86
87 Finds gcin that is in an overlay.
88
89 HTH,
90
91 W
92 --
93 I just let my mind wander, and it didn't come back.
94 Sortir en Pantoufles: up 537 days, 14:46
95 --
96 gentoo-user@l.g.o mailing list