Bug 2018809
| Summary: | Regression: %py3_check_import no longer accepts arguments on multiple lines | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ben Beasley <code> |
| Component: | python-rpm-macros | Assignee: | Karolina Surma <ksurma> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | cstratak, j, ksurma, m.cyprian, mhroncok, pviktori, python-maint, python-sig |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-rpm-macros-3.10-13.fc36 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-03 11:11:50 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
Ben Beasley
2021-10-31 12:10:50 UTC
By grepping spec files with > rg '%\{py3_check_import.*[^}]$' I think the affected packages will be: - python-opencensus-proto - python-hdfs - python-googleapis-common-protos (also affected by https://bugzilla.redhat.com/show_bug.cgi?id=2018551) Workarounds include: - Call %py3_check_import many times - Accept a (perhaps very) long line in the spec file - Switch to %pyproject_check_import (ideal!) A fix is probably to wrap this %{?**} [0] with some Lua, previous implementation used %{lua:local m=rpm.expand('%{?*}'):gsub('[%s,]+', ', ');print(m)} [1], this could be simpler ...gsub('%s+', ' '))
[0] https://src.fedoraproject.org/rpms/python-rpm-macros/blob/2d0673afb17814e4bd6b7a281574b1d0e1fdb3e3/f/macros.python3#_80
[1] https://src.fedoraproject.org/rpms/python-rpm-macros/blob/9b797df44dc6c184c5181f10bee24461287f84f3/f/macros.python3#_78
FEDORA-2021-70e7a5dae0 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-70e7a5dae0 FEDORA-2021-70e7a5dae0 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. |