Bug 1426531
Summary: | error: line 19: Unknown rich dependency op 'with': BuildRequires: (crate(rustc-demangle) >= 0.1.2 with crate(rustc-demangle) < 0.2.0) | ||
---|---|---|---|
Product: | [Community] Copr | Reporter: | Igor Gnatenko <ignatenko> |
Component: | backend | Assignee: | clime |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | clime, praiskup |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-27 07:39:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1118719 | ||
Bug Blocks: |
Description
Igor Gnatenko
2017-02-24 08:15:08 UTC
This is the project which I'm working on: https://copr.fedorainfracloud.org/coprs/g/rust/playground/ Even I would use legit rich dependencies, it still would not help because dnf-builddep in repos doesn't support rich dependencies at all yet (and I have patched package in external repo). You see, the package in the external repo is not used because this is error while parsing rustfilt.spec by pyrpkg outside of any chroot. For this to work, we would need to: 1) get https://github.com/rpm-software-management/mock/pull/41 accepted 2) use the mock-scm dist-git method in copr-backend instead of fedpkg-copr 3) you would need to actually add the package into the minimal buildroot (possible in the chroot settings and maybe you have done it) With all that, it should be possible to do what you want. Actually, it would be interesting to try that on our dev machines if it works. (In reply to clime from comment #3) > You see, the package in the external repo is not used because this is error > while parsing rustfilt.spec by pyrpkg outside of any chroot. For this to > work, we would need to: > > 1) get https://github.com/rpm-software-management/mock/pull/41 accepted > 2) use the mock-scm dist-git method in copr-backend instead of fedpkg-copr > 3) you would need to actually add the package into the minimal buildroot > (possible in the chroot settings and maybe you have done it) > > With all that, it should be possible to do what you want. Actually, it would > be interesting to try that on our dev machines if it works. This is still not enough, because after that dnf-builddep will be used from host system (this one doesn't understand rich deps). Fixed by https://pagure.io/copr/copr/pull-request/50 together with introduction of copr-builder package. Instead of mock-scm approach, currently `mock --buildsrpm` is used to build a srpm inside a chroot. Anyway, it works. |