From f503f4650237eee281e0fb2b1afab795af2b21c5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 2 Mar 2020 09:03:40 -0500 Subject: [PATCH] sci-mathematics/gmp-ecm: add "emake clean" to force a rebuild. Taking another shot at making USE=custom-tune do what it's supposed to do. The project's targets don't depend on ecm-params.h, so after we generate them, we need to "emake clean" and rebuild everything manually in order to use the custom parameters. Bug: https://bugs.gentoo.org/711078 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Michael Orlitzky --- sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild index fa9bae778568..f93af7a063f1 100644 --- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild @@ -32,8 +32,9 @@ src_compile() { # One "emake" was needed to build the library. Now we can find # the best set of parameters, and then run "emake" one more time # to rebuild the library with the custom parameters. See the - # project's README or INSTALL-ecm - emake ecm-params && emake + # project's README or INSTALL-ecm. The build targets don't depend + # on ecm-params.h, so we need to "make clean" to force a rebuild. + emake ecm-params && emake clean && emake fi } src_configure() { -- 2.26.2