Bug 1845614

Summary: Error from /usr/lib/rpm/cmake3.prov
Product: [Fedora] Fedora EPEL Reporter: Brian Sipos <BSipos>
Component: cmake3Assignee: Antonio T. sagitter <trpost>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: besser82, trpost
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cmake3-3.17.3-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-29 00:31:47 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 Brian Sipos 2020-06-09 16:17:40 UTC
Description of problem:
This occurs when building RPM packages using cmake3 within the build scriptlet. I don't know if it's a general problem which happens even if cmake3 is not used by the package reporting the error messages, but I suspect so.

It looks like rpmbuild is attempting to execute "/usr/lib/rpm/cmake3.prov" as a shell script when in fact it's a python script but has no shebang at the top to indicate it's a python script.

Version-Release number of selected component (if applicable):
cmake3-3.17.1-2.el7

How reproducible:
Always

Steps to Reproduce:
1. Use %cmake3 within an RPM build section to build a library which itself produces cmake target files under /usr/lib64/cmake.
2. Run "rpmbuild -ba ..." on the spec file.
3. Observe the post-build packaging status messages include errors listed below.

Actual results:
Immedately after the "%doc" output and before the first "Provides: " line is the following:
/usr/lib/rpm/cmake3.prov: line 26: class: command not found
/usr/lib/rpm/cmake3.prov: line 27: syntax error near unexpected token `('
/usr/lib/rpm/cmake3.prov: line 27: `    def __init__(self, filelist = None):'


Expected results:
No rpmbuild errors related to cmake.

Additional info:

Comment 1 Brian Sipos 2020-06-09 16:18:44 UTC
This issue doesn't actually prevent the packages from being built. It may prevent some RPM "provides" being placed on the built packages though.

Comment 2 Fedora Update System 2020-06-11 16:19:10 UTC
FEDORA-EPEL-2020-90bdb794f4 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-90bdb794f4

Comment 3 Antonio T. sagitter 2020-06-11 16:21:29 UTC
Hi Brian.

Thank you very much for your feedback.
Please, try with the build 3.17.3-2

Comment 4 Fedora Update System 2020-06-14 04:55:54 UTC
cmake3-3.17.3-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-90bdb794f4

Comment 5 Fedora Update System 2020-06-29 00:31:47 UTC
FEDORA-EPEL-2020-90bdb794f4 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.