Gentoo Archives: gentoo-portage-dev

From: Thomas de Grenier de Latour <degrenier@×××××××××××.fr>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Atom matching behavior
Date: Tue, 01 Aug 2006 19:51:23
Message-Id: 20060801214943.6b4f7414@eusebe
In Reply to: Re: [gentoo-portage-dev] Atom matching behavior by Thomas de Grenier de Latour
1 On Tue, 1 Aug 2006 08:58:36 +0200,
2 Thomas de Grenier de Latour <degrenier@×××××××××××.fr> wrote:
3
4 > - "=media-libs/libsidplay-1.3*" matches libsidplay-1.36.57 (found in
5 > media-plugins/gst-plugins-sidplay)
6 >
7 > - "=sys-devel/autoconf-2.1*" matches autoconf-2.13 (found in
8 > net-proxy/privoxy and dev-tcltk/expect)
9 >
10 > - "=sys-devel/autoconf-2.5*" matches autoconf-2.59 (found in
11 > x11-libs/gtk-server and media-plugins/xmms-jack)
12 >
13
14 Oops, as often, my breakfast onliner was wrong. It missed this ones:
15
16 - =sys-libs/db-1.8* matches 1.85 (found in
17 net-nds/directoryadministrator)
18
19 - =sci-chemistry/openbabel-1.1* matches 1.100.2 (found in
20 sci-chemistry/xdrawchem and sci-chemistry/ghemical)
21
22 - =dev-java/mockobjects-0.0* matches 0.09 (found in dev-java/groovy)
23
24 - =app-text/docbook-xsl-stylesheets-1.6* matches 1.68.1 and 1.69.1
25 (found in media-sound/solfege)
26
27 So, that's 7 atoms in 10 packages (with sometimes several ebuilds for
28 the package). That's still very few though.
29
30 Btw, the command i've used:
31 % cd /usr/portage/metadata/cache
32 % find . -type f -exec sed -n 's:=[^ ]\+[0-9]\*:\n\0\n:gp' {} \; \
33 | grep -o '=[^ ]\+[0-9]\*' | sort -u \
34 | while read atom ; do
35 pkg=${atom#=} ; pkg=${pkg%\*}
36 ls ${pkg}[0-9]* &>/dev/null \
37 && echo "${atom}" && echo --- \
38 && ls -1 ${pkg}[0-9]* && echo --- \
39 && grep -Rl "${atom/\*/\\*}" * \
40 && echo
41 done
42
43 --
44 TGL.
45 --
46 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] Atom matching behavior Mike Frysinger <vapier@g.o>