[MacPorts] #61987: gobject-introspection @1.60.2_4 : g-ir-scanner producing executable with linking problems

MacPorts noreply at macports.org
Wed Jan 6 15:24:25 UTC 2021


#61987: gobject-introspection @1.60.2_4 : g-ir-scanner producing executable with
linking problems
------------------------------------+--------------------
  Reporter:  serge-cohen            |      Owner:  (none)
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.6.4
Resolution:                         |   Keywords:
      Port:  gobject-introspection  |
------------------------------------+--------------------

Comment (by ryandesign):

 We did already report the problem upstream and they did not respond. Our
 main bug for the issue was #58574 and the upstream bug is
 https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/335.

 `g-ir-scanner` must use `DYLD_LIBRARY_PATH` in order to find and use just-
 built libraries, but it erroneously adds system directories to that
 variable as well (anything the build used as `-L` flags) which is what
 causes the issue you experienced.

 They "fixed" it by switching to using `DYLD_FALLBACK_LIBRARY_PATH`, but
 that is the wrong fix and must be reverted.

 We have reverted that change in MacPorts and made additional changes that
 are supposed to ensure that system directories don't end up in
 `DYLD_LIBRARY_PATH` while local build directories do.

 We have already had several cases where we thought we had it fixed and
 then a new situation was discovered that we hadn't considered. You may
 have found another such situation so we need more details about your
 build. Attach a build log if you can.

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


More information about the macports-tickets mailing list