Skip to content

dev-lang/perl: append required cflags when x-compiling#22167

Closed
jepio wants to merge 1 commit intogentoo:masterfrom
jepio:perl-x-compile-segfault-fix
Closed

dev-lang/perl: append required cflags when x-compiling#22167
jepio wants to merge 1 commit intogentoo:masterfrom
jepio:perl-x-compile-segfault-fix

Conversation

@jepio
Copy link
Copy Markdown
Contributor

@jepio jepio commented Aug 31, 2021

Bug: https://bugs.gentoo.org/811237
Reported-by: Github User DRKV333
Signed-off-by: Jeremi Piotrowski jpiotrowski@microsoft.com

The cross-build system wants to append cflags required by the build to the
'optimize' variable, but doesn't touch the variable when the user overrides it.
Since the ebuild passes '-Doptimize="${CFLAGS}"', we are responsible for
passing the correct flags, so append '-fwrapv -fno-strict-aliasing' to cflags
when we are cross-compiling.

Bug: https://bugs.gentoo.org/811237
Reported-by: Github User DRKV333
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@gentoo-bot
Copy link
Copy Markdown

Pull Request assignment

Submitter: @jepio
Areas affected: ebuilds
Packages affected: dev-lang/perl

dev-lang/perl: @gentoo/perl

Linked bugs

Bugs linked: 811237


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 assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Aug 31, 2021
@gentoo-repo-qa-bot
Copy link
Copy Markdown
Collaborator

Pull request CI report

Report generated at: 2021-08-31 09:09 UTC
Newest commit scanned: f15da87
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/fec4e757bd/output.html

@thesamesam thesamesam requested a review from akhuettel August 31, 2021 16:00
@gentoo-bot gentoo-bot closed this in 176c1da Sep 1, 2021
@thesamesam
Copy link
Copy Markdown
Member

Thank you for the patch and explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants