caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Chet Murthy <murthy.chet@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] oasis bug with dependencies?
Date: Fri, 15 Apr 2016 12:21:01 -0700	[thread overview]
Message-ID: <CA++P_gdSFa=Kwf+WDd5TBbi46tTADjsZU6rKjxtGe9G5CFv=Uw@mail.gmail.com> (raw)
In-Reply-To: <CA++P_gfQxTwKpK4obJSF=iVgtLuoTcODawngaFUJ47t1Mv9qzg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]

Ah.  A little more detail (maybe I'm on the way to debugging ... but really
new to this code):

I find that the problem appears to be in the _tags file.  Relevant section
reproduced below:

# Executable foo_test
"foo_test.native": pkg_bitcoin
"foo_test.native": pkg_str
"foo_test.native": use_foolib
<*.ml{,i,y}>: pkg_bitcoin
<*.ml{,i,y}>: pkg_str
<*.ml{,i,y}>: use_foolib
# OASIS_STOP

the lines with "<*.ml{,i,y}>" and pkg_bitcoin, use_foolib are produced when
the Executable is uncommented.  And if I comment out those two lines, I get
the expected (it seems to me, correct) behaviour (which is that when
building foo.ml, "-package bitcoin" should not be applied.

--chet--


On Fri, Apr 15, 2016 at 12:12 PM, Chet Murthy <murthy.chet@gmail.com> wrote:

>
> Hi, I think I've found an oasis bug.
>
> (*) ocaml 4.02.3
> (*) oasis 0.4.5
>
> ==========================================
>
> In the attached little tarball, there's an _oasis file.  In that file,
> there's a library, "foolib", and an executable "foo_test".
>
> (1) foo_test depends on "bitcoin"; "foolib" does not
>
> (2) building the project with "foo_test" commented-out ends up -not-
> depending on "bitcoin" anywhere
>
> (3) with "foo_test" uncommented,the build of "foolib"'s modules (foo.ml)
> has "-package bitcoin".
>
> In short, it appears that the deps of foo_test are leaking to foolib, even
> though foolib doesn't depend on foo_test (it's the other way around).
>
> Hope this is clear.
>
> Cheers,
> --chet--
>
>
>

[-- Attachment #2: Type: text/html, Size: 2500 bytes --]

      reply	other threads:[~2016-04-15 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15 19:12 Chet Murthy
2016-04-15 19:21 ` Chet Murthy [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='CA++P_gdSFa=Kwf+WDd5TBbi46tTADjsZU6rKjxtGe9G5CFv=Uw@mail.gmail.com' \
    --to=murthy.chet@gmail.com \
    --cc=caml-list@inria.fr \
    /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 NNTP newsgroup(s).