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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Newsgroups: comp.lang.ada Subject: Re: Introducing Comfignat Date: Mon, 12 Aug 2013 11:03:57 +0200 Message-ID: <1376298237.5037.16.camel@speedy.xn--rombobjrn-67a.se> References: <1375896729.30906.2.camel@speedy.xn--rombobjrn-67a.se> <20130810175217.04eb4dc639e40f35e96be212@iki.fi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EhXH2CuWe7IbYGkQU0bN" X-Trace: individual.net bd4/cD/Jw8VfkNPJ4D7pWgiMfMV2CxK8MJ8iFh0uUvMMw8boGJ Cancel-Lock: sha1:+jvWU4bIinZppF2nTm5pXH9TeQo= In-Reply-To: <20130810175217.04eb4dc639e40f35e96be212@iki.fi> X-Mailer: Evolution 3.8.4 (3.8.4-2.fc19) Xref: news.eternal-september.org comp.lang.ada:16819 Date: 2013-08-12T11:03:57+02:00 List-Id: --=-EhXH2CuWe7IbYGkQU0bN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Tero Koskinen wrote: > On Wed, 07 Aug 2013 19:32:09 +0200 > Bj=C3=B6rn Persson wrote: >=20 > > Last Friday I published the first release of Comfignat. Comfignat is > > common, convenient, command-line-controlled compile-time configuration > > of software built with the GNAT tools on Unix-like operating systems. >=20 > I tried to apply comfignat for my Ahven project[1]. Thank you. This should make it easy to package Ahven in Fedora, and then we can run the test suites of Anet, which is now packaged without the tests, and Alog and the Trusted Key Manager, which I want to package. > While it > was mostly straightforward, I have some questions: >=20 > How do you control what goes to staging directory? >=20 > For me, only two source files (out of ~20 or so) goes there: > % find gnat/stage -type f > gnat/stage/usr/local/share/gpr/ahven.gpr > gnat/stage/usr/local/include/ahven/ahven.ads > gnat/stage/usr/local/include/ahven/ahven.adb > gnat/stage/usr/local/lib/ahven/ahven.ali > gnat/stage/usr/local/lib/libahven.so.24 > % GPRbuild or Gnatmake copies the source files. It's supposed to be only those files that are needed for compiling code that uses the library, that is the specifications of the interface packages and those bodies that contain generics or inlined subprograms. Your build project says =E2=80=9Cfor Library_Interface use ("Ahven");=E2=80=9D, so the package Ahve= n is the only interface package. It contains a generic procedure. Therefore ahven.ads and ahven.adb are staged. > Also, how do I get documentation (built by a separate Python tool) > there (easily)? Comfignat doesn't know about the Python tool so you'll need to write a rule in your makefile to invoke it. To get the documentation staged you should use the Make variables stage_mandir (for manpages), stage_infodir (for the Info format) and stage_miscdocdir (for other documentation).=20 Hopefully the tool allows you to specify an output directory, and then you can tell it to write directly to "${stage_miscdocdir}/ahven" for example. In case the tool is hardcoded to write the files in the source tree, your makefile will have to copy them to the appropriate directories. In that case the tool also doesn't support out-of-tree builds, but will write the files in the source tree even when a separate build directory is used, so you'll be copying from srcdir. The commands might be: mkdir -p "${stage_miscdocdir}/ahven" cp -RPp ${srcdir}/some/where/* "${stage_miscdocdir}/ahven/" A possible future extension to Comfignat might be additional makefile modules for some popular documentation generators. Bj=C3=B6rn Persson --=-EhXH2CuWe7IbYGkQU0bN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQIcBAABCgAGBQJSCKT9AAoJEOE4WtzWSuY/uQAQAIHG/uXTlVuBF9rdeHiREqH1 zFUwbC2P/YGATmtJrnXQebiQazmPRz1fqWGB3lvLmRoMpojauNUP9/BfVsLFRHfc LFrjc4NqfOnZ2TmIp5o9JvsVGklcBhUdjuEVOLb1OS5ArOxpcR8E5O7OJmIT0hfP A5golX0vvW8Pssycbb1gKWqoEgC788ZTZ1yHeI7aGLPUlvRheiPEFZ4nZlECzEI3 W03TPqqSsmM/Y4omWJR8drO8TNFuuyGnnpxpRvLHujVby3+yQ6WseSO/XR3fEKqA iir7A3ZUiRw7IWj4oMqGifyVTtBuUKkpxsps8CitHcIfXbbwHsrXwQ45M1MmL3BD 9zXXEaBUif5NIjh8rTh5X2R6lJztjF8BlpStN7G/KN5d53bxnTDATsHNSpsu0ivh OtctD4fAoy/dH4+dDlyXQFPPVW9HLmmtsrnPDGxXyXl7hvlLI/xS8TPq4lVToj/4 CaKRAeIVxoa6pgmIEXX0uKO74nztC7T3FNy8gEFefIzuFS44E+mxMd4cuo2YiYtm o/7EuBkxmWNaJakAj1VwrkXfvUqLyKTSXzIU5gsnMB6wQAPIMh6jpvQnzFwo4QC2 4BgEAxRvmiAIXYZLvZ+QokVC6rqP84hnxf5VaV0+daLOi+tz9GE0ROZKfTQHFVE2 7Lgh5oA6VjTIAk82Jv6G =q6xh -----END PGP SIGNATURE----- --=-EhXH2CuWe7IbYGkQU0bN--