portage-2.1_pre7-r2: # emerge foo (emerge fails; cd into $WORKDIR, fix) # ebuild /path/to/foo-0.ebuild merge >>> checksums files ;-) foo-0.ebuild >>> checksums files ;-) files/digest-foo-0 >>> checksums src_uri ;-) foo-0.tar.gz >>> Checking foo-0.tar.gz's mtime... >>> foo-0.tar.gz has been updated; recreating WORKDIR... This happens because ebuild.sh looks at ${DISTDIR}/foo-0.tar.gz, which is a symlink to ${PORTAGE_ACTUAL_DISTDIR}/foo-0.tar.gz, and so has mtime from when doebuild is called. Uh, maybe ebuild.sh should check [ "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/${x}" -nt "${WORKDIR}" ]?
Thanks for the patch. This is in svn r3036 for the next release.
Released in 2.1_pre7-r3.