Bug 1502305

Summary: RFE: Add a way to specify additional extldflags for %gobuild
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: go-compilersAssignee: Jakub Čajka <jcajka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: fpokorny, jcajka, jchaloup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: go-compilers-1-15.fc28 go-compilers-1-15.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-19 19:45:03 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:
Attachments:
Description Flags
Proposed change to go macros
none
Revised proposed change to go macros none

Description Neal Gompa 2017-10-15 15:06:55 UTC
Created attachment 1338927 [details]
Proposed change to go macros

Description of problem:
For snapd, I need to specify that some components need to be built statically because they get bind-mounted into sandbox environments that may or may not have a compatible libc.

However, it is not possible to specify additional external ldflags without messing up the set used for the C components, too.

Please add a way to inject additional extldflags through a macro.

I propose a %__golang_extldflags macro that, if defined with stuff, will be added right into the extldflags call.

I'd like this to be fixed across the board (Fedora 25, Fedora 26, Fedora 27, and Rawhide) if possible.

Version-Release number of selected component (if applicable):
1-11.fc26


Additional info:
This affects Fedora 25, Fedora 27, and Rawhide in addition to Fedora 26.

Comment 1 Neal Gompa 2017-10-15 15:08:46 UTC
Created attachment 1338928 [details]
Revised proposed change to go macros

Oops, forgot to change it for the other case. Added that too.

Comment 2 Neal Gompa 2017-10-15 15:09:31 UTC
I do not know what's required for this to work with gcc-go, so I ask that someone please figure that out too. :)

Comment 3 Jakub Čajka 2017-11-30 15:18:28 UTC
Looks reasonable to me. I have pushed it in to rawhide and f27. Please test and if everything works I can do back port to f26.

PS: sorry for longer notice

Comment 4 Fedora Update System 2017-11-30 15:20:07 UTC
go-compilers-1-15.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d56d15a5d7

Comment 5 Fedora Update System 2017-12-02 19:53:44 UTC
go-compilers-1-15.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d56d15a5d7

Comment 6 Fedora Update System 2017-12-19 19:45:03 UTC
go-compilers-1-15.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.