commit: 28d674673b7e0198d2770ec5a780966555dbbc6a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Oct 28 12:36:37 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 28 12:37:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28d67467
dev-lang/perl: always pass -fno-strict-aliasing We keep getting these bugs where it turns out the build system didn't pass it for us, so just unconditionally do it. Closes: https://bugs.gentoo.org/877659 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/perl/{perl-5.34.1-r3.ebuild => perl-5.34.1-r4.ebuild} | 5 ++++- dev-lang/perl/{perl-5.36.0.ebuild => perl-5.36.0-r1.ebuild} | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-lang/perl/perl-5.34.1-r3.ebuild b/dev-lang/perl/perl-5.34.1-r4.ebuild similarity index 99% rename from dev-lang/perl/perl-5.34.1-r3.ebuild rename to dev-lang/perl/perl-5.34.1-r4.ebuild index c92f6b9c1571..608bf4e02465 100644 --- a/dev-lang/perl/perl-5.34.1-r3.ebuild +++ b/dev-lang/perl/perl-5.34.1-r4.ebuild @@ -600,9 +600,12 @@ src_configure() { # modifying 'optimize' prevents cross configure script from appending required flags if tc-is-cross-compiler; then - append-cflags "-fwrapv -fno-strict-aliasing" + append-cflags "-fwrapv" fi + # bug #877659, bug #821577 + append-cflags -fno-strict-aliasing + # Autodiscover all old version directories, some of them will even be newer # if you downgrade if [[ -z ${PERL_OLDVERSEN} ]]; then diff --git a/dev-lang/perl/perl-5.36.0.ebuild b/dev-lang/perl/perl-5.36.0-r1.ebuild similarity index 99% rename from dev-lang/perl/perl-5.36.0.ebuild rename to dev-lang/perl/perl-5.36.0-r1.ebuild index bcc7e531057a..1ae7dd84b33a 100644 --- a/dev-lang/perl/perl-5.36.0.ebuild +++ b/dev-lang/perl/perl-5.36.0-r1.ebuild @@ -583,9 +583,12 @@ src_configure() { # modifying 'optimize' prevents cross configure script from appending required flags if tc-is-cross-compiler; then - append-cflags "-fwrapv -fno-strict-aliasing" + append-cflags "-fwrapv" fi + # bug #877659, bug #821577 + append-cflags -fno-strict-aliasing + # Autodiscover all old version directories, some of them will even be newer # if you downgrade if [[ -z ${PERL_OLDVERSEN} ]]; then
