From 7b614cbbb7514d643f8c0ca9173195c013c3c885 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Fri, 7 Oct 2022 20:37:40 +0200 Subject: dev-lang/gnat-gpl: do not use which Closes: https://bugs.gentoo.org/844088 Signed-off-by: Alfredo Tupone --- dev-lang/gnat-gpl/gnat-gpl-2020.ebuild | 14 +++++++------- dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild | 13 ++++++------- dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild | 12 ++++++------ 3 files changed, 19 insertions(+), 20 deletions(-) (limited to 'dev-lang/gnat-gpl') diff --git a/dev-lang/gnat-gpl/gnat-gpl-2020.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2020.ebuild index 7c3e1675fbdc..efc7ef0e3532 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2020.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2020.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -103,12 +103,12 @@ src_prepare() { GNATLS="${gnatpath}/${GNATLS}" fi mkdir bin || die - ln -s $(which ${GCC}) bin/gcc || die - ln -s $(which ${CXX}) bin/g++ || die - ln -s $(which ${GNATMAKE}) bin/gnatmake || die - ln -s $(which ${GNATBIND}) bin/gnatbind || die - ln -s $(which ${GNATLINK}) bin/gnatlink || die - ln -s $(which ${GNATLS}) bin/gnatls || die + ln -s $(type -P ${GCC}) bin/gcc || die + ln -s $(type -P ${CXX}) bin/g++ || die + ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die + ln -s $(type -P ${GNATBIND}) bin/gnatbind || die + ln -s $(type -P ${GNATLINK}) bin/gnatlink || die + ln -s $(type -P ${GNATLS}) bin/gnatls || die cd .. mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild index 02da8f27ec3a..7e9e65beb91e 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild @@ -45,7 +45,6 @@ KEYWORDS="amd64 x86" IUSE="+ada +bootstrap" RESTRICT="test" -RDEPEND="!~sys-devel/gcc-${TOOLCHAIN_GCC_PV}" BDEPEND=sys-devel/binutils S="${WORKDIR}"/${MYP} @@ -106,12 +105,12 @@ src_prepare() { GNATLS="${gnatpath}/${GNATLS}" fi mkdir bin || die - ln -s $(which ${GCC}) bin/gcc || die - ln -s $(which ${CXX}) bin/g++ || die - ln -s $(which ${GNATMAKE}) bin/gnatmake || die - ln -s $(which ${GNATBIND}) bin/gnatbind || die - ln -s $(which ${GNATLINK}) bin/gnatlink || die - ln -s $(which ${GNATLS}) bin/gnatls || die + ln -s $(type -P ${GCC}) bin/gcc || die + ln -s $(type -P ${CXX}) bin/g++ || die + ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die + ln -s $(type -P ${GNATBIND}) bin/gnatbind || die + ln -s $(type -P ${GNATLINK}) bin/gnatlink || die + ln -s $(type -P ${GNATLS}) bin/gnatls || die cd .. mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild index 1d550e0fd45b..3634ffe8e48e 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild @@ -103,12 +103,12 @@ src_prepare() { GNATLS="${gnatpath}/${GNATLS}" fi mkdir bin || die - ln -s $(which ${GCC}) bin/gcc || die - ln -s $(which ${CXX}) bin/g++ || die - ln -s $(which ${GNATMAKE}) bin/gnatmake || die - ln -s $(which ${GNATBIND}) bin/gnatbind || die - ln -s $(which ${GNATLINK}) bin/gnatlink || die - ln -s $(which ${GNATLS}) bin/gnatls || die + ln -s $(type -P ${GCC}) bin/gcc || die + ln -s $(type -P ${CXX}) bin/g++ || die + ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die + ln -s $(type -P ${GNATBIND}) bin/gnatbind || die + ln -s $(type -P ${GNATLINK}) bin/gnatlink || die + ln -s $(type -P ${GNATLS}) bin/gnatls || die cd .. mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die -- cgit v1.2.3-65-gdbad