From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20021007 Debian/1.1-1 Description of problem: [root@machine root]# rpm --rebuild php-4.2.2-8.0.7.src.rpm php-4.2.2-8.0.7.src.rpm: No such file or directory Installing "rpm-build" fixes the problem, but the error message could be much more useful if it complained about being able to find files from rpm-build or told me to try installing that RPM. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Install a system without rpm-build 2.Try to build a .src.rpm file using "rpm --rebuild testfile.src.rpm". Note the misleading error message. 3.Install the "rpm-build" package and try step 2 again, which will work. Additional info:
This already fixed in rpm-4.1 by putting rpm build modes into a seperate /usr/bin/rpmbuild executable.