| Summary: | BuildError: Failed to obtain srpm from dist-git | ||
|---|---|---|---|
| Product: | [Community] Copr | Reporter: | Vadim Raskhozhev <iamdexpl> |
| Component: | backend | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | clime |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-01 08:25:01 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: | |
|
Description
Vadim Raskhozhev
2016-01-30 18:25:31 UTC
I managed to narrow the problem down to: copr@coprbox /tmp/build_package_repo/libvirt $ fedpkg-copr --dist el6 srpm error: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network error: query of specfile /tmp/build_package_repo/libvirt/libvirt.spec failed, can't parse Could not execute srpm: Could not get n-v-r-e from '\n\n' (after doing rm -rf /tmp/build_package_repo && mkdir /tmp/build_package_repo && cd /tmp/build_package_repo && git clone http://copr-dist-git.fedorainfracloud.org/git/clime/example/libvirt.git && cd libvirt && git checkout 64ac67bee7e3ad00f70369a184497ec7d18d7a25) There is some problem with libvirt.spec file parsing when --dist el6 for fedpkg-copr cmd is enabled. This is just an observation, I'll try to find out more. The problem is in spec file. When you run fedpkg with -d and -v and then try to bisect and minimaze the options. Then you get this minimal reproducer: rpm --define 'rhel 6' --eval '%undefine fedora' -q --specfile /tmp/libvirt/libvirt.spec chyba: line 1800: Trigger fired by the same package is already defined in spec file: %post daemon-config-network I tried to look into libvirt.spec, but that file is so complicated. So it is either spec problem or some bug in RPM itself. I strongly suspect the first one. And I recommend you to post it to RPM mailing list to get hint what can be wrong in your spec file. |