Bug 2452918

Summary: %__R_name btoken on EPEL 10
Product: [Fedora] Fedora EPEL Reporter: Mattias Ellert <mattias.ellert>
Component: R-rpm-macrosAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel10CC: quantum.analyst, r-maint-sig, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-01 00:25:59 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 Mattias Ellert 2026-03-29 23:22:04 UTC
Description of problem:

$ rpm -D "name R-abc" -E "%__R_name"
abc

But on EPEL 10 it fails:

$ rpm -D "name R-abc" -E "%__R_name"
error: lua script failed: [string "gsub"]:1: bad argument #3 to 'gsub' (string/function/table expected, got no value)

This leads to build failures like:

Start: build phase for R-littler-0.3.21-4.el10_3.src.rpm Start: build setup for R-littler-0.3.21-4.el10_3.src.rpm error: lua script failed: [string "gsub"]:1: bad argument #3 to 'gsub' (string/function/table expected, got no value)
6< (%gsub)
5< (%gsub)
4< (%r_gsub)
3< (%__R_name)
error: lua script failed: [string "__R_urls"]:4: error expanding macro
2< (%lua)
1< (%__R_urls)
0< (%cran_url)
URL:

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

R-rpm-macros-1.3.6-1.el10_1
R-rpm-macros-1.3.6-1.el10_2
R-rpm-macros-1.3.6-1.el10_3

How reproducible:

Always

Steps to Reproduce:
1. See above

Actual results:

Errors

Expected results:

No errors

Additional info:

Comment 1 Fedora Update System 2026-03-30 15:16:16 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 2 Fedora Update System 2026-03-30 15:16:22 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 3 Fedora Update System 2026-03-30 15:16:27 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 4 Fedora Update System 2026-03-31 02:04:38 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 5 Fedora Update System 2026-03-31 02:08:25 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 6 Fedora Update System 2026-03-31 02:10:26 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 7 Fedora Update System 2026-04-01 00:25:59 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 8 Fedora Update System 2026-04-01 00:36:17 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 9 Fedora Update System 2026-04-01 00:49:37 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.