If one has a umask of 027, "crossdev -t avr" fails with permission errors. The cause is that the scripts, somewhere, are creating directories as the user who ran emerge, and not changing their ownership to 'portage:portage' which then fails with permission errors when portage su's to the portage user. Examples: $ ls -l /var/portage/overlay/ # among other hand-created ones drwxr-x--- 2 root root 144 Dec 25 23:17 cross-avr # and later $ ls -l /var/tmp/ drwxr-xr-x 2 root root 48 Dec 25 23:16 binpkgs drwxrws--- 2 portage portage 48 Sep 27 2004 ccache drwxr-x--- 3 root root 72 Dec 25 13:28 cross drwxrws--- 5 portage portage 2000 Dec 25 23:46 portage # I would think cross should be same permissions as 'portage'
crossdev now resets umask to 0022