Bug 1990879

Summary: Paths with spaces AND square or curly brackets are not listable in %{pyproject_files}
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
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: maxwell, mhroncok, ngompa13, pviktori, python-sig
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pyproject-rpm-macros-1.13.0-1.fc41 pyproject-rpm-macros-1.13.0-1.fc40 pyproject-rpm-macros-1.13.0-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-03 17:08:46 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 Miro Hrončok 2021-08-06 13:56:00 UTC
With pyproject-rpm-macros  0-46, paths like this are not listable in {pyproject_files}:

    .../file[foo with spaces]

We get:

error: Path is outside buildroot: with
error: Path is outside buildroot: spaces]


Even if we put the paths to "quotes".


This hits noggin when packaged with tests, as they have pytest-parameterized HTTP cassettes with spaces in them.

Comment 1 Miro Hrončok 2021-08-06 18:48:35 UTC
I don't know how to list such files. I've reported https://github.com/rpm-software-management/rpm/issues/1749

Comment 2 Ben Cotton 2021-08-10 13:36:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 3 Miro Hrončok 2021-08-17 09:05:15 UTC
There has been some movement in the RPM issue. Hopefully, we'll get a fix soon. and will be able to adapt.

Comment 4 Miro Hrončok 2021-09-10 12:04:19 UTC
pyproject-rpm-macros-0-47 added a worakround error message when this happens.

Comment 5 Tomas Orsava 2021-12-07 10:56:00 UTC
*** Bug 2023561 has been marked as a duplicate of this bug. ***

Comment 7 Miro Hrončok 2022-06-29 10:48:14 UTC
Upstream says RPM 4.19 is the earliest opportunity for this one.

For context, RPM 4.18 is new in Fedora 37.

Comment 8 Miro Hrončok 2023-05-26 19:18:03 UTC
RPM 4.19 has landed in rawhide. The first step is to fix the current hack: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/389

The next step is to rewrite the escaping code to leverage the new feature.

Comment 9 Miro Hrončok 2024-05-22 21:16:14 UTC
I've put something together in https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/448 but it was more complex than expected :(

Comment 10 Fedora Update System 2024-07-03 16:04:12 UTC
FEDORA-2024-c32de71b26 (pyproject-rpm-macros-1.13.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c32de71b26

Comment 11 Fedora Update System 2024-07-03 16:11:54 UTC
FEDORA-2024-f436e26814 (pyproject-rpm-macros-1.13.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f436e26814

Comment 12 Fedora Update System 2024-07-03 16:14:56 UTC
FEDORA-2024-e4c1e2cfa0 (pyproject-rpm-macros-1.13.0-1.fc39 and python-rpm-macros-3.12-8.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e4c1e2cfa0

Comment 13 Fedora Update System 2024-07-03 17:08:46 UTC
FEDORA-2024-c32de71b26 (pyproject-rpm-macros-1.13.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-07-04 01:58:43 UTC
FEDORA-2024-f436e26814 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f436e26814`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f436e26814

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

Comment 15 Fedora Update System 2024-07-04 02:01:31 UTC
FEDORA-2024-e4c1e2cfa0 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e4c1e2cfa0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e4c1e2cfa0

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

Comment 16 Fedora Update System 2024-07-08 01:57:08 UTC
FEDORA-2024-f436e26814 (pyproject-rpm-macros-1.13.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-07-19 02:21:11 UTC
FEDORA-2024-e4c1e2cfa0 (pyproject-rpm-macros-1.13.0-1.fc39 and python-rpm-macros-3.12-8.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.