If I use the following from the command line everything is happy with the value of ROOT CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross-sparc USE=build emerge --nodeps glibc ncurses If I create a shell script to do the same thing #/bin/bash CHOST=sparc-unknown-linux-gnu ROOT=/tmp/cross-sparc USE=build emerge --nodeps glibc ncurses I then have crosscompile.eclass think ROOT=/ and aborts. Even adding export ROOT=/tmp/cross-arm does not work.
Has this happen again I edited an ebuild the tried doing an emerge. Even though ROOT was set cross-check claimed it wasn't. I ran the same emerge command a second time and it worked.
i cannot reproduce that, is this still valid?
please try to find a way to reproduce it