Bug 496103 - rpmbuild -bb behaviour changed from FC9 to FC10 ?
Summary: rpmbuild -bb behaviour changed from FC9 to FC10 ?
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL: http://sourceforge.net/projects/mythd...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-16 16:51 UTC by Tony Arie Kolev
Modified: 2009-04-17 07:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-17 07:33:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
One of actually used specfiles (1.87 KB, text/plain)
2009-04-16 16:51 UTC, Tony Arie Kolev
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.