Seems the first incantation for ebuild foo.ebuild rpm fails because it's not created the /usr/src/rpm/SOURCES directory. Reproducible: Always Actual Results: ebuild tar-1.20.ebuild rpm >>> Existing ${T}/environment for 'tar-1.20' will be sourced. Run 'clean' >>> to start with a fresh environment. * tar-1.20.tar.bz2 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking tar-1.20.tar.bz2 ;-) ... [ ok ] >>> Checking tar-1.20.tar.bz2's mtime... >>> WORKDIR is up-to-date, keeping... >>> It appears that 'tar-1.20' is already compiled; skipping. >>> Remove '/var/tmp/portage/app-arch/tar-1.20/.compiled' to force compilation. >>> It appears that tar has already been tested; skipping. >>> It appears that 'tar-1.20' is already installed; skipping. >>> Remove '/var/tmp/portage/app-arch/tar-1.20/.installed' to force install. ecompressdir: bzip2 -9 /usr/share/man ecompressdir: bzip2 -9 /usr/share/info tar: /usr/src/rpm/SOURCES/tar-1.20.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Removing leading `/' from member names tar: /usr/src/rpm/SOURCES/tar-1.20.tar.gz: Cannot write: Broken pipe tar: Error is not recoverable: exiting now * ERROR: app-arch/tar-1.20 failed: * Failed to create base rpm tarball. * * Call stack: * misc-functions.sh:756: <call dyn_rpm> * misc-functions.sh:746: <call dyn_spec> * misc-functions.sh:712: tar czf "/usr/src/rpm/SOURCES/${PF}.tar.gz" \ "${EBUILD}" "${FILESDIR}" || \ die "Failed to create base rpm tarball." * * If you need support, post the topmost build error, and the call stack if relevant.
Please post your emerge --info as well. Perhaps a newer version of sys-apps/portage fixes this.
This is fixed in 2.2_rc4.