| Summary: | urpmi --buildrequires considers the src.rpm to provide what is required | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Pascal Terjan <pterjan> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | urpmi | CVE: | |
| Status comment: | |||
|
Description
Pascal Terjan
2015-06-25 18:42:31 CEST
hmm rpm too accepts it.
$ rpm -qp --requires /ssd/co/cauldron/sbt/SRPMS/sbt-0.13.1-2.mga6.src.rpm | grep sbt
sbt = 0.13.1
$ rpm -ivh /ssd/co/cauldron/sbt/SRPMS/sbt-0.13.1-2.mga6.src.rpm
Updating / installing...
1:sbt-0.13.1-2.mga6 ################################# [100%]
$ bm -l
creating package list
processing package sbt-%{sbt_version}-%mkrel %{rel}
building source and binary packages
error: Failed build dependencies:
sbt = 0.13.1 is needed by sbt-0.13.1-2.mga6.noarch
error: failed!
Also, installing from the spec works: $ sudo urpmi --buildrequires SPECS/sbt.spec To satisfy dependencies, the following package is going to be installed: Package Version Release Arch (medium "Core Release") sbt 0.13.1 1.mga6 noarch 16MB of additional disk space will be used. 7.8MB of packages will be retrieved. Proceed with the installation of one package? (Y/n) That's requires on name, name being satisfied by both SRPM & binary RPM The solution here is to add some specific provides. eg: BuildRequires: sbt-runtime Provides: sbt-runtime Status:
NEW =>
RESOLVED I don't agree. The src.rpm is not to be installed so what it provides should not matter when running urpmi --buildrequires. I wouldn't expect a different behaviour from running it on the spec. |