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,d99dc61bb22990d2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!news-xfer.nntp.sonic.net!posts.news.sonic.net!nnrp0.nntp.sonic.net!not-for-mail Message-ID: <4d75245e$0$22170$742ec2ed@news.sonic.net> From: R Tyler Croy Subject: Re: Packaging and linking shared Ada libraries Newsgroups: comp.lang.ada References: <4d746dde$0$10593$742ec2ed@news.sonic.net> Date: 07 Mar 2011 18:30:54 GMT Organization: Sonic.Net NNTP-Posting-Date: 07 Mar 2011 18:30:54 GMT NNTP-Posting-Host: 9f1c876d.news.sonic.net X-Trace: DXC=oKb7E[V[3nRc>C@bgAFihVm4K\QM1CV^P1OYf0H`?;XQmC5QjG4S3c]]C\c48cD:I[l7@C]V X-Complaints-To: abuse@sonic.net Xref: g2news2.google.com comp.lang.ada:18923 Date: 2011-03-07T18:30:54+00:00 List-Id: Simon Wright wrote: > R Tyler Croy writes: > >> I'm trying to figure out how to package up and use XML/Ada for >> openSUSE and I'm having a bit of trouble trying to figure what >> actually needs to be packaged. >> >> Right now I'm packaging up the .so and the .ads files and trying to >> use them but to no avail: >> >> tyler@spinach:~/source> gnatmake -aI/usr/include/xmlada -aO/usr/lib64 test.adb -largs -lxmlada >> gnatmake: "dom-readers.adb" not found >> tyler@spinach:~/source> > > Tyler, > > Is there any reason why you don't just > ./configure > make > make install > ? > > I end up with (more or less) the following under $prefix: > > - include/xmlada/ > - lib/ > - lib/gnat/ > - lib/xmlada/relocatable/ > - lib/xmlada/static/ > > and the GPRs are exactly where GNAT built for $prefix expects them. The problem is that the upstream (from AdaCore) packages don't "cooperate" with overriding variables for building and installing. openSUSE has some packaging guidelines that the build scripts for XML/Ada and GPRbuild don't "fit" with unfortunately. Looking at some of Ludovic's packages, he's actually defined a debian build .gpr file and adds a Makefile to use that .gpr to build, then place the files he needs in the appropriate directories. I'm following a similar approach. > I'm not sure of the exact rules for when the Ada source files in the > library require .adb's, but certainly they're needed for generics and > where the spec uses pragma Inline. I think you need to make sure the > corresponding .alis are read-only. > > A good deal of the work is done by library gpr's, see > http://www.adacore.com/wp-content/files/auto_update/gprbuild-docs/html/gprbuild_ug.html#Library-Projects Thanks for the link, I hadn't seen it specifically, but some of the things it mentions I've seen elsewhere on the interwebs :) Cheers -- - R. Tyler Croy -------------------------------------- Code: http://github.com/rtyler