Gentoo Archives: gentoo-dev

From: CJ Kucera <pez@××××××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Check versions of other packages within ebuilds
Date: Tue, 29 Oct 2002 12:37:02
Message-Id: 20021029123701.H18006@unisrv.net
1 Howdy!
2
3 For some time now, I've wished that there was a way to check for
4 other packages' versions when inside an ebuild. I know that there
5 are a whole bunch of packages that check for versions of GCC, etc,
6 using strange and convoluted sed/awk/etc statements. Which is
7 all well and good, but I've always felt that there should be a more
8 "clean" way to do it, that would be applicable to all packages as
9 well.
10
11 Well, today I finally did something about it, and you can read about
12 the fruits of my ten-minute-long labor here:
13
14 http://bugs.gentoo.org/show_bug.cgi?id=9910
15
16 Using my script, it'd be possible to do things like this in an ebuild:
17
18 version ">=gcc-3.0" && apply_gcc_3_patch()
19
20 Etcetera. I'm posting here, too, in the hopes that it'll get a
21 wider audience and thus be more likely to be cleaned up and eventually
22 make it into portage.
23
24 That is all.
25
26 -CJ
27
28 --
29 WOW: Kakistocracy | "The ships hung in the sky in much the same
30 apocalyptech.com/wow | way that bricks don't." - Douglas Adams,
31 pez@××××××××××××.com | _The Hitchhiker's Guide To The Galaxy_