Bug 2227224

Summary: golang_arches_future not populated
Product: Red Hat Enterprise Linux 9 Reporter: Alejandro Sáez Morollón <asm>
Component: go-rpm-macrosAssignee: Alejandro Sáez Morollón <asm>
Status: VERIFIED --- QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: asm, bstinson, dbenoit, emachado, jwboyer, maxwell, sipoyare, tstellar
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: go-rpm-macros-3.2.0-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Alejandro Sáez Morollón 2023-07-28 12:01:41 UTC
Description of problem:
The macro golang_arches_future is not properly populated during the installation of the go-rpm-macros package.

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

How reproducible:
Use golang_arches_future in any specfile in CentOS Stream 9

Steps to Reproduce:
1. Use golang_arches_future in a specfile
2. Build the package
3. It will fail.

Actual results:

error: Architecture is not included: x86_64
Building target platforms: x86_64

Expected results:

No error.

Additional info:

golang_arches_future, golang_arches, and gccgo_arches are placeholders in the macros file, and later, during the installation of the package, substituted for a list of valid architectures. The solution is as simple as declare the golang_arches_future in the same way golang_arches and gccgo_arches are declared in the specfile.

Comment 2 Alejandro Sáez Morollón 2023-07-31 15:52:22 UTC
(In reply to Maxwell G from comment #1)
> See
> https://src.fedoraproject.org/rpms/go-rpm-macros/c/
> b98334becd4c52e98e433e17118f9bf0e27903cc?branch=rawhide

Thanks for the reference. I didn't realized that when I opened the bug I didn't link to the merge request that I already had opened.

https://gitlab.com/redhat/centos-stream/rpms/go-rpm-macros/-/merge_requests/12