tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ocaml-findlib (was: Re: removing print/advi)
On Thu, Feb 13, 2025 at 05:02:22AM +0000, David Holland wrote:
> I am not getting that far, because camlimages won't build,
It builds for me, both manually, and in a pbulk, on 10.99.12/x64_64,
and in the last TNF build on 10:
http://shadow.netbsd.org/pub/pkgsrc/packages/reports/HEAD/NetBSD-10.0-x86_64/20250210.1231/meta/report.html
> and that
> seems to be because /usr/pkg/lib/ocaml/ld.conf doesn't include
> /usr/pkg/lib/ocaml/site-lib/stublibs,
That is all the same in my environment too.
> and consequently camlimages
> can't find /usr/pkg/lib/ocaml/site-lib/stublibs/dllgraphics_stubs.so.
...but I don't get an error for that.
What do you see?
> 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.)
This all sounds reasonable, but I don't know anything about this file
or how the stublibs are intended to be used :)
Thomas
Home |
Main Index |
Thread Index |
Old Index