< Changes
(Created page with "{{admon/important | Comments and Explanations | The page source contains comments providing guidance to fill out each section. They are invisible when viewing this page. To re...") |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- Self Contained or System Wide Change Proposal? | <!-- Self Contained or System Wide Change Proposal? | ||
Use this guide to determine to which category your proposed change belongs to. | Use this guide to determine to which category your proposed change belongs to. | ||
Line 26: | Line 24: | ||
<!-- A sentence or two summarizing what this change is and what it will do. This information is used for the overall changeset summary page for each release. | <!-- A sentence or two summarizing what this change is and what it will do. This information is used for the overall changeset summary page for each release. | ||
Note that motivation for the change should be in the Motivation section below, and this part should answer the question "What?" rather than "Why?". --> | Note that motivation for the change should be in the Motivation section below, and this part should answer the question "What?" rather than "Why?". --> | ||
Allow users to optionally use update-alternatives to make /usr/bin/ld point to /usr/bin/lld | |||
== Owner == | == Owner == | ||
Line 32: | Line 33: | ||
This should link to your home wiki page so we know who you are. | This should link to your home wiki page so we know who you are. | ||
--> | --> | ||
* Name: [[User: | * Name: [[User:tstellar| Tom Stellard]] | ||
<!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | <!-- Include you email address that you can be reached should people want to contact you about helping with your change, status is requested, or technical issues need to be resolved. If the change proposal is owned by a SIG, please also add a primary contact person. --> | ||
* Email: < | * Email: <tstellar@redhat.com> | ||
<!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | <!--- UNCOMMENT only for Changes with assigned Shepherd (by FESCo) | ||
* FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | * FESCo shepherd: [[User:FASAccountName| Shehperd name]] <email address> | ||
Line 44: | Line 45: | ||
== Current status == | == Current status == | ||
* Targeted release: [[Releases/ | * Targeted release: [[Releases/31 | Fedora 31 ]] | ||
* Last updated: <!-- this is an automatic macro — you don't need to change this line --> {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | * Last updated: <!-- this is an automatic macro — you don't need to change this line --> {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | ||
<!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page | <!-- After the change proposal is accepted by FESCo, tracking bug is created in Bugzilla and linked to this page | ||
Line 59: | Line 60: | ||
<!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | <!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | ||
Update the lld package %post and %postun steps to configure the system so that a user can use the update-alternatives to create a symlink from /usr/bin/ld to /usr/bin/lld. This will effectively allow lld to act as the system linker and make it easier for users to integrate lld into their projects. This same functionality is currently available with one other non-system linker: gold. | |||
I want to be clear that this proposal is not about make lld the system linker or using lld during brew builds. This is simply about making it easier for end-users to use lld with their own projects. | |||
== Benefit to Fedora == | == Benefit to Fedora == | ||
Line 89: | Line 94: | ||
https://fedoraproject.org/wiki/Changes/perl5.26 (major upgrade to a popular software stack, visible to users of that stack) | https://fedoraproject.org/wiki/Changes/perl5.26 (major upgrade to a popular software stack, visible to users of that stack) | ||
--> | --> | ||
This change will make it much easier for users to try out lld in their projects. Many build systems and compilers assume that the linker is /usr/bin/ld, and it is very difficult to seamlessly integrate lld into existing build system. With this proposal a user will be able to to easily switch between ld.bfd and lld without having to make any modifications to their build systems. | |||
== Scope == | == Scope == | ||
* Proposal owners: | * Proposal owners: tstellar | ||
<!-- What work do the feature owners have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | <!-- What work do the feature owners have to accomplish to complete the feature in time for release? Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?--> | ||
Line 129: | Line 136: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
A test for this change will be added to the lld package's CI tests. It will use update-alternatives update /usr/bin/ld to point to /usr/bin/lld and then it will run /usr/bin/ld --version to verify that this correctly points to lld. | |||
== User Experience == | == User Experience == | ||
Line 142: | Line 151: | ||
- Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | - Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | ||
--> | --> | ||
This will greatly enhances the experience for users wjo want to use lld. They will be able to try lld with their projects by simply running `update-alternatives --set ld /usr/bin/ld.bfd` instead of having to make modifications to existing build systems. | |||
== Dependencies == | == Dependencies == | ||
Line 157: | Line 168: | ||
<!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? --> | <!-- Does finishing this feature block the release, or can we ship with the feature in incomplete state? --> | ||
* Blocks release? N/A (not a System Wide Change), Yes/No <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Blocks release? N/A (not a System Wide Change), Yes/No <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
* Blocks product? | * Blocks product? N/A <!-- Applicable for Changes that blocks specific product release/Fedora.next --> | ||
== Documentation == | == Documentation == |
Revision as of 22:01, 22 July 2019
Change Proposal Name
Summary
Allow users to optionally use update-alternatives to make /usr/bin/ld point to /usr/bin/lld
Owner
- Name: Tom Stellard
- Email: <tstellar@redhat.com>
Current status
- Targeted release: Fedora 31
- Last updated: 2019-07-22
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
Update the lld package %post and %postun steps to configure the system so that a user can use the update-alternatives to create a symlink from /usr/bin/ld to /usr/bin/lld. This will effectively allow lld to act as the system linker and make it easier for users to integrate lld into their projects. This same functionality is currently available with one other non-system linker: gold.
I want to be clear that this proposal is not about make lld the system linker or using lld during brew builds. This is simply about making it easier for end-users to use lld with their own projects.
Benefit to Fedora
This change will make it much easier for users to try out lld in their projects. Many build systems and compilers assume that the linker is /usr/bin/ld, and it is very difficult to seamlessly integrate lld into existing build system. With this proposal a user will be able to to easily switch between ld.bfd and lld without having to make any modifications to their build systems.
Scope
- Proposal owners: tstellar
- Other developers: N/A (not a System Wide Change)
- Release engineering: #Releng issue number (a check of an impact with Release Engineering is needed)
- Policies and guidelines: N/A (not a System Wide Change)
- Trademark approval: N/A (not needed for this Change)
Upgrade/compatibility impact
N/A (not a System Wide Change)
How To Test
A test for this change will be added to the lld package's CI tests. It will use update-alternatives update /usr/bin/ld to point to /usr/bin/lld and then it will run /usr/bin/ld --version to verify that this correctly points to lld.
User Experience
This will greatly enhances the experience for users wjo want to use lld. They will be able to try lld with their projects by simply running update-alternatives --set ld /usr/bin/ld.bfd
instead of having to make modifications to existing build systems.
Dependencies
N/A (not a System Wide Change)
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
- Contingency deadline: N/A (not a System Wide Change)
- Blocks release? N/A (not a System Wide Change), Yes/No
- Blocks product? N/A
Documentation
N/A (not a System Wide Change)