[MacPorts] #60987: meson: not finding pkg-config when building universal when using cross-files

MacPorts noreply at macports.org
Wed Aug 12 00:52:32 UTC 2020


#60987: meson: not finding pkg-config when building universal when using cross-
files
-----------------------------+--------------------
  Reporter:  kencu           |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:
      Port:  meson graphene  |
-----------------------------+--------------------

Comment (by kencu):

 Thanks!

 So we now have several options, it appears:

 1. We could add non-volatile binaries to the existing cross-file:
 {{{
 [binaries]
 pkg-config = '/opt/local/bin/pkg-config'
 cmake = '/opt/local/bin/cmake'
 }}}
 1. We could add PKG_CONFIG to the environment.
 1. We could write a cross-file specing all the binaries, including CXX and
 CC etc for each build as an overlay.
 1. We could patch meson to {{{allow_default_for_cross=True}}}.

 All of those would appear to solve the problem -- which one is easiest and
 least likely to cause damage?

-- 
Ticket URL: <https://trac.macports.org/ticket/60987#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list