Gentoo Archives: gentoo-dev

From: "Luke A. Guest" <laguest@×××××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Integrating Ada into toolchain.eclass, again
Date: Fri, 19 May 2017 19:08:43
Message-Id: 591F42AC.1020200@archeia.com
1 Hi,
2
3 I posted a bug back in August,
4 https://bugs.gentoo.org/show_bug.cgi?id=592060, to discuss adding Ada
5 support into Gentoo's toolchain.eclass. The reasons for this are twofold:
6
7 1) GNAT is supplied with the source of GCC and should be available in
8 Gentoo's sys-devel/gcc with USE=ada
9 2) Automatically gain cross compilers with sys-devel/crossdev, also has
10 been tested with my patch.
11
12 I saw a few new dev-ada packages being added to the tree yesterday. I
13 don't check this ml often, but just checking and seeing the various
14 discussions on Ada. I wonder why my bug has been ignored, surely the bug
15 tracker should've been checked first by Alfredo? He basically wanted
16 this as well.
17
18 ** Current problems **
19
20 The above link provides other links and discussion including an error
21 I'm getting compiling GCC 6.x within emerge only. There are new
22 bootstraps for amd64 (so far) also.
23
24 ** GNAT GPL **
25
26 I think that if anyone wants GNAT GPL versions, they should be installed
27 in /opt and bought into a person's environment manually by the people
28 using these compilers. I only really consider this compiler useful as a
29 means for testing source that fails with bug boxes using the FSF GCC due
30 to the fact that software built with GNAT GPL is automatically GPL v3.
31
32 ** Roadmap **
33
34 I would suggest the following, but is fluid as it starts off really
35 messy due to cyclic dependencies:
36
37 * Add my patch to the toolchain.eclass to get at least part of the
38 problem sorted out, a start.
39 * Build bootstraps for the other platforms and at various compiler
40 versions, this is simple enough to do.
41 * Purge all current Ada/GNAT stuff from the portage tree as it's really
42 old and tbh, a mess.
43 * Start discussing the problem of a Gentoo Ada policy, this is mentioned
44 by Steve Arnold in the above link, he has started on an eclass for gnatmake.
45 * For 4.9.x and early 5.x compilers, add gnatutils, this is removed in
46 later versions of the tools as apparently it's not required anymore.
47 * gprbuild needs to be bootstrapped by makefile where it builds it's own
48 gnatutils and xmlada
49 * eselect plugin for applications built with GNAT, they will need to be
50 slotted where they use shared libs which were also Ada sources.
51 * gpr.eclass so other ebuilds can use the various gpr tools for building.
52 * gnatcoll, xmlada, asis ebuilds added to dev-ada
53 * gprbuild really needs to be rebuilt using the installed tools and libs.
54 * other libs.
55 * gps ebuild.
56 * Extend USE=ada to other Gentoo targets, more gnatboot strap compilers.
57
58 ** Bootstraps **
59
60 Steve has bootstraps built for amd64, x86, arm for gcc-4.9, I have added
61 5.4 and 6.3 for amd64 in
62 https://www.dropbox.com/sh/stljjvpj9201n8t/AAAzVG67ppskZ9UKiWTWz9Q_a?dl=0,
63 I've not looked into a canadian cross with Gentoo yet, it's on the todo
64 list I suppose.
65
66 Thoughts?
67
68 Thanks,
69 Luke.

Replies

Subject Author
Re: [gentoo-dev] Integrating Ada into toolchain.eclass, again Peter Stuge <peter@×××××.se>
[gentoo-dev] Re: Integrating Ada into toolchain.eclass, again Michael Haubenwallner <haubi@g.o>