diff options
author | George Shapovalov <george@gentoo.org> | 2008-12-05 08:36:00 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2008-12-05 08:36:00 +0000 |
commit | aba2710dfb75f90aaa85b9ae23e014da4e788e82 (patch) | |
tree | 698fabdc0480e7cf6a92738680883c75d1908335 /eclass | |
parent | Bug #124314 - implement ROOT support. cfkeys must be run with ROOT==/, but is... (diff) | |
download | historical-aba2710dfb75f90aaa85b9ae23e014da4e788e82.tar.gz historical-aba2710dfb75f90aaa85b9ae23e014da4e788e82.tar.bz2 historical-aba2710dfb75f90aaa85b9ae23e014da4e788e82.zip |
prepating for new bootstraps with simplified structure
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gnatbuild.eclass | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/eclass/gnatbuild.eclass b/eclass/gnatbuild.eclass index a36e7c60c9c3..ef483c2dc358 100644 --- a/eclass/gnatbuild.eclass +++ b/eclass/gnatbuild.eclass @@ -1,12 +1,19 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.43 2008/11/29 00:46:02 george Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.44 2008/12/05 08:36:00 george Exp $ # # Author: George Shapovalov <george@gentoo.org> # Belongs to: ada herd <ada@gentoo.org> # -# Note: HOMEPAGE and LICENSE are set in appropriate ebuild, as -# gnat is developed by FSF and AdaCore "in parallel" +# Notes: +# HOMEPAGE and LICENSE are set in appropriate ebuild, as +# gnat is developed by FSF and AdaCore "in parallel" +# +# The following vars can be set in ebuild before inheriting this eclass. They +# will be respected: +# SLOT +# BOOT_SLOT - where old bootstrap is used as it works fine + inherit eutils versionator toolchain-funcs flag-o-matic multilib autotools \ libtool fixheadtails gnuconfig pax-utils @@ -409,10 +416,14 @@ gnatbuild_src_compile() { else # Set some paths to our bootstrap compiler. export PATH="${GNATBOOT}/bin:${PATH}" - # !ATTN! the *installed* compilers have ${PN} as part of their - # LIBPATH, while the *bootstrap* uses hardset "gnatgcc" in theirs - # (which is referenced as GNATLIB below) - GNATLIB="${GNATBOOT}/lib/gnatgcc/${BOOT_TARGET}/${BOOT_SLOT}" + # !ATTN! the bootstrap compilers have a very simplystic structure, + # so many paths are not identical to the installed ones. + # Plus it was simplified even more in new releases. + if [[ ${BOOT_SLOT} > 4.1 ]] ; then + GNATLIB="${GNATBOOT}/lib" + else + GNATLIB="${GNATBOOT}/lib/gnatgcc/${BOOT_TARGET}/${BOOT_SLOT}" + fi export CC="${GNATBOOT}/bin/gnatgcc" export INCLUDE_DIR="${GNATLIB}/include" @@ -494,13 +505,13 @@ gnatbuild_src_compile() { # Compile helper tools cd "${GNATBOOT}" cp "${S}"/gcc/ada/xtreeprs.adb . - cp "${S}"/gcc/ada/xsinfo.adb . - cp "${S}"/gcc/ada/xeinfo.adb . - cp "${S}"/gcc/ada/xnmake.adb . + cp "${S}"/gcc/ada/xsinfo.adb . + cp "${S}"/gcc/ada/xeinfo.adb . + cp "${S}"/gcc/ada/xnmake.adb . gnatmake xtreeprs && \ - gnatmake xsinfo && \ - gnatmake xeinfo && \ - gnatmake xnmake || die "building helper tools" + gnatmake xsinfo && \ + gnatmake xeinfo && \ + gnatmake xnmake || die "building helper tools" ;; bootstrap) |