Bug 1965470

Summary: pyproject_extra_subpkg warning to stderr causes permission denied error
Product: [Fedora] Fedora Reporter: Major Hayden 🤠 <mhayden>
Component: pyproject-rpm-macrosAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, pviktori, python-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pyproject-rpm-macros-0-40.fc33 pyproject-rpm-macros-0-40.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-06 01:04:14 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 Major Hayden 🤠 2021-05-27 18:41:08 UTC
When installing multiple wheels in single RPM, a warning is thrown to stderr and that isn't allowed in a mock chroot:

++ wc -l /builddir/build/BUILD/pyproject-ghost-distinfo
++ cut -f1 '-d '
+ lines=66
+ '[' 66 -ne 1 ']'
+ echo -e '\n\nWARNING: %pyproject_extras_subpkg won'\''t work without explicit -i or -F, found 66 dist-info directories.\n\n'
/var/tmp/rpm-tmp.AqCZTE: line 81: /dev/stderr: Permission denied

Relevant code: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/rawhide/f/macros.pyproject#_57

However, using something like this seems to work, even in a mock chroot:

echo "wheeeeeeeeeeee" >&2

I'll submit a PR in pagure.

Comment 1 Major Hayden 🤠 2021-05-27 18:43:35 UTC
PR submitted: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/161#

Comment 2 Fedora Update System 2021-05-28 13:50:13 UTC
FEDORA-2021-a5192b5362 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a5192b5362

Comment 3 Fedora Update System 2021-05-29 01:37:44 UTC
FEDORA-2021-a5192b5362 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a5192b5362`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a5192b5362

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-05-29 01:51:04 UTC
FEDORA-2021-036ccade83 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-036ccade83`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-036ccade83

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-06-06 01:04:14 UTC
FEDORA-2021-a5192b5362 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2021-06-06 01:09:44 UTC
FEDORA-2021-036ccade83 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.