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 7A972138350 for ; Wed, 8 Apr 2020 07:43:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B57BEE09BD; Wed, 8 Apr 2020 07:43:38 +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 9DDE7E09BD for ; Wed, 8 Apr 2020 07:43:38 +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 D60D434F03A for ; Wed, 8 Apr 2020 07:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 225039D for ; Wed, 8 Apr 2020 07:43:35 +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: <1586331808.1bfb04cfc33d12fc397e37f1f1339902e3f3251e.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-9.1.ebuild sys-devel/gdb/gdb-9999.ebuild X-VCS-Directories: sys-devel/gdb/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 1bfb04cfc33d12fc397e37f1f1339902e3f3251e X-VCS-Branch: master Date: Wed, 8 Apr 2020 07:43:35 +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: 0b7a0080-d75b-4984-912d-7e24fcf1de1c X-Archives-Hash: be325f793b879dadbd07c5383ed6fedd commit: 1bfb04cfc33d12fc397e37f1f1339902e3f3251e Author: Sergei Trofimovich gentoo org> AuthorDate: Wed Apr 8 07:42:55 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Apr 8 07:43:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bfb04cf sys-devel/gdb: use ${CHOST}-pkg-config, bug #716558 When cross-compiling gdb ./configure found CBUILD's dev-util/source-highlight. That is never correct as client is supposed to be running on CHOST. The change switches to CHOST's PKG_CONFIG. Reported-by: Jan Postránský Bug: https://bugs.gentoo.org/716558 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich gentoo.org> sys-devel/gdb/gdb-9.1.ebuild | 5 ++++- sys-devel/gdb/gdb-9999.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys-devel/gdb/gdb-9.1.ebuild b/sys-devel/gdb/gdb-9.1.ebuild index 85e66726971..9361fca6fb0 100644 --- a/sys-devel/gdb/gdb-9.1.ebuild +++ b/sys-devel/gdb/gdb-9.1.ebuild @@ -4,7 +4,7 @@ EAPI=7 PYTHON_COMPAT=( python{3_6,3_7} ) -inherit eutils flag-o-matic python-single-r1 +inherit eutils flag-o-matic python-single-r1 toolchain-funcs export CTARGET=${CTARGET:-${CHOST}} if [[ ${CTARGET} == ${CHOST} ]] ; then @@ -183,6 +183,9 @@ src_configure() { myconf+=( --disable-largefile ) fi + # source-highlight is detected with pkg-config: bug #716558 + export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" + mkdir "${GDB_BUILD_DIR}" || die pushd "${GDB_BUILD_DIR}" || die ECONF_SOURCE=${S} diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index 9e181d9e64b..056b99bbc89 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -4,7 +4,7 @@ EAPI=7 PYTHON_COMPAT=( python{3_6,3_7} ) -inherit eutils flag-o-matic python-single-r1 +inherit eutils flag-o-matic python-single-r1 toolchain-funcs export CTARGET=${CTARGET:-${CHOST}} if [[ ${CTARGET} == ${CHOST} ]] ; then @@ -181,6 +181,9 @@ src_configure() { myconf+=( --disable-largefile ) fi + # source-highlight is detected with pkg-config: bug #716558 + export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" + econf "${myconf[@]}" }