caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] oasis bug with dependencies?
@ 2016-04-15 19:12 Chet Murthy
  2016-04-15 19:21 ` Chet Murthy
  0 siblings, 1 reply; 2+ messages in thread
From: Chet Murthy @ 2016-04-15 19:12 UTC (permalink / raw)
  To: caml-list


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]

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 #1.2: Type: text/html, Size: 1131 bytes --]

[-- Attachment #2: oasisbug.tar --]
[-- Type: application/x-tar, Size: 10240 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] oasis bug with dependencies?
  2016-04-15 19:12 [Caml-list] oasis bug with dependencies? Chet Murthy
@ 2016-04-15 19:21 ` Chet Murthy
  0 siblings, 0 replies; 2+ messages in thread
From: Chet Murthy @ 2016-04-15 19:21 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-15 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-15 19:12 [Caml-list] oasis bug with dependencies? Chet Murthy
2016-04-15 19:21 ` Chet Murthy

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).