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!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada package registry? Date: Sun, 31 Jan 2016 08:51:27 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <02241ec4-0f95-4f63-9abc-092f167eb59e@googlegroups.com> NNTP-Posting-Host: LNA1TkTuMxfwTHzeJdi6nA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:29298 Date: 2016-01-31T08:51:27+01:00 List-Id: On 2016-01-30 23:14, Tero Koskinen wrote: > Usually the repositories are maintained in "wiki"-style and anyone can > update the package details (within certain limits). This causes some > security concerns/implications, but in general there is not that much > abuse and the repositories work well enough. > > The package repository management tool is used like this: > > $ language_package_mananager install X > Downloading dependencies for 'X', please wait a while... > Downloading X... > Package 'X' installed! > $ Yes, the problem is to have it working. > Once the package (a library usually) is installed (to your home > directory), you can link it to your program and simply use it. No, that the point. It cannot be installed in your home directory. It must be in the directories mandated by the target system policy. E.g. for Debian Linux: https://people.debian.org/~lbrenta/debian-ada-policy.html#Files-provided-by-the-_002ddev-package > People using other programming languages have managed to create > these package repositories, so it is a shame if Ada programmers > cannot manage to do the same. I guess these are scripting languages and pure packages having no access to the system environment otherwise than through the language run-time. There is no problem to do same for GNAT. That is not Ada case. Most Ada packages do access platform-specific non-Ada libraries. Pure Ada packages face no problem, if gpr file is provided. > You of course need to solve many problems related to this domain, > but they are already solved by others, so one should be able to > copy the design and just do the Ada implementation. > > On the other hand, one could think that the package management > systems provides by Linux distributions and BSD operating systems > are enough. But generally, these are not that flexible. But you cannot work around them. E.g. GtkAda must recursively install Gtk, GObject, LibC, whatever, which are target system's packages, under the target system's repository. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de