Red Hat Bugzilla – Bug 496103
rpmbuild -bb behaviour changed from FC9 to FC10 ?
Last modified: 2009-04-17 03:33:34 EDT
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
patch -p0 < ../rtl.patch
2. run and test the programm
3. try to build rpm binary packages (30 packages, every one has specfile)
[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
To successfully build packages in /usr/src/redhat/RPMS/i386/
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: