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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DEFE138334 for ; Wed, 23 Oct 2019 15:54:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E2F0E08C8; Wed, 23 Oct 2019 15:54:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 05B7DE08C8 for ; Wed, 23 Oct 2019 15:54:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F0E434C254 for ; Wed, 23 Oct 2019 15:54:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C8B55828 for ; Wed, 23 Oct 2019 15:54:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1571846037.2d3d6642569924ce301dd278e02ce2ac7d434f02.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/argon2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/argon2/argon2-20190702.ebuild X-VCS-Directories: app-crypt/argon2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2d3d6642569924ce301dd278e02ce2ac7d434f02 X-VCS-Branch: master Date: Wed, 23 Oct 2019 15:54:02 +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: 6cace3f1-aa71-4652-a098-20f6c0c9e661 X-Archives-Hash: 3975e7249ce0d63ff0d64505981d036b commit: 2d3d6642569924ce301dd278e02ce2ac7d434f02 Author: Michał Górny gentoo org> AuthorDate: Wed Oct 23 15:53:28 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Oct 23 15:53:57 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d3d6642 app-crypt/argon2: Use optimized code on x86 only Closes: https://bugs.gentoo.org/698396 Signed-off-by: Michał Górny gentoo.org> app-crypt/argon2/argon2-20190702.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app-crypt/argon2/argon2-20190702.ebuild b/app-crypt/argon2/argon2-20190702.ebuild index 4f7b30a2b83..b3827b00635 100644 --- a/app-crypt/argon2/argon2-20190702.ebuild +++ b/app-crypt/argon2/argon2-20190702.ebuild @@ -30,18 +30,24 @@ src_prepare() { Makefile || die tc-export CC + + if use amd64 || use x86; then + OPTTEST=0 + else + OPTTEST=1 + fi } src_compile() { - emake OPTTEST=0 LIBRARY_REL="$(get_libdir)" + emake OPTTEST="${OPTTEST}" LIBRARY_REL="$(get_libdir)" } src_test() { - emake OPTTEST=0 test + emake OPTTEST="${OPTTEST}" test } src_install() { - emake OPTTEST=0 DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install + emake OPTTEST="${OPTTEST}" DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install einstalldocs doman man/argon2.1 }