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!feeder.eternal-september.org!aioe.org!.POSTED.DqfVRKhZuK7nKGFKV76LpA.user.gioia.aioe.org!not-for-mail From: =?UTF-8?Q?Markus_Sch=c3=b6pflin?= Newsgroups: comp.lang.ada Subject: Installing ada-mode 6.2.1 on Debian Buster Date: Fri, 15 Nov 2019 11:30:02 +0100 Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: DqfVRKhZuK7nKGFKV76LpA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 X-Mozilla-News-Host: news://nntp.aioe.org:119 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57571 Date: 2019-11-15T11:30:02+01:00 List-Id: This turned out to be more difficult than expected, so I decided to share my notes on this here. It might be of use to someone. How to install Emacs Ada mode 6.2.1 on Debian Buster: ----------------------------------------------------- Prerequisits: apt-get install gnat apt-get install libgnatcoll-xref18-dev Download & install Ada mode 6.2.1 from GNU ELPA via the Emacs package manager. (Side note: Emacs has a bug preventing it to download anything from GNU ELPA, you need (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") in your .emacs. See https://www.reddit.com/r/emacs/comments/cdei4p/failed_to_download_gnu_archive_bad_request/ for more.) Now, open a shell and go into the directory where Ada mode has been installed (e.g. ~/.emacs.d/elpa/ada-mode-6.2.1). * Fix the line-ending of the two files wisi-fringe.el and gpr-query.el: dos2unix gpr-query.el ; dos2unix ../wisi-2.2.1/wisi-fringe.el. * Comment out the line with "gnat_util"; in the file gpr_query.gpr. * Make sure gprbuild will use the correct compilers, run gprconfig to select GNAT for Ada and GNATGCC for C. This is especially important if Clang is installed as well. * Run build.sh. It should compile everything without errors, but it will fail on installation. * Manually install the files gpr_query, all *.exe, and ada_lr1_parse_table.txt into /usr/local/bin/ or another directory on PATH. -- Markus