ocaml/dune

[dune-configurator] PKG_CONFIG_PATH is ignored on macos

開放

#10,805 建立於 2024年8月6日

 (3 則留言) (0 個反應) (0 位負責人)OCaml (478 個分叉)github user discovery
help wantedmacos

倉庫指標

星標
 (1,882 顆星)
PR 合併指標
 (平均合併 1天 20小時) (30 天內合併 345 個 PR)

描述

Expected Behavior

When providing custom PKG_CONFIG_PATH variable dependencies

Actual Behavior

PKG_CONFIG_PATH is ignored in favor of brew https://github.com/ocaml/dune/blob/main/otherlibs/configurator/src/v1.ml

Reproduction

  1. Get a mac
  2. Add a folder with custom pkg-config, e.g. vcpkg install libpng
  3. Run PKG_CONFIG= dune build
  4. Observe error

Specifications

  • Version of dune (output of dune --version): 3.16.0
  • Version of ocaml (output of ocamlc --version): 5.2.0
  • Operating system (distribution and version): MacOS 14.5

Additional information

Despite the code looks correct it is for some reason still not running, would be also good to log the modified PKG_CONFIG_PATH

貢獻者指南