1 |
On Fri, 26 Oct 2001 11:10:25 -0400 |
2 |
Grant Goodyear <grant@××××××××××××××.edu> wrote: |
3 |
|
4 |
> Conflicts are pretty rare, and most commonly of the ! virtual/mta |
5 |
> type (where we only want one system mailer installed), so I would |
6 |
> think that keeping the conflicts part of the ebuilds shouldn't be |
7 |
> all that bad. |
8 |
|
9 |
What data are you using for the "Conflicts are rare" statement? |
10 |
Using |
11 |
http://http.us.debian.org/debian/dists/testing/main/binary-i386/Packages |
12 |
I get: |
13 |
|
14 |
[jnelson@agamemnon jnelson]$ grep "Package: " Packages | wc -l |
15 |
6669 |
16 |
[jnelson@agamemnon jnelson]$ grep "Conflicts: " Packages | wc -l |
17 |
1637 |
18 |
[jnelson@agamemnon jnelson]$ grep "Replaces: " Packages | wc -l |
19 |
1265 |
20 |
[jnelson@agamemnon jnelson]$ grep "Provides: " Packages | wc -l |
21 |
923 |
22 |
|
23 |
[jnelson@agamemnon jnelson]$ python |
24 |
Python 1.5.2 (#0, Aug 2 2001, 11:14:43) [GCC egcs-2.91.66 19990314/Linux |
25 |
(egcs-1.1.2 release)] on linux-i386 |
26 |
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam |
27 |
>>> 1637.0 * 100 / 6669.0 |
28 |
24.5464087569 |
29 |
>>> 1265.0 * 100 / 6669.0 |
30 |
18.9683610736 |
31 |
>>> 923.0 * 100 / 6669.0 |
32 |
13.8401559454 |
33 |
|
34 |
|
35 |
So roughly 25% of the packages in Debian have a Conflicts line, |
36 |
and ~20 percent have a Replaces line (afaik, replaces is for |
37 |
when a package changes names). Provides is for meta packages, |
38 |
and is present in roughly 14% of the packages. |
39 |
|
40 |
25% is certainly not "pretty rare". |
41 |
|
42 |
An example from Debian: |
43 |
|
44 |
Replaces: cdgrab |
45 |
Provides: cdgrab |
46 |
Depends: cd-discid, wget, cdparanoia | cdda2wav, vorbis-tools (>= |
47 |
1.0beta4-1) |
48 |
Suggests: eject, distmp3, id3 (>= 0.12), id3v2 |
49 |
Conflicts: cdgrab |
50 |
|
51 |
Yikes! All of that is useful, however. |
52 |
|
53 |
As I understand it, gentoo has 'meta' packages as well. Debian |
54 |
uses these to great effect, but I've always been bothered |
55 |
by the naming scheme -- perhaps 'meta-c-compiler' vs. 'gcc', and |
56 |
'meta-httpd' vs. 'httpd' or some specific httpd would be better. |
57 |
|
58 |
|
59 |
-- |
60 |
Jon Nelson |
61 |
jnelson@×××××××.net |
62 |
C and Python Programmer |
63 |
Motorcycle Enthusiast |