1 |
On Wed, 27 Aug 2003 02:24:37 -0400 |
2 |
Rajiv Aaron Manglani <rajiv@g.o> wrote: |
3 |
|
4 |
> >The netkit-base ebuild no longer provides ping (iputils provides a |
5 |
> >much better ping) |
6 |
> |
7 |
> how about this one: |
8 |
> |
9 |
> $ qpkg -f /etc/mailcap |
10 |
> net-mail/mailbase * |
11 |
> net-mail/pine * |
12 |
> |
13 |
|
14 |
I also want to play :) |
15 |
|
16 |
for f in $( find /var/db/pkg -name "CONTENTS" -exec cat {} \; | awk |
17 |
'/^obj/ { print $2 " " $3 }' | grep -v "^/var" | sort | uniq | awk '{ |
18 |
print $1 }' | uniq -d ) ; do echo "--- ${f}:" ; qpkg -nc -f -I -v ${f} ; |
19 |
echo ; done |
20 |
|
21 |
Basically, it will list files that have several owners registered in the |
22 |
packages db. The result were really huge here (but the box is 18 months |
23 |
old, with regular deep updates). Here is a summary: |
24 |
|
25 |
* Slot duplicates: |
26 |
|
27 |
Correct me if I'm wrong, but imho too versions of a package in different |
28 |
slots should not share files. If they do, then your system will start to |
29 |
depend on the order in which you have made installations/updates (which |
30 |
is already somehow true because of libs, but only concerns those that |
31 |
are not important enough to be deps, whereas here it may overide some |
32 |
explicit user choices). And if at some point portage allows in slots |
33 |
updates, results may be very bizarre on some machine. |
34 |
|
35 |
- The biggest part of my duplicates are because of old unslotted |
36 |
packages that were never cleaned by portage. This was easy to clean up |
37 |
(I've written a small script to force empty slot to same value as the |
38 |
smallest greater version of the package. May not be perfect, but |
39 |
saved some time.) |
40 |
|
41 |
- Another part is because of funky packages reslotting between similar |
42 |
versions (like "2.0" -> "2"), this kind of things. Don't take me wrong, |
43 |
I understand that devs sometimes want to polish their ebuilds, but I |
44 |
also think new slots should only be introduced when it is really |
45 |
necessary. As I don't like to see all this outdated things in my pkg db, |
46 |
I've made some manual clean here. |
47 |
|
48 |
- Then come what I would call real slotting bug: linux-headers is one |
49 |
(see bug #26460), but I've also seen also at least bug-buddy, guile, |
50 |
and orbit2 which use different slots whereas some files at a same |
51 |
location. |
52 |
|
53 |
|
54 |
* Real packages duplicates: |
55 |
|
56 |
Good news, there is big issue on my list: |
57 |
|
58 |
- openmotif vs. lesstif: a well known one. Almost all files are in both |
59 |
packages. I would vote for a mutual exclusion, because it doesn't |
60 |
makes sense to have both installed (one breaks the other). And in case |
61 |
of updates, the user will sometimes get lesstif, sometimes openmotif... |
62 |
(and don't ask why both where installed on my system, I have no idea) |
63 |
|
64 |
- net-analyzer/net-snmp-5.0.8 vs. net-analyzer/ucd-snmp-4.2.6-r1 |
65 |
(virtual/snmp): Same here. Shouldn't they be mutual exclusive? |
66 |
|
67 |
- net-mail/mailbase-0.00-r6 vs. net-p2p/bittorrent-3.2.1b-r4 on |
68 |
/etc/mailcap: This mailcap stuff really seems popular... Would be |
69 |
nice to have only one package (mailbase?) which provides it, and the |
70 |
others (bittorrent an pine) depends on it. |
71 |
|
72 |
- sys-apps/coreutils-5.0-r2 vs. sys-apps/shadow-4.0.3-r7 on /bin/groups |
73 |
(is it supposed to be the same program in both |
74 |
packages?) |
75 |
|
76 |
- dev-tcltk/expect-5.37.1-r1 vs. net-misc/whois-4.6.6-r2 on |
77 |
/usr/bin/mkpasswd (same question) |
78 |
|
79 |
- sys-apps/coreutils-5.0-r2 vs. sys-apps/procps-3.1.11 vs. |
80 |
sys-apps/util-linux-2.12 on /bin/kill (already discussed) |
81 |
|
82 |
- sys-devel/gcc-2.95.3-r8 vs. sys-devel/gcc-config-1.3.3-r1 on |
83 |
/lib/cpp. I guess it's well intentional? |
84 |
|
85 |
- app-admin/etcat-0.1 vs. app-portage/gentoolkit-0.1.30: couldn't the |
86 |
separate package (etcat) be removed? |
87 |
|
88 |
- app-text/html-xml-utils-2.3-r1 vs. media-sound/normalize-0.7.6-r1 on |
89 |
/usr/bin/normalize: Doh! I guess this two ones are not that related... I |
90 |
think this one is really a bug, I will submit it. |
91 |
|
92 |
- several perl modules vs. perl-5.8: I guess it's normal. |
93 |
|
94 |
- dev-libs/libusb-0.1.7 vs. sys-apps/usbutils-0.11-r1 on |
95 |
/usr/lib/libusb.la |
96 |
|
97 |
- dev-python/gnome-python-1.4.4 vs. dev-python/pygtk-1.99.17 |
98 |
(Could be an issue, since both packages are used by some apps. But I've |
99 |
not checked if the files were supposed to be really different or just |
100 |
duplicates of the same code.) |
101 |
|
102 |
- sys-devel/binutils-2.14.90.0.6-r1 vs. sys-devel/gdb-5.3 on some info |
103 |
files (Who cares?...) |
104 |
|
105 |
- lots of duplicates on manpages, mainly coreutils vs. the rest of the |
106 |
world (Again, not a real issue) |
107 |
|
108 |
|
109 |
|
110 |
And that's all, this mail is long enough, I don't have a conclusion :) |
111 |
|
112 |
-- |
113 |
TGL. |
114 |
|
115 |
-- |
116 |
gentoo-dev@g.o mailing list |