From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221 Description of problem: rpm --rebuild <src.rpm> gives a : No such file or directory Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Try rpm --rebuild on a src rpm 2. 3. Actual Results: [root@p1 /local/download/srpms] ls -l pine-4.44-1.72.0.src.rpm -rw-r--r-- 1 root root 2652514 Jan 15 17:23 pine-4.44-1.72.0.src.rpm [root@p1 /local/download/srpms] rpm --rebuild pine-4.44-1.72.0.src.rpm pine-4.44-1.72.0.src.rpm: No such file or directory [root@p1 /local/download/srpms] rpm -recompile pine-4.44-1.72.0.src.rpm pine-4.44-1.72.0.src.rpm: No such file or directory [root@p1 /local/download/srpms] rpm -v RPM version 4.0.3 Copyright (C) 1998-2000 - Red Hat, Inc. This program may be freely redistributed under the terms of the GNU GPL Usage: rpm {--help} rpm {--version} Additional info: I'm using a 6.x system. I downloaded the rpm for rpm from rpm.org.
Have you installed the rpm-build package?
No, I hadn't realized it existed. What was the rational for putting the building stuff in a seperate subpackage? As for this bug rpm should at least give me an error message saying 'install rpm-build'.
The rationale is that rpm has far too many options and that most users are not interested in building packages. Again, you're asking for one program to give an error message for another program, /bin/rpm != /usr/bin/rpmbuild. The "fix" when the time comes will be to remove the popt alias magic glue to report a "No such option error". The build modes are in /usr/bin/rpmbuild and they will stay there forever more.
This problem appears resolved. At least for rpm-4.0.4, the same goofiness with rpmb vs rpmbuild will continue to exist.