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 52973139698 for ; Tue, 14 Mar 2017 22:22:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27C4CE0C39; Tue, 14 Mar 2017 22:22:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2FDBE0C39 for ; Tue, 14 Mar 2017 22:22:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8FB95340806 for ; Tue, 14 Mar 2017 22:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01A48685D for ; Tue, 14 Mar 2017 22:22:30 +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: <1489530140.83c0693aac6cfde5fd6ee2a1c19c0fa09b658ea9.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/compiler-rt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild sys-libs/compiler-rt/compiler-rt-9999.ebuild X-VCS-Directories: sys-libs/compiler-rt/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 83c0693aac6cfde5fd6ee2a1c19c0fa09b658ea9 X-VCS-Branch: master Date: Tue, 14 Mar 2017 22:22:30 +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-Archives-Salt: cbe2187c-f6e3-4c01-83e4-8f851e9a0750 X-Archives-Hash: 4a3787d3a3bc6da84d2cd52bf9eb16a1 commit: 83c0693aac6cfde5fd6ee2a1c19c0fa09b658ea9 Author: Michał Górny gentoo org> AuthorDate: Tue Mar 14 21:58:33 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Mar 14 22:22:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c0693a sys-libs/compiler-rt: Use llvm.eclass for reliable upgrade from :0 Use llvm.eclass to guarantee that the newly-installed LLVM slot will take precedence in PATH even if the package manager has not unmerged slot :0 yet. sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild | 7 ++++++- sys-libs/compiler-rt/compiler-rt-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild b/sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild index a921ea8b65e..f448e2740c7 100644 --- a/sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-4.0.0.ebuild @@ -9,7 +9,7 @@ CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python2_7 ) # TODO: fix unnecessary dep on Python upstream -inherit cmake-utils flag-o-matic python-any-r1 toolchain-funcs +inherit cmake-utils flag-o-matic llvm python-any-r1 toolchain-funcs DESCRIPTION="Compiler runtime library for clang (built-in part)" HOMEPAGE="http://llvm.org/" @@ -34,6 +34,11 @@ S=${WORKDIR}/${P/_/}.src # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +pkg_setup() { + llvm_pkg_setup + python-any-r1_pkg_setup +} + test_compiler() { $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ <<<'int main() { return 0; }' &>/dev/null diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild index 1bdd2efc42e..7431230cf57 100644 --- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild @@ -9,7 +9,7 @@ CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python2_7 ) # TODO: fix unnecessary dep on Python upstream -inherit cmake-utils flag-o-matic git-r3 python-any-r1 toolchain-funcs +inherit cmake-utils flag-o-matic git-r3 llvm python-any-r1 toolchain-funcs DESCRIPTION="Compiler runtime library for clang (built-in part)" HOMEPAGE="http://llvm.org/" @@ -34,6 +34,11 @@ DEPEND=" # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +pkg_setup() { + llvm_pkg_setup + python-any-r1_pkg_setup +} + test_compiler() { $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ <<<'int main() { return 0; }' &>/dev/null