Gentoo Archives: gentoo-alt

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

Replies