From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BBC3E15800A for ; Mon, 28 Aug 2023 22:08:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D47F72BC014; Mon, 28 Aug 2023 22:08:07 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC5F12BC014 for ; Mon, 28 Aug 2023 22:08:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD604340DF1 for ; Mon, 28 Aug 2023 22:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 333331076 for ; Mon, 28 Aug 2023 22:08:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1693260389.5f99dd3b27a460f89596ca147bb30877c186151c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/perl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/perl/perl-5.36.1-r3.ebuild dev-lang/perl/perl-5.38.0-r1.ebuild X-VCS-Directories: dev-lang/perl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5f99dd3b27a460f89596ca147bb30877c186151c X-VCS-Branch: master Date: Mon, 28 Aug 2023 22:08:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 90b7536f-cd53-4772-b0fd-67d475f475d8 X-Archives-Hash: 40a928a9ce1d7c144ae896372f7db20b commit: 5f99dd3b27a460f89596ca147bb30877c186151c Author: Sam James gentoo org> AuthorDate: Mon Aug 28 22:05:33 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 28 22:06:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f99dd3b dev-lang/perl: fix segfault w/ cross + musl, filter LTO properly Implicit function declarations need to burn. While at it, modernise filtering LTO. Closes: https://bugs.gentoo.org/913171 Signed-off-by: Sam James gentoo.org> dev-lang/perl/perl-5.36.1-r3.ebuild | 5 ++++- dev-lang/perl/perl-5.38.0-r1.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-lang/perl/perl-5.36.1-r3.ebuild b/dev-lang/perl/perl-5.36.1-r3.ebuild index f63397626bfe..553ab9f76a38 100644 --- a/dev-lang/perl/perl-5.36.1-r3.ebuild +++ b/dev-lang/perl/perl-5.36.1-r3.ebuild @@ -533,7 +533,7 @@ src_configure() { filter-flags "-malign-double" # Generic LTO broken since 5.28, triggers EUMM failures - filter-flags "-flto" + filter-lto use sparc && myconf -Ud_longdbl @@ -583,6 +583,9 @@ src_configure() { # modifying 'optimize' prevents cross configure script from appending required flags if tc-is-cross-compiler; then append-cflags "-fwrapv" + + # bug #913171 + export HOSTCFLAGS="${CFLAGS_FOR_BUILD} -D_GNU_SOURCE" fi # bug #877659, bug #821577 diff --git a/dev-lang/perl/perl-5.38.0-r1.ebuild b/dev-lang/perl/perl-5.38.0-r1.ebuild index 21774a38d7d8..5dfbb02418dd 100644 --- a/dev-lang/perl/perl-5.38.0-r1.ebuild +++ b/dev-lang/perl/perl-5.38.0-r1.ebuild @@ -533,7 +533,7 @@ src_configure() { filter-flags "-malign-double" # Generic LTO broken since 5.28, triggers EUMM failures - filter-flags "-flto" + filter-lto use sparc && myconf -Ud_longdbl @@ -583,6 +583,9 @@ src_configure() { # modifying 'optimize' prevents cross configure script from appending required flags if tc-is-cross-compiler; then append-cflags "-fwrapv" + + # bug #913171 + export HOSTCFLAGS="${CFLAGS_FOR_BUILD} -D_GNU_SOURCE" fi # bug #877659, bug #821577