delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/09/02:56:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C8398385DC00
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=nexgo.de
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=Stromeko AT nexgo DOT de
From: ASSI <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: opam package should depend on ocaml-compiler-libs
References: <000501d634d2$5ebc65f0$1c3531d0$@cl.cam.ac.uk>
<6331360f-ee38-d41e-ab30-cca991c3cf5c AT SystematicSw DOT ab DOT ca>
<b50f918022fc427ca575a57197fe5e79 AT metastack DOT com>
<5b92a927-8db6-5e2b-8a57-ce91a7681fe9 AT SystematicSw DOT ab DOT ca>
Date: Tue, 09 Jun 2020 08:55:55 +0200
In-Reply-To: <5b92a927-8db6-5e2b-8a57-ce91a7681fe9@SystematicSw.ab.ca> (Brian
Inglis's message of "Mon, 8 Jun 2020 12:58:31 -0600")
Message-ID: <87a71cenic.fsf@Otto.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
X-VADE-STATUS: LEGIT
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Brian Inglis writes:
>>> Cygwin packages are granular and dependencies are functional: which of the
>>> Cygwin packages opam and opam-installer uses Cygwin package ocaml-
>>> compiler-libs, or does opam use another ocaml package to build?

>> I don't quite understand your question - opam is OCaml's package manager.

The question was if adding ocaml-compiler-libs to the opam requirements
is sufficient or if there are other packages that need to be added as
requirements for opam.  A second related question is if any of the
existing ocaml packages are missing dependencies, especially to
ocaml-compiler-libs.  Finally, since opam is split into two packages on
Cygwin, which of these needs the requirement.

>> It can either compile OCaml itself from sources or use the OCaml
>> installed by the system's package manager. In the second case, it
>> quite reasonably assumes that the OCaml which has been installed is
>> the one the OCaml developers intended which includes its
>> compiler-libs package. Given that opam depends on ocaml, it should
>> also depend on ocaml-compiler-libs, therefore.
>
> What you or the ocaml developers assume does not matter: what matters is how the
> package works. If you do not understand the question and can not provide the
> answer, I can see why the maintainer made his choice: he probably never used the
> packages, just ran any tests included.

That sounds unnecessarily harsh to me.  It would however be helpful if
the opam maintainer could have a look, since he is undoubtedly much more
aware of the issues on both the OCaml and Cygwin sides than any one of
us and could probably explain why the packages are built the way they
are.

> It appears that neither ocaml nor opam use ocaml-compiler-libs, otherwise the
> cygwin build and packaging software would include it, so which package in the
> ocaml suite actually binds the ocaml-compiler-libs to do its job, or does that
> package just provide dynamic libraries which are expected to be present when
> anyone runs ocaml programs?
> In which case users would be expected to manually install the package
> ocaml-compiler-libs.

It's not uncommon that these captive "package managers" assume a certain
environment without depending directly on it, so you'll indeed have to
manually add the pre-requisites as manual requirements for the Cygwin
package.  That doesn't solve the problem that usually language
environments that come with their own package manage don't quite play
nice with the system package manager, especially if the system is not
GNU/Linux.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019