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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,73a6dbe06e1250ce X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeder3.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: gnatmake: "ada.numerics.real_arrays" is not a predefined library unit References: <480c8879$0$4768$9b4e6d93@newsspool3.arcor-online.net> <2c24b560-608c-4a10-a64c-7dff14b19e21@u12g2000prd.googlegroups.com> <87bq436t1l.fsf@willow.rfc1149.net> Date: Mon, 21 Apr 2008 21:35:26 +0200 Message-ID: <87zlrnatmp.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:ZjD7eWwTRAc0Nvkxo+7MpFjLQbA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=h=n@Q2AP8CllN]RWbE^=4DdV@`_`D0 Samuel Tardieu writes: >>>>>> "Ludovic" == Ludovic Brenta writes: > > Ludovic> It's been in the back of my mind for a few months that I > Ludovic> should build a shared libgnala.so, package it separately from > Ludovic> libgnat-4.3.so, and arrange for it to depend on > Ludovic> lapack. Patches to that effect are, of course, welcome and > Ludovic> will be gratefully accepted. > > Maybe we can work out the shared/static issue in GCC sources. Patches > welcome too there :) Definitely; this is an area where all distributions would benefit. However, Debian is a bit peculiar since it patches the library building process (in gcc/ada/Makefile.in) heavily so as to build both the zero-cost and setjump/longjump versions of the library. So, if I produce a patch, someone will have to adjust it for upstream GCC. > Concerning the distribution, why separate libgnala.so from libgnat? > You don't need a dependency on lapack/blas, only a "suggests" or > "recommends" if people want to build applications requiring annex g > support. As far as compiled applications are concerned, the > lapack/blas dependency will be recored as part of a regular Debian > dependency. "Suggests" or "Recommends" is not good enough because it would foil the automatic dependency management Debian is renowned for. The proper solution is to place libgnala.so in a separate package (suggested or recommended by gnat-4.3) but that Depends on (i.e. requires) lapack to be installed. This way, if someone builds a package where they use Annex G, their package will automatically depend on libgnala.so and, indirectly, on lapack. With your proposal, this would not happen as lapack would be only recommended. -- Ludovic Brenta.