Bug 496103

Summary: rpmbuild -bb behaviour changed from FC9 to FC10 ?
Product: [Fedora] Fedora Reporter: Tony Arie Kolev <kolevtony>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/projects/mythdorarpms/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-17 07:33:34 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:
Attachments:
Description Flags
One of actually used specfiles none

Description Tony Arie Kolev 2009-04-16 16:51:23 UTC
Created attachment 339872 [details]
One of actually used specfiles

Description of problem:
I am using rpmbuild a few years (from FC5 up to FC9) to make my own packages and preferred build cycle for me is:
1) Download source from SVN site.
2) Do configuration
3) Install my own patches and build and install binaries in usual - make; make install
3) Test the program
4) When program behaviour satisfies , build rpm packages to redistribute

It is easier for me to build packages from already tested and running binaries, and up to FC10 it was OK to run:
rpmbuild -bb specfile
The last command was making a binary package from files listed in specfile.
In FC10 the picture is different, now rpmbuild command returns errors about missing files:
RPM build errors:
File not found: /root/rpmbuild/BUILDROOT/somefile
I did not found any documented change that can bring to this.
How rpmbuild can be customized to behave like in past? 

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


How reproducible: Allways


Steps to Reproduce:
1. svn co http://svn.mythtv.org/svn/trunk/ mythtv_trunk
cd mythtv_trunk
vi configure
patch -p0 < ../rtl.patch
make
make install
2. run and test the programm
3. try to build rpm binary packages (30 packages, every one has specfile)
  
Actual results:

[root@streamer rpms-hebrew-patch-spec]# rpmbuild --short-circuit -bb libmyth-0.21_0.spec
Processing files: libmyth-0.21_0-0.21-197.26M.md10
error: File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so
error: File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0
error: File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0.21
error: File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0.21.0


RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so
    File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0
    File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0.21
    File not found: /root/rpmbuild/BUILDROOT/libmyth-0.21_0-0.21-197.26M.md10.i386/usr/lib/libmyth-0.21.so.0.21.0


Expected results:

To successfully build packages in /usr/src/redhat/RPMS/i386/

Additional info:

Comment 1 Panu Matilainen 2009-04-17 07:33:34 UTC
Yes, rpm 4.6.0 forces use of buildroot whereas older versions didn't. Creating packages from files installed on the system as is done here is a very bad idea (which rpm now more or less prevents), and so is building rpms as root.
This is more like how rpm's are supposed to be created: 
http://www.mythtv.org/wiki/Mythtv-svn-rpmbuild.spec