tech-pkg archive

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

Re: ocaml, dune, environment, PKG_CONFIG in the environment



On Sun, Nov 24, 2024 at 09:42:04AM -0500, Greg Troxel wrote:
 > I just committed a kludge to ocaml-lablgtk3 that lets it build.
 > Essentially, dune seems to choke if PKG_CONFIG is defined in the
 > environment.  That's probably a dune bug to be fixed, but for now
 > avoiding that seems to build a working package.

I can't replicate the problem. What are the symptoms? What is
PKG_CONFIG being passed as? If you unset it, dune uses "pkg-config",
which is fine for pkgsrc. But it seems like for it to be failing we
must be passing something wrong, and we shouldn't do that.

 > 1) Looking at lang/ocaml/ocaml.mk, I notice that the build envrironment is
 > not set in one of the do-build overrides, and that seems like a bug.  So
 > I am inclined to commit the following as an "obvious bugfix".  Comments?

That was obviously wrong, yeah.

 > and I am more or less inclined to just put that into ocaml.mk, on the
 > theory that this is a dune bug, not a lablgtk3 bug.

Please don't until we understand what's going on...

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


Home | Main Index | Thread Index | Old Index