Bug 756531

Summary: rpmbuild needs option to skip '%clean' phase
Product: [Fedora] Fedora Reporter: Philip Prindeville <philipp>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: a.badger, ffesti, jnovy, pmatilai
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-15 11:34:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Philip Prindeville 2011-11-23 20:44:01 UTC
Description of problem:

It's sometimes useful to leave the resultant $RPM_BUILD_ROOT in place, especially so one can check the contents of manufactured files via sed scripts, or ownership, permissions, etc.

Skipping the %clean phase would allow this.

Version-Release number of selected component (if applicable):

rpm-build-4.9.1.2-1.fc16

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Toshio Kuratomi 2011-11-23 21:10:15 UTC
Reassigned to rpm which is where rpm-build is built from.  However, is there a reason that something like rpmbuild -bi  is not sufficient for you?

Comment 2 Philip Prindeville 2011-11-23 21:24:45 UTC
(In reply to comment #1)
> Reassigned to rpm which is where rpm-build is built from.  However, is there a
> reason that something like rpmbuild -bi  is not sufficient for you?

Because we'd also want the -bb phase done (the actual binary packaging).

There's a --clean option... why not a --noclean option?

Comment 3 Panu Matilainen 2012-08-02 09:18:45 UTC
Implemented upstream now.

Comment 4 Panu Matilainen 2012-10-15 11:34:26 UTC
rpm >= 4.10.1 in rawhide and F18 supports --noclean (and --nocheck). I've no plans to backport anything new to 4.9.x though, so closing.