Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 227625

Summary: sys-apps/portage - ebuild foo.ebuild rpm - tar: /usr/src/rpm/SOURCES/tar-1.20.tar.gz: Cannot open: No such file or directory
Product: Gentoo Linux Reporter: Alan Hourihane <alanh>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    

Description Alan Hourihane 2008-06-16 19:08:25 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-16 19:22:08 UTC
Please post your emerge --info as well. Perhaps a newer version of sys-apps/portage fixes this.
Comment 2 Zac Medico gentoo-dev 2008-07-30 09:58:49 UTC
This is fixed in 2.2_rc4.