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 DCD3B138335 for ; Wed, 25 Sep 2019 17:27:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D287E089E; Wed, 25 Sep 2019 17:27:51 +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 20A90E08E5 for ; Wed, 25 Sep 2019 17:27:51 +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 17CB234B59A for ; Wed, 25 Sep 2019 17:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A63D26E8 for ; Wed, 25 Sep 2019 17:27:48 +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: <1569432419.3f90f9953de87db24b84a0bfb32aaa2f78c99776.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/netbsd-csu/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild X-VCS-Directories: sys-libs/netbsd-csu/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3f90f9953de87db24b84a0bfb32aaa2f78c99776 X-VCS-Branch: master Date: Wed, 25 Sep 2019 17:27:48 +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: 9f55e10a-b1c6-4b0e-92cc-939c13f7c70a X-Archives-Hash: 6e23de065efbc701b38a5f83daf4f88e commit: 3f90f9953de87db24b84a0bfb32aaa2f78c99776 Author: Michał Górny gentoo org> AuthorDate: Sat Aug 17 08:38:41 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Sep 25 17:26:59 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f90f995 sys-libs/netbsd-csu: Force testing with sys-devel/clang Signed-off-by: Michał Górny gentoo.org> sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild b/sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild index bacdd60d24f..c3b117bb577 100644 --- a/sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild +++ b/sys-libs/netbsd-csu/netbsd-csu-7.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -12,9 +12,11 @@ SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="app-arch/xz-utils" +DEPEND="app-arch/xz-utils + test? ( sys-devel/clang )" S=${WORKDIR}/${P}/lib/csu @@ -60,9 +62,14 @@ multilib_src_compile() { } multilib_src_test() { + # TODO: fix gcc support + local -x CC=${CHOST}-clang + local -x CXX=${CHOST}-clang++ + strip-unsupported-flags + local cc=( # -B sets prefix for internal gcc/clang file lookup - $(tc-getCC) -B"${BUILD_DIR}" + "${CC}" -B"${BUILD_DIR}" ) # 1. figure out the correct location for crt* files