Bug 1724668
Summary: | dnf builddep fails trying to parse specfile | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Mikhail Campos <Mikhail_Campos-Guadamuz> |
Component: | dnf-plugins-core | Assignee: | Marek Blaha <mblaha> |
Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | dmach, james.antill, mblaha, mkolar |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-plugins-core-4.0.8-2.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-05 22:22:10 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: | 1681085 | ||
Bug Blocks: |
Description
Mikhail Campos
2019-06-27 13:41:38 UTC
I'm afraid all we can do here is to present error message from rpm in builddep command output. There is actually a pull request on this (https://github.com/rpm-software-management/dnf-plugins-core/pull/320). To find out build requirements from a .spec file we use rpm to parse it and in this case rpm fails (and so does rpmlint). However, by using rpmspec tool, you can see more details: # rpmspec -q systemd.spec error: Unable to open /root/rpmbuild/SOURCES/triggers.systemd: No such file or directory error: query of specfile systemd.spec failed, can't parse So basically rpm is not able to read source file mentioned in the spec file. You need to install this sourcerpm first to get list of requirements: # rpm -i systemd-239-13.el8_0.5.src.rpm # dnf builddep rpmbuild/SPECS/systemd.spec Updating Subscription Management repositories. Last metadata expiration check: 0:23:08 ago on Mon Jul 1 08:42:11 2019. Package firewalld-filesystem-0.6.3-7.el8.noarch is already installed. Package gawk-4.2.1-1.el8.x86_64 is already installed. Package gettext-0.19.8.1-14.el8.x86_64 is already installed. No matching package to install: 'gnu-efi' No matching package to install: 'gnu-efi-devel' No matching package to install: 'gobject-introspection-devel' No matching package to install: 'gperf' No matching package to install: 'kmod-devel' No matching package to install: 'libidn2-devel' No matching package to install: 'libmicrohttpd-devel' No matching package to install: 'libmount-devel' No matching package to install: 'libseccomp-devel' Package libxslt-1.1.32-3.el8.x86_64 is already installed. No matching package to install: 'meson >= 0.43' Package pkgconf-pkg-config-1.4.2-1.el8.x86_64 is already installed. Package python3-lxml-4.2.3-1.el8.x86_64 is already installed. Package xz-5.2.4-3.el8.x86_64 is already installed. Not all dependencies satisfied Error: Some packages could not be found. I do not have all needed repositories set on my RHEL8 virtual machine but as you see, now spec file is successfully parsed and dnf is trying to install missing dependencies. With patch https://github.com/rpm-software-management/dnf-plugins-core/pull/320 applied you will get more helpful output: # dnf builddep systemd.spec Last metadata expiration check: 0:23:51 ago on Po 1. července 2019, 14:50:19 CEST. error: Unable to open /root/rpmbuild/SOURCES/triggers.systemd: No such file or directory Failed to open: 'systemd.spec', not a valid spec file: can't parse specfile Error: Some packages could not be found. *** Bug 1658292 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3583 |