Red Hat Bugzilla – Bug 132702
rpmbuild resolves dependancies when removing source package
Last modified: 2007-11-30 17:10:49 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
When removing source rpm packages build dependancies (BuildPrereq) are
resolved and if they are not present the package can not be removed.
[root@fedora SPECS]# rpmbuild --rmsource --clean postfix.spec
error: Failed build dependencies:
db4-devel is needed by postfix-2.0.18-4
openssl-devel >= 0.9.6 is needed by postfix-2.0.18-4
In my opinion when somebody is trying to remove a source package or
clean the build root the build perequisites are not used and required.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Remove some or all *devel* packages.
2. Install any src.rpm package
3. Try to remove it using rpmbuild.
Actual Results: The sources, the build root and the .spec file could
not be removed because of failed dependancies.
Expected Results: I would expect that if I am not able to build the
package I should have the ability to remove it.
If I comment the BuildPrereq it would act as expected:
sed -i~ -e ï¿½s/^BuildPrereq/#BuildPrereq/ï¿½ packet.spec
Add --nodeps to disable.
Thank you and sorry for the unnecessary report.
The --nodeps option is not in the man page for rpmbuild and thats why
I haven't tried it.
Thank you once again.