Bug 1293687
Summary: | rpmspec --query causes error if patch section contains an URI | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ali Akcaagac <aliakc> |
Component: | rpm | Assignee: | Nils Philippsen <nphilipp> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | jzeleny, lkardos, novyjindrich, nphilipp, packaging-team-maint, pknirsch, zbyszek |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-01-20 07:14:05 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
Ali Akcaagac
2015-12-22 17:12:48 UTC
Why not use? $ spectool -g xfce-polkit.spec In case of rpmbuild folder structure: $ spectool -g -R xfce-polkit.spec I'll close as invalid, please reopen if you think there's still an issue. Please do not close this bugreport! a) we use rpmspec AND NOT spectool (we depend on rpmspec and we like to be bare) b) rpmspec is part of rpm and the split package rpm-build (iirc) c) is it well valid to report an issue if we believe there is one and in this case I would like to clarify why rpmspec --query returns an error when processing a spec file that contains an URI within the patch section and why it doesn't return an error if the patch section only contains a reference to a file. The last point placed at the bottom: d) ... and this is the main concern why issues like this happen. Some use spectool, others use rpmspec and again others use some other implementation or tools (also available under fedora). And this is (or may) cause issues with existing spec files if they rely on specific *own* implementations of these tools. Now we consider rpmspec to be *the real deal*. The thing that we (that means: we as in us and our own infrastructure) can trust. We rely on tools that handle the spec files correctly. ok, so this is RFE Actually we believe this to be a bug. Grab xfce-polkit.spec and exo.spec from Fedora GIT and query both of them. rpmspec --query xfce-polkit.spec rpmspec --query exo.spec Both spec files deal with patches. The one spec file causes rpmspec --query to return an error, the other not. Most likely also affecting the return codes to the caller (e.g. inside a bash script). The expected behavior should be (from how I understand it): rpmspec should either report error on both spec files or report no error on both spec files. In both cases we only deal with the bare spec file. No patches or other files in any other rpmbuild directory (SOURCE, RPMs, SPEC, ...). This *looks* like a rpmspec specific issue. When "rpmspec --query" is executed, first a spec file is parsed and during this process macros in the spec file are expanded. This error is from the %uncompress macro which is used in the %autosetup macro which is used in %prep section of xfce-polkit.spec. To what %uncompress is expanded depends on type of file given as the first argument. But when the file is not available, this macro fails, which causes error message in output of rpmspec tool. ... and that does mean what exactly ? It should be fixed in rpm-4.13.0-0.rc1.18.fc24 *** Bug 1311349 has been marked as a duplicate of this bug. *** |