From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Wed, 07 Jan 2015 14:19:09 +0100 From: =?windows-1252?Q?Thomas_L=F8cke?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT GPL is not shareware References: <87bnmetex4.fsf@ludovic-brenta.org> <4ae7f0d5-d681-4be9-95bc-b5e789b3ad40@googlegroups.com> <87tx06rve6.fsf@ludovic-brenta.org> <87lhlirpk0.fsf@ludovic-brenta.org> <79f3eff7-2b45-40ae-af94-fa9a17426d82@googlegroups.com> <87bnmd8mg2.fsf@ixod.org> <19cf9bc2-f8b9-4735-b427-7b070dda59da@googlegroups.com> <5162aeee-7273-401d-9d5a-b1ac60543fba@googlegroups.com> In-Reply-To: <5162aeee-7273-401d-9d5a-b1ac60543fba@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <54ad324e$0$287$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 86.48.41.194 X-Trace: news.sunsite.dk DXC=n:6IIG2IMHS[eoV[BRG`:]YSB=nbEKnk[EV`^>L:I^i]3ZOKe3?:>XQ=62O On 01/07/2015 01:23 PM, sbelmont700@gmail.com wrote: > Because you can't version control an environment variable. You can easily version control environment variables, if you just keep them local to your makefile / commands. You don't have to change your PATH systemwide to do a simple build. PATH=/path/to/special/gnat gnatmake stuff Put that in your makefile, and you now have a version controlled PATH. If you're worried about compiler versions, simply check for that in the makefile and break out if there's a version mismatch. This is exactly what proper build scripts are for. If Bob screws up then he will be notified and it's then up to him to fix his own system. Create a makefile.conf and have something like GNATMAKE_VERSION=4.8.2 and check for that. And just to be clear: I'm not advocating against gprbuild or gpr files, I'm merely pointing out that a well-written makefile would solve Joe and Bob's PATH/compiler woes. :o) -- Thomas Løcke