By moving and removing files in ${S}, it is possible to be left with no ${S} at all once the install phase is complete. When passing multiple commands to ebuild that depend on the completion of the install phase, commands after the first will fail. ebuild easytags-3.11-r2.ebuild clean package merge [... package phase - invoking install phase - has completed. Beginning of merge...] >>> Checking easytags-3.11.tar.gz's mtime... >>> WORKDIR is up-to-date, keeping... >>> It appears that 'pretend' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.pretended' to force pretend. >>> It appears that 'setup' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.setuped' to force setup. >>> It appears that 'unpack' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.unpacked' to force unpack. >>> It appears that 'prepare' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.prepared' to force prepare. >>> It appears that 'configure' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.configured' to force configure. >>> It appears that 'compile' has already executed for 'easytags-3.11-r2'; skipping. >>> Remove '/tmp/portage/app-vim/easytags-3.11-r2/.compiled' to force compile. * ERROR: app-vim/easytags-3.11-r2::junkdrawer failed (test phase): * The source directory '/tmp/portage/app-vim/easytags-3.11-r2/work/vim-easytags-3.11' doesn't exist * * Call stack: * ebuild.sh, line 762: Called __ebuild_main 'test' * phase-functions.sh, line 1050: Called __dyn_test * phase-functions.sh, line 489: Called die * The specific snippet of code: * die "The source directory '${S}' doesn't exist" * * If you need support, post the output of `emerge --info '=app-vim/easytags-3.11-r2::junkdrawer'`, * the complete build log and the output of `emerge -pqv '=app-vim/easytags-3.11-r2::junkdrawer'`. * The complete build log is located at '/tmp/portage/app-vim/easytags-3.11-r2/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-vim/easytags-3.11-r2/temp/environment'. * Working directory: '/tmp/portage/app-vim/easytags-3.11-r2/homedir' * S: '/tmp/portage/app-vim/easytags-3.11-r2/work/vim-easytags-3.11' Reproducible: Always