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

Bug 97776

Summary: ebuild rpm should clean its work tree after finishing building the package
Product: Portage Development Reporter: Carlo Marcelo Arenas Belon <carenas>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    
Attachments: patch which instructs rpmbuild to clean after himself

Description Carlo Marcelo Arenas Belon 2005-07-02 18:59:33 UTC
rpm generation on emerge copies the source tars and a fake SPEC for RPM to go
through his normal unpack/compile/install process but doesn't instruct rpm to
clean after himself, leaving all those files behind after the rpm is generated
and which are useless (as the build and sources are fake anyway)

aditionally the last step is to copy the generated rpm on
/usr/src/redhat/RPMS/`uname -m`/ to the package repository for emerge which is
also left as a duplicate, eventhough in this last case it might be assumed to be
 to be consistent with RPMs' expected behaviour.

Reproducible: Always
Steps to Reproduce:
1. ebuild file.ebuild rpm
2. find /usr/src/redhat -type f
3.

Actual Results:  
/usr/src/redhat/BUILD/ and /usr/src/redhat/SOURCES contain files copied from the
portage tree which are of no use anymore

Expected Results:  
remove the BUILD and SOURCES files which were used by rpm to think he is in
control of the build process
Comment 1 Carlo Marcelo Arenas Belon 2005-07-02 19:00:34 UTC
Created attachment 62518 [details, diff]
patch which instructs rpmbuild to clean after himself
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:24:56 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-12 06:16:19 UTC
Reopening for consideration
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:14:39 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:12 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.