public inbox for gentoo-alt@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ben Peddell <klightspeed@netspace.net.au>
To: gentoo-alt@lists.gentoo.org
Subject: Re: [gentoo-alt] OS X El Capitan bootstrap: failed with an undeletable directory
Date: Thu, 8 Oct 2015 21:18:26 +1000	[thread overview]
Message-ID: <56165102.5060908@netspace.net.au> (raw)
In-Reply-To: <CAFL5w3Um=80jsH_u1cv+13YShr1K9jXZmsiHYrUwMGwupE6Ogw@mail.gmail.com>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You could try moving the contained directories into a lower level directory - e.g.:

<<EOF
#!/bin/bash

for builddir in .gentoo/tmp/var/tmp/*/*; do
  if [ -d "$builddir/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ]; then
    dn=0
    mv "$builddir/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ".gentoo/tmp/${builddir}-level${dn}"
    while [ -d "${builddir}-level${dn}/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" ]; do
      mv "${builddir}-level${dn}/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---/confdir-14B---" "${builddir}-level$(( dn+1 ))"
      (( dn++ ))
    done
  fi
done

rm -rf .gentoo/tmp
EOF


On 05/10/15 04:37, yegle wrote:
> Hello list,
>
> Trying to bootstrap in OS X El Capitan. It failed because there's no
> profile for x86_64-apple-darwin15, which is kind of expected.
>
> Now I'd like to remove the directory created during the failed
> bootstrap, only find there's some nasty directory structure that
> essentially makes it un-deletable.
>
> Here's the log when I try to delete the directory:
> https://gist.github.com/yegle/5e1260578627bb7d1c41
>
> Any suggestions?
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJWFlECAAoJEL1LaPYiwn0bmD4H+QFpxOaGfDzAHa4085xYeppH
DgRuJoBrWAu8xdOaBRwBad6USAJPe56DgE642GBUk8/H490wDt6GGCSz89ltAUgt
l05WbXaKC5aapijC3GdRK97jQ5Uphd6/r2mW3eHiD1gfUIIeSntH1BIHRdArHSL/
jTOBfICYtgYeP5UXPd7lzKc3ziZtPV3bDAcLEqGqYLbvRjqCxU+lIEPrMhsgvtty
5FW5RpCTwGE6Pm4V6mNUb7mpQm0xXN9FWz77NnDG3DCUyvFvhZQTmsO7OYx6QP39
PEtusvgNnLJ0SI3WjcENhL0s3XJbayqhj1xKrwS5f1xhYuAY0WZ+5ZBLPZN6OnE=
=MHNc
-----END PGP SIGNATURE-----



  parent reply	other threads:[~2015-10-08 11:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04 18:37 [gentoo-alt] OS X El Capitan bootstrap: failed with an undeletable directory yegle
2015-10-04 19:17 ` Justin Lecher (jlec)
2015-10-08 11:18 ` Ben Peddell [this message]
2015-10-08 15:56   ` yegle
2015-10-08 15:58     ` yegle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56165102.5060908@netspace.net.au \
    --to=klightspeed@netspace.net.au \
    --cc=gentoo-alt@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox