1 |
On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote: |
2 |
> |
3 |
> has_version only returns 0 or 1 depending whether the package is |
4 |
> installed or |
5 |
> not, so it's useless in this case. best_version would be a better |
6 |
> alternative, |
7 |
> however that alone won't solve the problem. |
8 |
|
9 |
That's all that's really needed since all you'd care about in this |
10 |
instance is the existance of one of 2 or 3 major versions. Just look |
11 |
for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you |
12 |
find. |
13 |
|
14 |
> Read about best_version in the ebuild(5) manual page. After you're |
15 |
> done with |
16 |
> that, read about the versionator eclass in the versionator.eclass(5) |
17 |
> manual |
18 |
> page (may have to emerge portage-manpages). You'll probably have to |
19 |
> use a |
20 |
> combination of both to do what you're trying to achieve. |
21 |
> |
22 |
> HTH |
23 |
> |
24 |
> - -- |
25 |
> printk(KERN_EMERG "PCI: Tell willy he's wrong |
26 |
> "); |
27 |
> linux-2.6.6/arch/parisc/kernel/pci.c |
28 |
> |
29 |
> Aaron Walker <ka0ttic@g.o> |
30 |
> [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | |
31 |
> web-apps ] |
32 |
> -----BEGIN PGP SIGNATURE----- |
33 |
> Version: GnuPG v1.4.0 (GNU/Linux) |
34 |
> |
35 |
> iD8DBQFCJuZhC3poscuANHARAno+AJ0S4wl1FnzHKuKSeNj92CBKMsOpogCgmhrR |
36 |
> 9lSrUePKgaiEePdqlNVZpaM= |
37 |
> =bznu |
38 |
> -----END PGP SIGNATURE----- |
39 |
> -- |
40 |
> gentoo-dev@g.o mailing list |
41 |
> |
42 |
|
43 |
-- |
44 |
gentoo-dev@g.o mailing list |