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
-----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-----

Replies