Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 488908 Details for
Bug 592060
Add Ada to toolchain.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Latest toolchain.eclas from today, v12
0001-New-toolchain.eclass-copied-over-and-patched-for-Ada.patch (text/plain), 2.57 KB, created by
Luke A. Guest
on 2017-08-14 16:36:20 UTC
(
hide
)
Description:
Latest toolchain.eclas from today, v12
Filename:
MIME Type:
Creator:
Luke A. Guest
Created:
2017-08-14 16:36:20 UTC
Size:
2.57 KB
patch
obsolete
>From e614547480652d60cc1bca16a530af7f8f4d52fd Mon Sep 17 00:00:00 2001 >From: "Luke A. Guest" <laguest@archeia.com> >Date: Mon, 14 Aug 2017 17:34:43 +0100 >Subject: [PATCH] New toolchain.eclass copied over and patched for Ada support. > >--- > eclass/toolchain.eclass | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass >index 64e5deb..230d233 100644 >--- a/eclass/toolchain.eclass >+++ b/eclass/toolchain.eclass >@@ -166,7 +166,9 @@ if in_iuse ada; then > # A newer version of GNAT should build an older version, just not vice-versa. 4.9 can definitely build 5.1.0. > # > # TODO: Add support for bootstraps for 5.4.0 and 6.3.0 >- GNAT_BOOTSTRAP_VERSION="4.9" >+ tc_version_is_at_least 4.9 && GNAT_BOOTSTRAP_VERSION="4.9" >+ tc_version_is_at_least 5.0 && GNAT_BOOTSTRAP_VERSION="5.4" >+ tc_version_is_at_least 6.0 && GNAT_BOOTSTRAP_VERSION="6.3" > fi > > #---->> DEPEND <<---- >@@ -329,7 +331,11 @@ get_gcc_src_uri() { > elif [[ -n ${SNAPSHOT} ]] ; then > GCC_SRC_URI="ftp://gcc.gnu.org/pub/gcc/snapshots/${SNAPSHOT}/gcc-${SNAPSHOT}.tar.bz2" > else >- GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.bz2" >+ if tc_version_is_between 5.5 6 || tc_version_is_between 6.4 7 || tc_version_is_at_least 7.2 ; then >+ GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.xz" >+ else >+ GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.bz2" >+ fi > # we want all branch updates to be against the main release > [[ -n ${BRANCH_UPDATE} ]] && \ > GCC_SRC_URI+=" $(gentoo_urls gcc-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2)" >@@ -370,7 +376,7 @@ get_gcc_src_uri() { > fi > fi > >- # TODO: Add support for bootstraps for 5.4.0 and 6.3.0 >+ # TODO: Add support for bootstraps for 5.4.0 and 6.3.0 for i686/arm/other arches. > if in_iuse ada; then > GCC_SRC_URI+=" amd64? ( https://dev.gentoo.org/~nerdboy/files/gnatboot-${GNAT_BOOTSTRAP_VERSION}-amd64.tar.xz ) > x86? ( https://dev.gentoo.org/~nerdboy/files/gnatboot-${GNAT_BOOTSTRAP_VERSION}-i686.tar.xz ) >@@ -460,7 +466,11 @@ gcc_quick_unpack() { > elif [[ -n ${SNAPSHOT} ]] ; then > unpack gcc-${SNAPSHOT}.tar.bz2 > elif [[ ${PV} != *9999* ]] ; then >- unpack gcc-${GCC_RELEASE_VER}.tar.bz2 >+ if tc_version_is_between 5.5 6 || tc_version_is_between 6.4 7 || tc_version_is_at_least 7.2 ; then >+ unpack gcc-${GCC_RELEASE_VER}.tar.xz >+ else >+ unpack gcc-${GCC_RELEASE_VER}.tar.bz2 >+ fi > # We want branch updates to be against a release tarball > if [[ -n ${BRANCH_UPDATE} ]] ; then > pushd "${S}" > /dev/null >-- >2.14.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 592060
:
444064
|
444066
|
444082
|
444146
|
444148
|
444250
|
445698
|
470640
|
471560
|
477544
|
488908
|
489108
|
489110
|
489112
|
489216
|
489690
|
489692
|
489694
|
489696
|
490036