Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97776 - ebuild rpm should clean its work tree after finishing building the package
Summary: ebuild rpm should clean its work tree after finishing building the package
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2005-07-02 18:59 UTC by Carlo Marcelo Arenas Belon
Modified: 2008-04-04 19:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch which instructs rpmbuild to clean after himself (ebuild-cleanrpm.patch,462 bytes, patch)
2005-07-02 19:00 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.