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 X-Received: by 2002:ad4:4e6b:: with SMTP id ec11mr23169459qvb.121.1574016331698; Sun, 17 Nov 2019 10:45:31 -0800 (PST) X-Received: by 2002:aca:4891:: with SMTP id v139mr14220363oia.175.1574016331455; Sun, 17 Nov 2019 10:45:31 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!j16no9049595qtl.0!news-out.google.com!p4ni970qtu.1!nntp.google.com!j16no9049589qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 17 Nov 2019 10:45:31 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.77.182.20; posting-account=W2gdXQoAAADxIuhBWhPFjUps3wUp4RhQ NNTP-Posting-Host: 76.77.182.20 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Installing ada-mode 6.2.1 on Debian Buster From: Stephen Leake Injection-Date: Sun, 17 Nov 2019 18:45:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3438 X-Received-Body-CRC: 2477963051 Xref: reader01.eternal-september.org comp.lang.ada:57578 Date: 2019-11-17T10:45:31-08:00 List-Id: On Friday, November 15, 2019 at 2:30:05 AM UTC-8, Markus Sch=C3=B6pflin wro= te: > apt-get install gnat > apt-get install libgnatcoll-xref18-dev I have been testing on Debian with the GNAT Community install, because gprb= uild was not in the Debian package. I gather it is now, so I'll switch to t= hat. > Now, open a shell and go into the directory where Ada mode has been insta= lled=20 > (e.g. ~/.emacs.d/elpa/ada-mode-6.2.1). >=20 > * Fix the line-ending of the two files wisi-fringe.el and gpr-query.el: >=20 > dos2unix gpr-query.el ; dos2unix ../wisi-2.2.1/wisi-fringe.el. As mentioned on the ada-mode mailing list (https://lists.nongnu.org/mailman= /listinfo/ada-mode-users) this should not matter, but does not hurt, and th= e files will have Unix line endings in the next Gnu ELPA release. > * Comment out the line with "gnat_util"; in the file gpr_query.gpr. This is a difference between GNAT versions. My development version also has= deleted the "gnat_util". > * Make sure gprbuild will use the correct compilers, run gprconfig to sel= ect=20 > GNAT for Ada and GNATGCC for C. This is especially important if Clang is= =20 > installed as well. I'll mention this in ada-mode.info. Can you post a little more detail about= what to look for in gprconfig output? That is, by default build.sh just wo= rks; how can you tell if gprconfig needs special attention? =20 > * Run build.sh. It should compile everything without errors, but it will = fail=20 > on installation. By default it installs executables in the same directory as the "gnat" bina= ry. Thus it needs root privs (as any system install does). > * Manually install the files gpr_query, all *.exe, and ada_lr1_parse_tabl= e.txt=20 > into /usr/local/bin/ or another directory on PATH. Simpler is to edit build.sh to add "--prefix " to the gprinstall line= . I gather it would be helpful to add a command line option to build.sh for= this. =20 Thanks for the feedback. After installing, is ada-mode working well for you? Have you noticed error = recovery in the parser? -- Stephe