Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] amd64 17.1 profiles ready for testing
Date: Sat, 16 Dec 2017 08:31:53
Message-Id: 1513413101.3076.2.camel@gentoo.org
In Reply to: Re: [gentoo-dev] amd64 17.1 profiles ready for testing by Kent Fredric
1 W dniu sob, 16.12.2017 o godzinie 16∶48 +1300, użytkownik Kent Fredric
2 napisał:
3 > On Fri, 15 Dec 2017 21:09:15 +0100
4 > Michał Górny <mgorny@g.o> wrote:
5 >
6 > > Sounds like you've put some awful self-symlink into this directory.
7 > > The script incorrectly follows top-level symlinks when removing, I'll
8 > > fix that.
9 >
10 > If it helps, this is on a no-multilib install, and the tree if I roll back to its state in may ( the last snapshot ) shows:
11 >
12 > /usr # ls -la
13 > total 24
14 > drwxr-xr-x 1 root root 142 Dec 3 2016 .
15 > drwxr-xr-x 1 root root 126 Dec 15 21:10 ..
16 > drwxr-xr-x 1 root root 14018 Dec 16 01:07 bin
17 > drwxr-xr-x 1 root root 4596 Dec 16 01:02 include
18 > lrwxrwxrwx 1 root root 5 Nov 24 2016 lib -> lib64
19 > drwxr-xr-x 1 root root 9980 Dec 16 01:02 lib64
20 >
21 > / # ls -la
22 > total 36
23 > drwxr-xr-x 1 root root 126 Dec 15 21:10 .
24 > drwxr-xr-x 1 root root 126 Dec 15 21:10 ..
25 > drwxr-xr-x 1 root root 1010 Dec 16 01:02 bin
26 > drwxr-xr-x 1 root root 10 Nov 24 2016 boot
27 > drwxr-xr-x 17 root root 3820 Dec 15 10:55 dev
28 > drwxr-xr-x 1 root root 1646 Dec 16 01:07 etc
29 > drwxr-xr-x 1 root root 22 Jan 23 2017 home
30 > lrwxrwxrwx 1 root root 5 Dec 15 21:10 lib -> lib64
31 > drwxr-xr-x 1 root root 3534 Dec 16 00:56 lib64
32 > drwxr-xr-x 1 root root 10 Nov 24 2016 media
33 > drwxr-xr-x 1 root root 10 Nov 24 2016 mnt
34 > drwxr-xr-x 1 root root 10 Jan 24 2017 opt
35 > dr-xr-xr-x 219 root root 0 Dec 15 10:54 proc
36 > drwxr-x--- 1 root wheel 488 Dec 15 11:04 root
37 > drwxr-xr-x 1 root root 22 Dec 15 21:36 run
38 > drwxr-xr-x 1 root root 1958 Dec 16 01:02 sbin
39 > dr-xr-xr-x 13 root root 0 Dec 15 10:55 sys
40 > drwxrwxrwt 1 root root 408 Dec 16 03:38 tmp
41 > drwxr-xr-x 1 root root 142 Dec 3 2016 usr
42 > drwxr-xr-x 1 root root 92 Jan 24 2017 var
43 >
44 > But as for "self-symlinks" I can't seem to find anything.
45
46 I suspect you have a stray '/lib64/lib64 -> /' or something like that.
47 In any case, this should be fixed by:
48
49 https://github.com/mgorny/unsymlink-lib/commit/b12feb90bdb72195f0ca5eede306783213bdacc9
50
51 I'd appreciate if you could retest with that commit on top (or taking
52 unsymlink-lib off git). This time it should not wipe your entire system,
53 hopefully.
54
55 > I should also point out that I had a bunch of bind-mounted directories in /usr/src/* from the host OS , and these were also recursively nuked. :/
56 >
57 > But I couldn't see anything obvious in the source that explained that ( and analysis didn't really have any indication of things that could get broken )
58
59 ...except for suspicious 'lib64' file? ;-)
60
61 --
62 Best regards,
63 Michał Górny