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 220201382C5 for ; Wed, 16 May 2018 22:02:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60932E0972; Wed, 16 May 2018 22:02:33 +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 3D1E2E0972 for ; Wed, 16 May 2018 22:02:33 +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 6CA21335C09 for ; Wed, 16 May 2018 22:02:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A778327B for ; Wed, 16 May 2018 22:02:30 +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: <1526508078.91966aedd03d633af8476d824e2ee83a5181cc26.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/, eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass sys-devel/gcc/metadata.xml X-VCS-Directories: eclass/ sys-devel/gcc/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 91966aedd03d633af8476d824e2ee83a5181cc26 X-VCS-Branch: master Date: Wed, 16 May 2018 22:02: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: 448995c6-d109-4274-b5f7-387588325183 X-Archives-Hash: d91dd64c61690e14892d058f9e180aa7 commit: 91966aedd03d633af8476d824e2ee83a5181cc26 Author: Sergei Trofimovich gentoo org> AuthorDate: Wed May 16 21:54:38 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed May 16 22:01:18 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91966aed toolchain.eclass: add IUSE=systemtap to gcc-8 Avoid automagic dependency on systemtap installed. Reported-by: lekto o2.pl Bug: https://bugs.gentoo.org/654748 Signed-off-by: Sergei Trofimovich gentoo.org> eclass/toolchain.eclass | 11 +++++++++++ sys-devel/gcc/metadata.xml | 1 + 2 files changed, 12 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 47ee5495739..68e4ce15b37 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -154,6 +154,8 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 4.9 && IUSE+=" +vtv" tc_version_is_at_least 5.0 && IUSE+=" jit mpx" tc_version_is_at_least 6.0 && IUSE+=" +pie +ssp +pch" + # systemtap is a gentoo-specific switch: bug #654748 + tc_version_is_at_least 8.0 && IUSE+=" systemtap" fi IUSE+=" ${IUSE_DEF[*]/#/+}" @@ -220,6 +222,11 @@ if in_iuse gcj ; then DEPEND+=" gcj? ( awt? ( ${GCJ_GTK_DEPS} ) ${GCJ_DEPS} )" fi +if in_iuse systemtap ; then + # gcc needs sys/sdt.h headers on target + DEPEND+=" systemtap? ( dev-util/systemtap )" +fi + PDEPEND=">=sys-devel/gcc-config-1.7" #---->> S + SRC_URI essentials <<---- @@ -1229,6 +1236,10 @@ toolchain_src_configure() { confgcc+=( $(use_enable mpx libmpx) ) fi + if in_iuse systemtap ; then + confgcc+=( $(use_enable systemtap) ) + fi + if in_iuse vtv ; then confgcc+=( $(use_enable vtv vtable-verify) diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml index 52748bc1ff6..51f143604eb 100644 --- a/sys-devel/gcc/metadata.xml +++ b/sys-devel/gcc/metadata.xml @@ -31,6 +31,7 @@ Run the testsuite and install the results (requires FEATURES=test) Build support for various sanitizer functions (ASAN/TSAN/etc...) Build packages with stack smashing protector on by default + enable systemtap static probe points Build support for virtual table verification (a C++ hardening feature)