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

MacPorts noreply at macports.org
Fri Nov 20 15:33:22 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):

 FYI the stubborn ports I note all use "@rpath" for the in-build library,
 which is why this issue exists in the first place. The @rpath is replaced
 by the full path during install. GO-I would produce the same GIR file for
 these ports regardless of our current fixes.

 @idryzhov's PR fixes this issue, but it is -very- dangerous to assume that
 the general install library is `${mp_prefix}/lib`. The note in the code at
 this point reads [SIC]:
 {{{
                 # no way to resolve @rpath and the like, since we can't
                 # make a reasonable assumpion of the install libdir
 }}}

 The "correct" fix is to not use `@rpath` in the first place when using
 GO-I scanner. About 95% of the ports that produce GIR files that I have
 installed don't use `@rpath`. The ones that do that I've reviewed this far
 all use `meson` for building ... is using `@rpath` a default setting
 somehow? I've looked through these project's source and see nothing
 obvious to indicate that `@rpath` is being used or not. I've never used
 meson before, so I have no idea what to do here to fix the issue. Note
 that such fixes are on a project-by-project basis, which is quite a PITA,
 even if it is the correct way to go here. Hmmm....

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


More information about the macports-tickets mailing list