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: a07f3367d7,b2c4d98cbc17f0a9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: A proposal for Debian policy for Ada References: <87aarzd14c.fsf@ludovic-brenta.org> <198miwzl97pnl$.1onmpwoadjr1p.dlg@40tude.net> <87632ncxjg.fsf@ludovic-brenta.org> Date: Mon, 17 May 2010 02:01:27 -0400 Message-ID: <82iq6n2hjc.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:GcEi1uIwE0DqAFx03dKd1oqJ5aI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 15f424bf0dc5be197caa705346 Xref: g2news2.google.com comp.lang.ada:11674 Date: 2010-05-17T02:01:27-04:00 List-Id: Ludovic Brenta writes: > "Dmitry A. Kazakov" writes: >> On Sun, 16 May 2010 22:48:19 +0200, Ludovic Brenta wrote: >> >> 5.3.6 seems to refer to the Ada library being packaged. What I mean is a >> way to reference to an external C library, e.g. libgdk_pixbuf in the >> example. > > Ah, I had not caught that subtlety. There are currently 2517 -dev > packages in the libdevel section of Debian unstable. Are you suggesting > that each -dev package for the C language should provide a GNAT Project > file? That would be the best thing for Ada users :). But then Perl, Python etc would demand equal treatment. > Or that each -dev package for an Ada library should provide an > individual project file for each C library referenced? That seems like > a *lot* of work. Perhaps 'gcc -fdump-ada-spec' could be enhanced to generate the corresponding gpr file (or maybe it does that already?). >> project LIBRARY is >> type Library_Kind_Type is ("static", "relocatable"); >> Library_Kind : Library_Kind_Type := >> external ("Library_Type", "relocatable"); >> for Library_Kind use Library_Kind; >> for Library_Name use "LIBRARY"; -- Valid for either choice >> for Library_Dir use "/usr/lib"; -- Valid for either choice >> ... >> for Externally_Built use "true"; >> end LIBRARY; > > That's a nice suggestion. I'll try to implement that for the release > after Squeeze. We can do this now for individual packages; the only thing the policy needs is a standard name for the "Library_Type" environment variable. -- -- Stephe