Bug 2452713 - Expansion of %R_rpm_version contains illegal characters 0x1f on EPEL 9 and 10
Summary: Expansion of %R_rpm_version contains illegal characters 0x1f on EPEL 9 and 10
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: R-rpm-macros
Version: epel10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2417105
TreeView+ depends on / blocked
 
Reported: 2026-03-28 16:43 UTC by Mattias Ellert
Modified: 2026-04-01 01:58 UTC (History)
4 users (show)

Fixed In Version: R-rpm-macros-1.3.7-1.el10_3 R-rpm-macros-1.3.7-1.el10_2 R-rpm-macros-1.3.7-1.el10_1 R-rpm-macros-1.3.7-1.el9
Clone Of:
Environment:
Last Closed: 2026-04-01 00:25:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management R-rpm-macros pull 22 0 None open Fix broken %R_rpm_version on EPEL 9 and 10 2026-03-29 04:08:13 UTC

Description Mattias Ellert 2026-03-28 16:43:22 UTC
Description of problem:

EPEL 9:

<mock-chroot> sh-5.1# rpm -q R-srpm-macros
R-srpm-macros-1.3.5-1.el9.noarch
<mock-chroot> sh-5.1# rpm -E '%R_rpm_version 1.2.3'
1.2.3
<mock-chroot> sh-5.1# rpm -E '%R_rpm_version 1.2.3' | hexdump -C
00000000  1f 1f 31 2e 32 2e 33 0a                           |..1.2.3.|
00000008

EPEL 10:

<mock-chroot> sh-5.2# rpm -q R-srpm-macros
R-srpm-macros-1.3.5-1.el10_1.noarch
<mock-chroot> sh-5.2# rpm -E '%R_rpm_version 1.2.3'
1.2.3
<mock-chroot> sh-5.2# rpm -E '%R_rpm_version 1.2.3' | hexdump -C
00000000  1f 1f 31 2e 32 2e 33 0a                           |..1.2.3.|
00000008

Compare Fedora rawhide wher this problem does not appear:

<mock-chroot> sh-5.3# rpm -q R-srpm-macros
R-srpm-macros-1.3.5-1.fc45.noarch
<mock-chroot> sh-5.3# rpm -E '%R_rpm_version 1.2.3'
1.2.3
<mock-chroot> sh-5.3# rpm -E '%R_rpm_version 1.2.3' | hexdump -C
00000000  31 2e 32 2e 33 0a                                 |1.2.3.|
00000006

Version-Release number of selected component (if applicable):

R-srpm-macros-1.3.5-1.el9.noarch
R-srpm-macros-1.3.5-1.el10_1.noarch

How reproducible:

Always

Steps to Reproduce:
1. See above ...

Actual results:

Illegal characters 0x1f in expansion of %R_rpm_version.

Expected results:

No illegal characters.

Additional info:

This makes packages using the new packaging guidelines non-buildable:

Start: build phase for R-littler-0.3.21-4.el9.src.rpm
Start: build setup for R-littler-0.3.21-4.el9.src.rpm
error: line 14: Illegal char '?' (0x1f) in: Version:        0.3.21

Comment 1 Iñaki Ucar 2026-03-28 17:28:04 UTC
That is weird. The only difference is the rpm version, so it seems like a bug in rpm...

Comment 2 Mattias Ellert 2026-03-28 20:07:28 UTC
It is the %quote: ...} that messes things up.

Changing:
%R_rpm_version() %{quote:%global __R_upstream_version %1}%{r_gsub %1 - .}

To:
%R_rpm_version() %{r_gsub %1 - .}%global __R_upstream_version %1

make things work.

Comment 3 Mattias Ellert 2026-03-29 04:08:13 UTC
Github PR:

https://github.com/rpm-software-management/R-rpm-macros/pull/22

Comment 4 Fedora Update System 2026-03-29 14:14:12 UTC
FEDORA-EPEL-2026-4092b95c9b (R-rpm-macros-1.3.6-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-4092b95c9b

Comment 5 Fedora Update System 2026-03-29 14:14:17 UTC
FEDORA-EPEL-2026-4734dab97b (R-rpm-macros-1.3.6-1.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-4734dab97b

Comment 6 Fedora Update System 2026-03-29 14:14:23 UTC
FEDORA-EPEL-2026-40f2b15beb (R-rpm-macros-1.3.6-1.el10_2) has been submitted as an update to Fedora EPEL 10.2.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-40f2b15beb

Comment 7 Fedora Update System 2026-03-29 14:14:30 UTC
FEDORA-EPEL-2026-81298c060b (R-rpm-macros-1.3.6-1.el10_3) has been submitted as an update to Fedora EPEL 10.3.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-81298c060b

Comment 8 Fedora Update System 2026-03-30 15:16:13 UTC
FEDORA-EPEL-2026-9a7a61ed12 (R-rpm-macros-1.3.7-1.el10_3) has been submitted as an update to Fedora EPEL 10.3.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-9a7a61ed12

Comment 9 Fedora Update System 2026-03-30 15:16:25 UTC
FEDORA-EPEL-2026-1d0e382b4e (R-rpm-macros-1.3.7-1.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-1d0e382b4e

Comment 10 Fedora Update System 2026-03-30 15:16:30 UTC
FEDORA-EPEL-2026-a76f9f932f (R-rpm-macros-1.3.7-1.el10_2) has been submitted as an update to Fedora EPEL 10.2.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-a76f9f932f

Comment 11 Fedora Update System 2026-03-30 18:33:33 UTC
FEDORA-EPEL-2026-4734dab97b has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-4734dab97b

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

Comment 12 Fedora Update System 2026-03-30 19:01:13 UTC
FEDORA-EPEL-2026-40f2b15beb has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-40f2b15beb

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

Comment 13 Fedora Update System 2026-03-30 19:03:07 UTC
FEDORA-EPEL-2026-4092b95c9b has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-4092b95c9b

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

Comment 14 Fedora Update System 2026-03-30 19:10:27 UTC
FEDORA-EPEL-2026-81298c060b has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-81298c060b

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

Comment 15 Fedora Update System 2026-03-31 02:04:36 UTC
FEDORA-EPEL-2026-a76f9f932f has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-a76f9f932f

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

Comment 16 Fedora Update System 2026-03-31 02:08:23 UTC
FEDORA-EPEL-2026-9a7a61ed12 has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-9a7a61ed12

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

Comment 17 Fedora Update System 2026-03-31 02:10:24 UTC
FEDORA-EPEL-2026-1d0e382b4e has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-1d0e382b4e

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

Comment 18 Fedora Update System 2026-04-01 00:25:55 UTC
FEDORA-EPEL-2026-9a7a61ed12 (R-rpm-macros-1.3.7-1.el10_3) has been pushed to the Fedora EPEL 10.3 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2026-04-01 00:36:15 UTC
FEDORA-EPEL-2026-a76f9f932f (R-rpm-macros-1.3.7-1.el10_2) has been pushed to the Fedora EPEL 10.2 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2026-04-01 00:49:32 UTC
FEDORA-EPEL-2026-1d0e382b4e (R-rpm-macros-1.3.7-1.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2026-04-01 01:58:45 UTC
FEDORA-EPEL-2026-09367f0def (R-rpm-macros-1.3.7-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.