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 01628138334 for ; Wed, 5 Jun 2019 09:31:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11101E09A4; Wed, 5 Jun 2019 09:31:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 ED54FE09A4 for ; Wed, 5 Jun 2019 09:31:07 +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 8EF96345735 for ; Wed, 5 Jun 2019 09:31:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E8CD566 for ; Wed, 5 Jun 2019 09:31:04 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1559727057.c872ec9942b167d7d42c7d748c88a0827c52f022.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libb2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/libb2/libb2-0.98.1.ebuild X-VCS-Directories: app-crypt/libb2/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: c872ec9942b167d7d42c7d748c88a0827c52f022 X-VCS-Branch: master Date: Wed, 5 Jun 2019 09:31:04 +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: b989e192-530d-4405-a670-cebaa586fc5a X-Archives-Hash: b76cf8fcfe5e781c7c4572630207574c commit: c872ec9942b167d7d42c7d748c88a0827c52f022 Author: Fabian Groffen gentoo org> AuthorDate: Wed Jun 5 09:30:47 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Jun 5 09:30:57 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c872ec99 app-crypt/libb2: fix check to respect CFLAGS, thanks jer Closes: https://bugs.gentoo.org/687412 Signed-off-by: Fabian Groffen gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11 app-crypt/libb2/libb2-0.98.1.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app-crypt/libb2/libb2-0.98.1.ebuild b/app-crypt/libb2/libb2-0.98.1.ebuild index 1f7105ca478..440bcd1bb91 100644 --- a/app-crypt/libb2/libb2-0.98.1.ebuild +++ b/app-crypt/libb2/libb2-0.98.1.ebuild @@ -45,9 +45,18 @@ src_configure() { $(use_enable openmp) } -src_compile() { +do_make() { # respect our CFLAGS when native-cflags is not in effect - emake $(use native-cflags && echo no)CFLAGS="${CFLAGS}" + local openmp=$(use openmp && echo -fopenmp) + emake $(use native-cflags && echo no)CFLAGS="${CFLAGS} ${openmp}" "$@" +} + +src_compile() { + do_make +} + +src_test() { + do_make check } src_install() {