From: Tupone Alfredo Date: Fri, 22 Nov 2019 12:02:54 +0000 (+0100) Subject: dev-lang/gnat-gpl: put a guards against tool renaming made twice X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4278685f5e478d0b89859deaa2dcca88780c797e;p=gentoo.git dev-lang/gnat-gpl: put a guards against tool renaming made twice Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Alfredo Tupone --- diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild index 2cbd328b4488..290798ee35e7 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild @@ -172,6 +172,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -183,11 +186,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild index 0ea6d3ee0762..8d63c01d4ee4 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild @@ -154,6 +154,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -165,11 +168,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild index 00f3295d1cee..1e8dadcdd4d9 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild @@ -154,6 +154,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -165,11 +168,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild index fe915188aa11..ec50a7c0fb56 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild @@ -153,6 +153,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -164,11 +167,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER}