Bug 600358

Summary: rpmbuild auto delete the packaged files in BUILDROOT.
Product: [Fedora] Fedora Reporter: ebird98 <bird98>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: ffesti, jnovy, n3npq, 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: 2010-06-07 06:16:57 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 ebird98 2010-06-04 14:44:13 UTC
Description of problem:
There is no %clean/%build section in my .spec files.
but rpmbuild deleted my files in the BUILDROOT when I used "rpmbuild -bb".

Version-Release number of selected component (if applicable):
redhat-rpm-config.noarch
rpm.i686            4.8.0-14.fc13   @anaconda-InstallationRepo-201005130056.i386
rpm-build.i686      4.8.0-14.fc13   @anaconda-InstallationRepo-201005130056.i386
rpm-devel.i686      4.8.0-14.fc13   @anaconda-InstallationRepo-201005130056.i386
rpm-libs.i686       4.8.0-14.fc13   @anaconda-InstallationRepo-201005130056.i386
rpm-python.i686     4.8.0-14.fc13   @anaconda-InstallationRepo-201005130056.i386
rpmdevtools.noarch  7.8-1.fc13      @anaconda-InstallationRepo-201005130056.i386


Steps to Reproduce:
1.rpmbuild a binary RPM. (BIN files has build already, so use "-bb" switch)
  
Actual results:
All of the files packaged has been deleted.

Expected results:
Should not delete any files, when NO %clean/%build section in my .spec file.

Comment 1 Jeff Johnson 2010-06-05 12:50:39 UTC
Yes. BUILDROOT is now configured and managed as a build system
element, not a per-package option.

Running "rpmbuild -bi foo.spec" will build and install (but not remove)
the files in the buildroot.

Comment 2 Panu Matilainen 2010-06-07 06:16:57 UTC
This is indeed the intended behavior and not a bug.

Comment 3 ebird98 2010-06-08 01:47:29 UTC
Thanks,I got a way to KEEP the files.:)
So different between 4.8 and 4.6...