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

Bug 190214

Summary: app-portage should use rpm build directory, not redhat directory.
Product: Portage Development Reporter: Andrey Falko <Ma3oxuct>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949    
Attachments: fix-rpmbuild-dir.patch

Description Andrey Falko 2007-08-25 18:34:29 UTC
This can be worked around in the rpm package, however, all previous rpm pacakge, including the current stable one, are geared to use /usr/src/rpm/ as the rpmbuild directory. Portage's bin/misc-functions.sh should point to /usr/src/rpm instead of /usr/src/redhat...see attached patch.

Reproducible: Always

Steps to Reproduce:
1. ebuild portage-utils-0.1.23.ebuild rpm
2.
3.

Actual Results:  
tar: tar: Removing leading `/' from member names
/usr/src/redhat/SOURCES/portage-utils-0.1.23.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Comment 1 Andrey Falko 2007-08-25 18:35:35 UTC
Created attachment 129172 [details, diff]
fix-rpmbuild-dir.patch

Apply patch to bin/misc-functions.sh
Comment 2 Andrey Falko 2007-08-25 19:10:17 UTC
I don't know why I created a patch, this should be much easier:

sed -i -e 's/redhat/rpm/g' bin/misc-functions.sh
Comment 3 Zac Medico gentoo-dev 2007-08-25 19:42:39 UTC
Thanks, this is in svn r7700. Please use diff -u when you submit patches.
Comment 4 Zac Medico gentoo-dev 2007-09-07 19:19:20 UTC
This has been released in 2.1.3.8.