public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Andy Li <andy@onthewings.net>
To: cygwin-apps@cygwin.com
Subject: Re: how to use opam for package builds?
Date: Wed, 29 Aug 2018 17:19:00 -0000	[thread overview]
Message-ID: <CAM-5HMuby2-CFcN=5FiQBs28OdcKCQLmSjVhzPaph+7Fv-zOcw@mail.gmail.com> (raw)
In-Reply-To: <u0fdod12ro28bnc29e5590gun6c4n0od0v@4ax.com>

Hi,

On Wed, Aug 29, 2018 at 11:47 PM Andrew Schulman <schulman.andrew@epa.gov>
wrote:

> (1) I can't get "opam init" to complete. It hangs after "synchronized from
> https://opam.ocaml.org", until I interrupt it:
>

It should work, just wait a little longer. For me, it took a bit more than
three minutes to complete.
I'm not sure why it is that slow though.


> (2) Even if I get this to work, I don't think it's the right thing to do
> because it's setting up persistent opam configuration in my home directory,
> which I don't think is the right place for packaging. Should there be some
> global opam configuration, that all packaging scripts that rely on opam
> would use? If so, where should that go?


Indeed the proper way is to package each ocaml library as cygwin packages
and then the orpie package just build depends on them instead of calling
opam.
There are several already packaged ocaml libraries. You may study their
cygport files in
https://github.com/cygwinports?utf8=%E2%9C%93&q=ocaml&type=&language=

Hope it helps.

Best,
Andy

      reply	other threads:[~2018-08-29 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-29 15:47 Andrew Schulman
2018-08-29 17:19 ` Andy Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM-5HMuby2-CFcN=5FiQBs28OdcKCQLmSjVhzPaph+7Fv-zOcw@mail.gmail.com' \
    --to=andy@onthewings.net \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).