Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: [gentoo-user] Collisions when compiling glibc-2.5-r3 and r4 on amd64
Date: Sun, 15 Jul 2007 10:25:03
Message-Id: pan.2007.07.15.10.23.02@cox.net
In Reply to: [gentoo-amd64] [gentoo-user] Collisions when compiling glibc-2.5-r3 and r4 on amd64 by Marc Joliet
1 Marc Joliet <marcec@×××.de> posted
2 1184460910.24252.59.camel@××××××××××××××××××××××××××××××.de, excerpted
3 below, on Sun, 15 Jul 2007 02:55:10 +0200:
4
5 > making executable: usr/lib32/libc.so
6 > making executable: usr/lib32/libpthread.so making executable:
7 > usr/lib64/libc.so
8 > making executable: usr/lib64/libpthread.so
9 > * checking 2373 files for package collisions [...]
10 > existing file /lib is not owned by this package
11 > * This package is blocked because it wants to overwrite
12 > * files belonging to other packages (see messages above).
13 > * If you have no clue what this is all about report it
14 > * as a bug for this package on http://bugs.gentoo.org
15 >
16 > package sys-libs/glibc-2.5-r4 NOT merged
17 >
18 >
19 > Searching all installed packages for file collisions... Press Ctrl-C to
20 > Stop
21 >
22 > * x11-drivers/nvidia-drivers-1.0.9746-r1:
23 >
24 > '/lib'
25
26 [snip]
27
28 > Is there a 'clean' work around? The only option I found is to set
29 > COLLISION_IGNORE="/lib" in make.conf. That seems to do the trick insofar
30 > that glibc merges. For "emerge --info" see attachment.
31 >
32 > Apparently, from what I read, the collision-protect[1] option is
33 > supposed to ignore directories. Since this was asked in other reports I
34 > found while searching for info: /lib is not a symlink, rather /lib64 is
35 > a symlink to /lib. Out of curiosity: when would /lib ever be a symlink?
36
37 It's probably a portage bug, confusion due to lib64 being a symlink to
38 lib for amd64. The thing is, not a lot of folks run collision-protect,
39 and while many devs do, in a lot of cases they aren't running stable, but
40 ~arch. Thus, they'll have long since moved past that version of portage,
41 and may not have caught the issue (tho packages /are/ supposed to be
42 tested on stable with collision-protect on, before stabilizing)
43
44 Have you seen http://bugs.gentoo.org/show_bug.cgi?id=80846 (which is
45 linked from the bug you mentioned)? It looks like either that bug or a
46 special case very similar to that bug. What portage are you running? Is
47 it the 2.1.2 series past the -pre1 mentioned in that bug? Is portage
48 updated to the latest stable on your system?
49
50 Beyond that, you'll need to let the experts tell you. It's close enough
51 to 80846 to be a dup, but if you are running portage 2.1.2 or later,
52 according to that, it /should/ be fixed, so maybe it's a corner case that
53 was missed, or... I don't know!
54
55 As for symlinks and lib/lib64, Gentoo/amd64 has gone both ways over the
56 years. Some release stage tarballs had lib64 -> lib, others lib ->
57 lib64. FWIW, here's what I have here/now:
58
59 $ls -d -l /lib /lib64
60 lrwxrwxrwx 1 root root 5 2007-05-22 23:49 /lib -> lib64/
61 drwxr-xr-x 10 root root 4376 2007-07-13 10:17 /lib64/
62
63 FWIW, my /usr location symlink points in the same direction as well.
64 However, that's because when I switched off multilib, I tried running the
65 two as separate dirs. It didn't quite work, however, because a few
66 ebuilds install to lib64 but call or install scripts that call the app in
67 (hardcoded) lib, or the reverse, so they can't be separate dirs, or the
68 system will be expecting it in one and not finding it, because it's in
69 the other. So, once I figured out it wouldn't work, I resymlinked them,
70 and it was easiest to cp from lib to lib64, then delete lib and make it a
71 symlink, so that's what I did. IDR what it was before, or know which way
72 the current release stage tarballs set it up.
73
74 --
75 Duncan - List replies preferred. No HTML msgs.
76 "Every nonfree program has a lord, a master --
77 and if you use the program, he is your master." Richard Stallman
78
79 --
80 gentoo-amd64@g.o mailing list

Replies