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 1EF26138AE9 for ; Fri, 29 Dec 2017 20:44:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E0FCE0BDF; Fri, 29 Dec 2017 20:44:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 5E8EEE0BDF for ; Fri, 29 Dec 2017 20:44:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 62E76340806 for ; Fri, 29 Dec 2017 20:44:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2799FAEBA for ; Fri, 29 Dec 2017 20:44:12 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1514579454.6027263a03cbfaa177399c466d48aa04f2e93f1d.slyfox@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 6027263a03cbfaa177399c466d48aa04f2e93f1d X-VCS-Branch: master Date: Fri, 29 Dec 2017 20:44:12 +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: 072719ea-086d-4914-983c-949d207f727f X-Archives-Hash: a08eb646d3243cb48261511b9c9b091d commit: 6027263a03cbfaa177399c466d48aa04f2e93f1d Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Dec 29 20:30:54 2017 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Dec 29 20:30:54 2017 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=6027263a crossdev: change USE=vtv to whitelist Gentoo profiles enable vtv only for x86, amd64, arm and arm64. vtv is known to be broken at least for: - musl libc - bare metal targets - powerpc, powerpc64 (compiler SEGISEGVs: bug #618786) - hppa, ia64 (missing vtv crt* files) User can still explicitly enable vtv by tweaking /etc/portage/package.use/cross-${CTARGET} Bug: https://bugs.gentoo.org/618786 Signed-off-by: Sergei Trofimovich gentoo.org> crossdev | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/crossdev b/crossdev index 76f9a06..06d2775 100755 --- a/crossdev +++ b/crossdev @@ -335,7 +335,7 @@ parse_target() { esac local sanitizer_support=no - # Whitelist asan on explicitly supported arches fo linux. + # Whitelist asan on explicitly supported arches for linux. # Broken examples: # - musl libc # - bare metal targets @@ -357,6 +357,28 @@ parse_target() { if [[ $sanitizer_support = "no" ]]; then GUSE+=" -sanitize" fi + + local vtv_support=no + # Whitelist asan on explicitly supported arches for linux. + # Broken examples: + # - musl libc + # - bare metal targets + # - powerpc + # Untested examples: + # - *BSD + case ${CTARGET} in + # glibc targets + *-gnu*) + case ${CTARGET} in + x86_64*|i?86*|arm*|aarch64) + vtv_support=yes + ;; + esac + ;; + esac + if [[ $vtv_support = "no" ]]; then + GUSE+=" -vtv" + fi } parse_repo_config() {