Gentoo Archives: gentoo-alt

From: yegle <cnyegle@×××××.com>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: Re: [gentoo-alt] OS X El Capitan bootstrap: failed with an undeletable directory
Date: Thu, 08 Oct 2015 15:56:45
Message-Id: CAFL5w3UA8g1H+pdVsESSYjWZCNyudjvmywTc8LTOBgB1_mkxVg@mail.gmail.com
In Reply to: Re: [gentoo-alt] OS X El Capitan bootstrap: failed with an undeletable directory by Ben Peddell
1 Hi Ben,
2
3
4 On Thu, Oct 8, 2015 at 4:18 AM, Ben Peddell <klightspeed@××××××××××××.au> wrote:
5 >
6 > -----BEGIN PGP SIGNED MESSAGE-----
7 > Hash: SHA1
8 >
9 > You could try moving the contained directories into a lower level directory - e.g.:
10 >
11 > <<EOF
12 > #!/bin/bash
13 >
14 > for builddir in .gentoo/tmp/var/tmp/*/*; do
15 > if [ -d "$builddir/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ]; then
16 > dn=0
17 > mv "$builddir/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ".gentoo/tmp/${builddir}-level${dn}"
18 > while [ -d "${builddir}-level${dn}/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ]; do
19 > mv "${builddir}-level${dn}/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" "${builddir}-level$(( dn+1 ))"
20 > (( dn++ ))
21 > done
22 > fi
23 > done
24 >
25 > rm -rf .gentoo/tmp
26 > EOF
27 >
28 >
29 > On 05/10/15 04:37, yegle wrote:
30 >> Hello list,
31 >>
32 >> Trying to bootstrap in OS X El Capitan. It failed because there's no
33 >> profile for x86_64-apple-darwin15, which is kind of expected.
34 >>
35 >> Now I'd like to remove the directory created during the failed
36 >> bootstrap, only find there's some nasty directory structure that
37 >> essentially makes it un-deletable.
38 >>
39 >> Here's the log when I try to delete the directory:
40 >> https://gist.github.com/yegle/5e1260578627bb7d1c41
41 >>
42 >> Any suggestions?
43 >>
44 >
45 > -----BEGIN PGP SIGNATURE-----
46 > Version: GnuPG v2
47 >
48 > iQEcBAEBAgAGBQJWFlECAAoJEL1LaPYiwn0bmD4H+QFpxOaGfDzAHa4085xYeppH
49 > DgRuJoBrWAu8xdOaBRwBad6USAJPe56DgE642GBUk8/H490wDt6GGCSz89ltAUgt
50 > l05WbXaKC5aapijC3GdRK97jQ5Uphd6/r2mW3eHiD1gfUIIeSntH1BIHRdArHSL/
51 > jTOBfICYtgYeP5UXPd7lzKc3ziZtPV3bDAcLEqGqYLbvRjqCxU+lIEPrMhsgvtty
52 > 5FW5RpCTwGE6Pm4V6mNUb7mpQm0xXN9FWz77NnDG3DCUyvFvhZQTmsO7OYx6QP39
53 > PEtusvgNnLJ0SI3WjcENhL0s3XJbayqhj1xKrwS5f1xhYuAY0WZ+5ZBLPZN6OnE=
54 > =MHNc
55 > -----END PGP SIGNATURE-----
56 >
57 >
58
59
60
61 --
62 yegle
63 http://about.me/yegle

Replies