Bug 1502305 - RFE: Add a way to specify additional extldflags for %gobuild
Summary: RFE: Add a way to specify additional extldflags for %gobuild
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: go-compilers
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Čajka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-15 15:06 UTC by Neal Gompa
Modified: 2017-12-19 19:45 UTC (History)
3 users (show)

Fixed In Version: go-compilers-1-15.fc28 go-compilers-1-15.fc27
Clone Of:
Environment:
Last Closed: 2017-12-19 19:45:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed change to go macros (875 bytes, patch)
2017-10-15 15:06 UTC, Neal Gompa
no flags Details | Diff
Revised proposed change to go macros (1.08 KB, patch)
2017-10-15 15:08 UTC, Neal Gompa
no flags Details | Diff

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.


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