Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclass/toolchain-funcs: new function tc-ld-force-bfd() #19116

Closed

Conversation

telans
Copy link
Contributor

@telans telans commented Jan 18, 2021

No functions currently force ld.bfd usage when ld.lld is active.
This function forces ld.bfd when either ld.gold or ld.lld is active.
tc-ld-disable-gold() now calls this new function
 only if ld.gold is active.

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Theo Anderson telans@posteo.de

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @telans
Areas affected: eclasses
Packages affected: (none)

@gentoo/github

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

New packages

This Pull Request appears to be introducing new packages only. Due to limited manpower, adding new packages is considered low priority. This does not mean that your Pull Request will not receive any attention, however, it might take quite some time for it to be reviewed. In the meantime, your new ebuild might find a home in the GURU project repository: the ebuild repository maintained collaboratively by Gentoo users. GURU offers your ebuild a place to be reviewed and improved by other Gentoo users, while making it easy for Gentoo users to install it and enjoy the software it adds.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added the need assignment It was impossible to assign the PR correctly. Please assign it manually. label Jan 19, 2021
@telans telans force-pushed the toolchain-funcs-tc-ld-disable-lld branch from 9bc7a56 to 5746338 Compare January 19, 2021 06:24
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-01-19 06:44 UTC
Newest commit scanned: 5746338
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/a30f363e55/output.html

@floppym
Copy link
Contributor

floppym commented Jan 19, 2021

Although I wonder if these two functions should be migrated to something like tc-ld-enable-bfd?

Yes, this seems like a much nicer solution. I would probably call it tc-ld-force-bfd instead.

We could also retain tc-ld-disable-gold and just have it call tc-ld-force-bfd until all ebuilds are migrated to the new function.

@telans telans changed the title eclass/toolchain-funcs: new function tc-ld-disable-lld() eclass/toolchain-funcs: new function tc-ld-force-bfd() Jan 20, 2021
@telans telans force-pushed the toolchain-funcs-tc-ld-disable-lld branch from 5746338 to 70aecf2 Compare January 20, 2021 10:39
@telans
Copy link
Contributor Author

telans commented Jan 20, 2021

Yes, this seems like a much nicer solution. I would probably call it tc-ld-force-bfd instead.

Done, this is definitely better.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-01-20 10:54 UTC
Newest commit scanned: 70aecf2
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/05808df829/output.html

Copy link
Contributor

@floppym floppym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should replace the body of tc-ld-disable-gold with a call to tc-ld-force-bfd. It should also be marked as deprecated.

Please remove "eclass/" from the summary line in the commit message.

This patch should then be sent to the gentoo-dev mailing list for official review.

@telans telans force-pushed the toolchain-funcs-tc-ld-disable-lld branch 3 times, most recently from 6760549 to c0894e3 Compare January 20, 2021 20:59
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-01-20 20:59 UTC
Newest commit scanned: 6760549
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/2bd31f3933/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-01-20 21:29 UTC
Newest commit scanned: c0894e3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/f93d914907/output.html

No functions currently force ld.bfd usage when ld.lld is active.
This function forces ld.bfd when either ld.gold or ld.lld is active.
tc-ld-disable-gold() now calls this new function
 only if ld.gold is active.

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
@telans telans force-pushed the toolchain-funcs-tc-ld-disable-lld branch from c0894e3 to 7610786 Compare January 21, 2021 11:02
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-01-21 11:34 UTC
Newest commit scanned: 7610786
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/5d747ff99f/output.html

@trofi trofi self-requested a review January 21, 2021 21:37
@trofi
Copy link
Contributor

trofi commented Jan 23, 2021

Pulled as is. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need assignment It was impossible to assign the PR correctly. Please assign it manually.
Projects
None yet
5 participants