Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Cc: Sergei Trofimovich <slyfox@g.o>
Subject: Re: [gentoo-dev] Changes to toolchain.eclass to better support gnat-gpl ebuild
Date: Thu, 02 Apr 2020 18:14:39
Message-Id: CAJ0EP40TAZ-4krhOaWO1Znpmq4pvqsPL8LxHqh5zY6Qd7ViV9w@mail.gmail.com
In Reply to: [gentoo-dev] Changes to toolchain.eclass to better support gnat-gpl ebuild by Alfredo Tupone
1 On Thu, Apr 2, 2020 at 6:52 AM Alfredo Tupone <tupone@g.o> wrote:
2 >
3 > I would like to have the attached changes reviewed and, if possible,
4 > applied to the toolchain eclass.
5
6 Please generate patches using git-format-patch, and send them using
7 git-send-email. This allows them to be easily reviewed in a mail
8 client.
9
10 > + if use ada; then
11 > + gcc_do_make "-C gcc gnatlib-shared"
12 > + ln -s gcc ../build/prev-gcc || die
13 > + ln -s ${CHOST} ../build/prev-${CHOST} || die
14 > + gcc_do_make "-C gcc gnattools"
15 > + fi
16
17 You probably want "is_ada" instead of "use ada" here. Otherwise,
18 portage will error if "ada" is not in IUSE.