consider this src_install(): src_install() { touch f tree "${D}" dobin f tree "${D}" into /moo tree "${D}" dobin f tree "${D}" } if you do: ebuild <ebuild> install you'll end up with the correct tree the first time: /var/tmp/portage/app-shells/sandboxshell-0.3-r4/image/ |-- moo | `-- bin | `-- f `-- usr `-- bin `-- f 4 directories, 2 files but the wrong tree every other time: /var/tmp/portage/app-shells/sandboxshell-0.3-r4/image/ `-- moo `-- bin `-- f 2 directories, 1 file Portage 2.2_pre2 (default-linux/amd64/2006.1/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24 x86_64)
Created attachment 143936 [details, diff] reset desttree state variables before calling src_install
This is fixed in 2.2_pre3.
This is supposed to be fixed in portage-2.2_pre5 or earlier.