[MacPorts] #69806: gobject-introspection @1.78.1 seems to be broken on Tiger: dyld: Library not loaded: @loader_path/libgirepository-1.0.1.dylib

MacPorts noreply at macports.org
Tue Apr 30 00:31:38 UTC 2024


#69806: gobject-introspection @1.78.1 seems to be broken on Tiger: dyld: Library
not loaded: @loader_path/libgirepository-1.0.1.dylib
------------------------------------+--------------------
  Reporter:  barracuda156           |      Owner:  (none)
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.9.3
Resolution:                         |   Keywords:  tiger
      Port:  gobject-introspection  |
------------------------------------+--------------------

Comment (by ryandesign):

 Replying to [comment:6 ballapete]:
 > {{{
 > dyld: Library not loaded: @loader_path/libgirepository-1.0.1.dylib
 >   Referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_gnome_gobject-introspection/gobject-
 introspection/work/build/tools/g-ir-compiler
 >   Reason: image not found
 > }}}

 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_gnome_gobject-introspection/gobject-
 introspection/work/build/tools/g-ir-compiler wants to use
 @loader_path/libgirepository-1.0.1.dylib and it is not found.
 `@loader_path` expands to the path of the directory of whatever is doing
 the loading, in this case g-ir-compiler, so the library it is looking for
 is
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_gnome_gobject-introspection/gobject-
 introspection/work/build/tools/libgirepository-1.0.1.dylib. Does that
 library exist? If not, does the library exist at a different path in the
 work directory? If it's at a different path, that shows us that the
 install name of the library is wrong. Which we already know: we don't
 install libraries with `@loader_path` in their install names, so perhaps
 the build knowingly builds things with wrong install names and fixes them
 up later with `install_name_tool`. Of course, if the build is going to run
 programs like `g-ir-compiler` during the build that link with just-built
 libraries, the install names either have to be correct for the locations
 in the build tree or typically `DYLD_LIBRARY_PATH` just has to be set to
 the directory containing the libraries. I see that the build phase sets
 `DYLD_LIBRARY_PATH='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_gnome_gobject-introspection/gobject-
 introspection/work/build/girepository'` and it's in a `platform darwin 8`
 block in the Portfile with a comment that this is only done because 10.4
 doesn't support rpath which the build would presumably use on 10.5. Is the
 library in that path? If not, then this Tiger-specific code in the
 Portfile needs adjusting.

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


More information about the macports-tickets mailing list