Bug 496103 - rpmbuild -bb behaviour changed from FC9 to FC10 ?
rpmbuild -bb behaviour changed from FC9 to FC10 ?
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
http://sourceforge.net/projects/mythd...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-16 12:51 EDT by Tony Arie Kolev
Modified: 2009-04-17 03:33 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-04-17 03:33:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Tony Arie Kolev 2009-04-16 12:51:23 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
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 03:33:34 EDT
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.