tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ocaml-findlib (was: Re: removing print/advi)



(moving to tech-pkg because I seem to have stepped on an
infrastructure problem)

On Wed, Feb 12, 2025 at 06:09:25AM +0000, David Holland wrote:
 > From what you say it's not clear that there's any value to keeping the
 > current version either though...
 > 
 > I'll take a look at it.

I am not getting that far, because camlimages won't build, and that
seems to be because /usr/pkg/lib/ocaml/ld.conf doesn't include
/usr/pkg/lib/ocaml/site-lib/stublibs, and consequently camlimages
can't find /usr/pkg/lib/ocaml/site-lib/stublibs/dllgraphics_stubs.so.

This also appears to be partly because camlimages is Olde and uses
omake; the dune metadata installed by ocaml-graphics (in
/usr/pkg/lib/ocaml/site-lib/graphics) includes a pointer to
../stublibs/dllgraphics_stubs.so that will probably make dune builds
work.

But it seems wrong to depend on that so that a plain ocamlfind
invocation doesn't work.

I am getting the impression that this ld.conf file should always
contain /usr/pkg/lib/ocaml/site-lib/stublibs, or at least do so once
ocaml-findlib gets installed.

To make this happen I think it's sufficient to add "stublibs" to the
list on line 13 of devel/ocaml-findlib/Makefile. I think at that point
it's also not necessary to revbump anything other than ocaml-findlib,
because anything that needed that dir there would be failing and
everything else should be unaffected. With luck. At least, it seems to
work for me.

Is this reasonable?

(Also, while doing this I note that we copy this ld.conf file as part
of buildlink setup, but don't prune it to restrict it to declared
dependencies; it would be nice to fix that sometime but it isn't
trivial.)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index