[MacPorts] #61508: gobject-introspection generates invalid gir files on Big Sur

MacPorts noreply at macports.org
Fri Nov 20 16:57:52 UTC 2020


#61508: gobject-introspection generates invalid gir files on Big Sur
------------------------------------+----------------------
  Reporter:  idryzhov               |      Owner:  dbevans
      Type:  defect                 |     Status:  assigned
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.6.4
Resolution:                         |   Keywords:
      Port:  gobject-introspection  |
------------------------------------+----------------------

Comment (by michaelld):

 Thanks for that reminder ... yup ... I wrote that section of code ... I
 honestly barely recall doing so even just 9 months down the road! Here's
 my comment, which is still relevant & makes me think creating a split set
 of library parameters will do the trick for this `@rpath` issue, with much
 more robustness than what we have right now or what is proposed:
 {{{
 My hack is to note that any library being linked via GI here will
 require glib, which, at least in my testing, will always be the
 first non-build library linkage supplied (the first linkages are to
 the build directory, which is good because we always want those to
 come first). So, the new code loops through the provided
 library_paths (from the -L entries) and selects the first non-build
 one & uses it for the "library install directory". Not perfect, but
 in my testing it works very reliably for this specific case of how
 GI and the g-ir-scanner are used. It won't in general work, of
 course, but since the use case is very specific I'm willing to go with it.
 }}}

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


More information about the macports-tickets mailing list