Bug 1560291
| Summary: | dnf builddep chokes on Fedora SRPMs | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pawel Veselov <pawel.veselov> |
| Component: | dnf | Assignee: | rpm-software-management |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | dmach, ignatenko, lnykryn, mblaha, mhatina, mjw, msekleta, packaging-team-maint, pmatilai, pmoravco, rpm-software-management, ssahani, s, systemd-maint, vmukhame, zbyszek |
| 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: | 2018-03-28 09:42:37 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: | |||
|
Description
Pawel Veselov
2018-03-25 17:41:47 UTC
This issue is caused by the defaults that rpm has. It will spread the files in the source rpm in various directories over the file system tree (~/rpmbuild/SPECS, ~/rpmbuild/SOURCES, ~/rpmbuild/PATCHES ?), instead of just putting them in cwd. _Nobody_ does stuff like that anymore, since it's incompatible with version control, causes naming conflicts between unrelated projects, and of course, makes it unnecessarily hard to find the files that are part of the srpm. Most likely the issue is that rpm is not able find the systemd.triggers file that is %included in the spec file. You can play around with "rpm --define '_sourcedir .' --define '_specdir .'" when extracting the rpm. I'll reassign this to rpm, maybe they can provide some additional advice (or finally change the defaults to something sane ;)). Rpm ancient defaults are one thing, but changing them is not trivial because tonnes of documentation stops working, and certainly we wont be able to change them in any existing Fedora release. Locally overriding in /etc/rpm/ is probably the best way to deal with that right now, if you are prepared to drop the old rpmbuild/ directory style (most are :) That aside, the problem here is the error message which fails to tell you what's actually wrong: [pmatilai@sopuli ~]$ rpm -i systemd-234-10.git5f8984e.fc27.src.rpm [pmatilai@sopuli ~]$ rpmspec -q --buildrequires rpmbuild/SPECS/systemd.spec | wc -l 42 [root@sopuli pmatilai]# rpmspec -q --buildrequires rpmbuild/SPECS/systemd.spec error: Unable to open /root/rpmbuild/SOURCES/triggers.systemd: No such file or directory error: query of specfile rpmbuild/SPECS/systemd.spec failed, can't parse So I'm considering this a dupe of bug 1547897. *** This bug has been marked as a duplicate of bug 1547897 *** |