Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/
Date: Tue, 05 Feb 2019 22:19:24
Message-Id: 1549405144.de85d6ef4ae9f32550c0fa2090a135d63bc757f3.slyfox@gentoo
1 commit: de85d6ef4ae9f32550c0fa2090a135d63bc757f3
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 5 22:18:53 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 22:19:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de85d6ef
7
8 dev-libs/gmp: drop USE=pgo from stable ebuild, bug #658688
9
10 USE=pgo generates optimal constants when running 'tuneup' benchmark
11 locally. If benchmark does not succeed default parameters are used.
12 Else benchmark's output is used to tune gmp behaviour.
13
14 Unfortunately at least on x86 some primitives like
15 __mpn_sqr_basecase generate invalid assembly code at fail tests.
16
17 In bug #650558 we found out that 'tuneup' is not very well maintained
18 upstream. Let's dropp support for USE=pgo until it gets better.
19
20 Reported-by: Robert Gill
21 Closes: https://bugs.gentoo.org/658688
22 Bug: https://bugs.gentoo.org/650558
23 Package-Manager: Portage-2.3.59, Repoman-2.3.12
24 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
25
26 dev-libs/gmp/gmp-6.1.2.ebuild | 13 +------------
27 dev-libs/gmp/metadata.xml | 1 -
28 2 files changed, 1 insertion(+), 13 deletions(-)
29
30 diff --git a/dev-libs/gmp/gmp-6.1.2.ebuild b/dev-libs/gmp/gmp-6.1.2.ebuild
31 index 68a429d051f..f7a77a47e8c 100644
32 --- a/dev-libs/gmp/gmp-6.1.2.ebuild
33 +++ b/dev-libs/gmp/gmp-6.1.2.ebuild
34 @@ -19,7 +19,7 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
35 # The subslot reflects the C & C++ SONAMEs.
36 SLOT="0/10.4"
37 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
38 -IUSE="+asm doc cxx pgo static-libs"
39 +IUSE="+asm doc cxx static-libs"
40
41 DEPEND="sys-devel/m4
42 app-arch/xz-utils"
43 @@ -87,17 +87,6 @@ multilib_src_configure() {
44
45 multilib_src_compile() {
46 emake
47 -
48 - if use pgo ; then
49 - emake -j1 -C tune tuneup
50 - ebegin "Trying to generate tuned data"
51 - ./tune/tuneup | tee gmp.mparam.h.new
52 - if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then
53 - mv gmp.mparam.h.new gmp-mparam.h || die
54 - emake clean
55 - emake
56 - fi
57 - fi
58 }
59
60 multilib_src_test() {
61
62 diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml
63 index 02ee38fa71f..5fa58802c03 100644
64 --- a/dev-libs/gmp/metadata.xml
65 +++ b/dev-libs/gmp/metadata.xml
66 @@ -7,6 +7,5 @@
67 </maintainer>
68 <use>
69 <flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag>
70 - <flag name="pgo">After building gmp, run some tests against to produce faster libraries -- this option will double the compile time</flag>
71 </use>
72 </pkgmetadata>