Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/perl/
Date: Wed, 11 Sep 2019 16:03:52
Message-Id: 1568217822.8cda54159254005417ef6bfc943e60f8092aa095.jer@gentoo
commit:     8cda54159254005417ef6bfc943e60f8092aa095
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 11 15:32:46 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Sep 11 16:03:42 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cda5415

dev-lang/perl: Combine -Dd_u32align definitions, add HPPA

Although unaligned accesses are not fatal on PARISC, as they are
automatically realigned as they occur, this has a non-trivial impact on
performance that ought to be fixed upstream. Work around it the same way
sparc*-* does and combine both efforts into a single myconf() call.

Package-Manager: Portage-2.3.75, Repoman-2.3.17
Bug: https://bugs.gentoo.org/676062
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 dev-lang/perl/perl-5.28.2-r1.ebuild | 5 +++--
 dev-lang/perl/perl-5.28.9999.ebuild | 5 +++--
 dev-lang/perl/perl-5.30.0.ebuild    | 5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/dev-lang/perl/perl-5.28.2-r1.ebuild b/dev-lang/perl/perl-5.28.2-r1.ebuild
index 9e4f13f2628..a63c8091115 100644
--- a/dev-lang/perl/perl-5.28.2-r1.ebuild
+++ b/dev-lang/perl/perl-5.28.2-r1.ebuild
@@ -377,7 +377,6 @@ src_configure() {
 	filter-flags "-flto"
 
 	use sparc && myconf -Ud_longdbl
-	use sparc && myconf -Dd_u32align # bug #676062
 
 	export BUILD_BZIP2=0
 	export BZIP2_INCLUDE=${EROOT}/usr/include
@@ -469,7 +468,9 @@ src_configure() {
 
 	# fix unaligned access misdetection
 	# https://rt.perl.org/Public/Bug/Display.html?id=133495
-	[[ ${CHOST} == sparc*-solaris* ]] && myconf "-Dd_u32align='define'"
+	# bug #676062
+	use hppa || use sparc || [[ ${CHOST} == sparc*-solaris* ]] && \
+		myconf "-Dd_u32align='define'"
 
 	# Prefix: the host system needs not to follow Gentoo multilib stuff, and in
 	# Prefix itself we don't do multilib either, so make sure perl can find

diff --git a/dev-lang/perl/perl-5.28.9999.ebuild b/dev-lang/perl/perl-5.28.9999.ebuild
index 2c066883bce..c5309aeccc8 100644
--- a/dev-lang/perl/perl-5.28.9999.ebuild
+++ b/dev-lang/perl/perl-5.28.9999.ebuild
@@ -375,7 +375,6 @@ src_configure() {
 	filter-flags "-flto"
 
 	use sparc && myconf -Ud_longdbl
-	use sparc && myconf -Dd_u32align # bug #676062
 
 	export BUILD_BZIP2=0
 	export BZIP2_INCLUDE=${EROOT}/usr/include
@@ -467,7 +466,9 @@ src_configure() {
 
 	# fix unaligned access misdetection
 	# https://rt.perl.org/Public/Bug/Display.html?id=133495
-	[[ ${CHOST} == sparc*-solaris* ]] && myconf "-Dd_u32align='define'"
+	# bug #676062
+	use hppa || use sparc || [[ ${CHOST} == sparc*-solaris* ]] && \
+		myconf "-Dd_u32align='define'"
 
 	# Prefix: the host system needs not to follow Gentoo multilib stuff, and in
 	# Prefix itself we don't do multilib either, so make sure perl can find

diff --git a/dev-lang/perl/perl-5.30.0.ebuild b/dev-lang/perl/perl-5.30.0.ebuild
index 922d04be075..8f02f4a820c 100644
--- a/dev-lang/perl/perl-5.30.0.ebuild
+++ b/dev-lang/perl/perl-5.30.0.ebuild
@@ -373,7 +373,6 @@ src_configure() {
 	filter-flags "-flto"
 
 	use sparc && myconf -Ud_longdbl
-	use sparc && myconf -Dd_u32align # bug #676062
 
 	export BUILD_BZIP2=0
 	export BZIP2_INCLUDE=${EROOT}/usr/include
@@ -465,7 +464,9 @@ src_configure() {
 
 	# fix unaligned access misdetection
 	# https://rt.perl.org/Public/Bug/Display.html?id=133495
-	[[ ${CHOST} == sparc*-solaris* ]] && myconf "-Dd_u32align='define'"
+	# bug #676062
+	use hppa || use sparc || [[ ${CHOST} == sparc*-solaris* ]] && \
+		myconf "-Dd_u32align='define'"
 
 	# Prefix: the host system needs not to follow Gentoo multilib stuff, and in
 	# Prefix itself we don't do multilib either, so make sure perl can find