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 4701B13835A for ; Tue, 5 Jan 2021 08:42:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64539E0857; Tue, 5 Jan 2021 08:42:32 +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 4BFCEE0857 for ; Tue, 5 Jan 2021 08:42:32 +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 3AF6333BF35 for ; Tue, 5 Jan 2021 08:42:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D079BCC for ; Tue, 5 Jan 2021 08:42:29 +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: <1609836144.3adc7e343f41581f05e3d52ded688bc231548658.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/gdb/gdb-10.1.ebuild sys-devel/gdb/gdb-9999.ebuild sys-devel/gdb/metadata.xml X-VCS-Directories: sys-devel/gdb/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 3adc7e343f41581f05e3d52ded688bc231548658 X-VCS-Branch: master Date: Tue, 5 Jan 2021 08:42:29 +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: 48ddb2e2-2249-4cb1-94da-b982b9a705a7 X-Archives-Hash: 6b9c620448164e1a225b590c93cdb0ac commit: 3adc7e343f41581f05e3d52ded688bc231548658 Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Jan 5 08:37:00 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Jan 5 08:42:24 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3adc7e34 sys-devel/gdb: make CET optional (and disabled by default) Reported-by: Volker Ernst Bug: https://bugs.gentoo.org/760926 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> sys-devel/gdb/gdb-10.1.ebuild | 9 +++++++-- sys-devel/gdb/gdb-9999.ebuild | 7 ++++++- sys-devel/gdb/metadata.xml | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/sys-devel/gdb/gdb-10.1.ebuild b/sys-devel/gdb/gdb-10.1.ebuild index 0d958a65b3c..dc5210dbe4e 100644 --- a/sys-devel/gdb/gdb-10.1.ebuild +++ b/sys-devel/gdb/gdb-10.1.ebuild @@ -46,7 +46,7 @@ SLOT="0" if [[ ${PV} != 9999* ]] ; then KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" fi -IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" +IUSE="cet +client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) || ( client server ) @@ -131,8 +131,13 @@ src_configure() { --disable-{binutils,etc,gas,gold,gprof,ld} # avoid automagic dependency on (currently prefix) systems - # systems with debuginfod library, bgu #754753 + # systems with debuginfod library, bug #754753 --without-debuginfod + + # Allow user to opt into CET for host libraries. + # Ideally we would like automagic-or-disabled here. + # But the check does not quite work on i686: bug #760926. + $(use_enable cet) ) local sysroot="${EPREFIX}/usr/${CTARGET}" is_cross && myconf+=( diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index 4cb70ba29be..d35fed9fce9 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -46,7 +46,7 @@ SLOT="0" if [[ ${PV} != 9999* ]] ; then KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" fi -IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" +IUSE="cet +client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash" REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) || ( client server ) @@ -133,6 +133,11 @@ src_configure() { # avoid automagic dependency on (currently prefix) systems # systems with debuginfod library, bug #754753 --without-debuginfod + + # Allow user to opt into CET for host libraries. + # Ideally we would like automagic-or-disabled here. + # But the check does not quite work on i686: bug #760926. + $(use_enable cet) ) local sysroot="${EPREFIX}/usr/${CTARGET}" is_cross && myconf+=( diff --git a/sys-devel/gdb/metadata.xml b/sys-devel/gdb/metadata.xml index c0ef0493f2a..9595bbc9f45 100644 --- a/sys-devel/gdb/metadata.xml +++ b/sys-devel/gdb/metadata.xml @@ -6,6 +6,7 @@ Gentoo Toolchain Project + Enable Intel Control-flow Enforcement Technology. Install the main "gdb" program (most people want this) Support lzma compression in ELF debug info Support all known targets in one gdb binary