[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 08:09:44 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 ballapete):
Replying to [comment:7 ryandesign]:
> Replying to [comment:6 ballapete]:
> 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?
Yes, it's out there, in a place without the `tools subdirectory`
{{{
105252678 560 -rwxr-xr-x 1 root admin 282952 0 Apr 05:11:
/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/libgirepository-1.0.1.dylib
}}}
The executables built so far are
{{{
105184752 8 -rwxr-xr-x 1 macports admin 3964 9 Apr 20:49:
./gobject-introspection/work/build/tools/g-ir-annotation-tool
105252683 440 -rwxr-xr-x 1 root admin 221404 0 Apr 05:11:
./gobject-introspection/work/build/tools/g-ir-compiler
105184753 8 -rwxr-xr-x 1 macports admin 3943 9 Apr 20:49:
./gobject-introspection/work/build/tools/g-ir-doc-tool
105252698 96 -rwxr-xr-x 1 root admin 48536 0 Apr 05:11:
./gobject-introspection/work/build/tools/g-ir-generate
105187816 48 -rwxr-xr-x 1 root admin 22772 9 Apr 21:06:
./gobject-introspection/work/build/tools/g-ir-inspect
105184751 8 -rwxr-xr-x 1 macports admin 3955 9 Apr 20:49:
./gobject-introspection/work/build/tools/g-ir-scanner
}}}
Their `Mach-O executable`s have:
{{{
tiger pete 250 /\ otool -L g-ir-compiler
g-ir-compiler:
@loader_path/libgirepository-1.0.1.dylib (compatibility version
2.0.0, current version 2.0.0)
/opt/local/lib/libffi.8.dylib (compatibility version 10.0.0,
current version 10.4.0)
/opt/local/lib/libglib-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/opt/local/lib/libgobject-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/opt/local/lib/libgio-2.0.0.dylib (compatibility version 7801.0.0,
current version 7801.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.12)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
tiger pete 251 /\ otool -L g-ir-generate
g-ir-generate:
@loader_path/libgirepository-1.0.1.dylib (compatibility version
2.0.0, current version 2.0.0)
/opt/local/lib/libglib-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.12)
tiger pete 252 /\ otool -L g-ir-inspect
g-ir-inspect:
@loader_path/libgirepository-1.0.1.dylib (compatibility version
2.0.0, current version 2.0.0)
/opt/local/lib/libglib-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.12)
}}}
> 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
It comes from the setting
{{{
build.env-append DYLD_LIBRARY_PATH=${workpath}/build/girepository
}}}
which expands to
`/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`, exactly where
`libgirepository-1.0.1.dylib` is. It has:
{{{
tiger pete 256 /\ otool -L libgirepository-1.0.1.dylib
libgirepository-1.0.1.dylib:
@loader_path/libgirepository-1.0.1.dylib (compatibility version
2.0.0, current version 2.0.0)
/opt/local/lib/libglib-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/opt/local/lib/libgobject-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/opt/local/lib/libgmodule-2.0.0.dylib (compatibility version
7801.0.0, current version 7801.4.0)
/opt/local/lib/libgio-2.0.0.dylib (compatibility version 7801.0.0,
current version 7801.4.0)
/opt/local/lib/libffi.8.dylib (compatibility version 10.0.0,
current version 10.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.12)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69806#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list