[MacPorts] #60024: webkit2-gtk @2.26.2_0+minibrowser+x11 GIR Files Malformed

MacPorts noreply at macports.org
Tue Jan 28 15:38:32 UTC 2020


#60024: webkit2-gtk @2.26.2_0+minibrowser+x11 GIR Files Malformed
------------------------+-------------------------
 Reporter:  jmercouris  |      Owner:  kencu
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.1
 Keywords:              |       Port:  webkit2-gtk
------------------------+-------------------------
 Looking at {{{/opt/local/share/gir-1.0/WebKit2-4.0.gir}}}:

 {{{
 ...
   <namespace name="WebKit2"
              version="4.0"
              shared-
 library="@rpath/libwebkit2gtk-4.0.37.dylib, at rpath/libjavascriptcoregtk-4.0.18.dylib"
              c:identifier-prefixes="WebKit"
              c:symbol-prefixes="webkit">
 ...
 }}}

 As you can see, there are @rpath references. This is causing problems when
 trying to use gobject introspection. I get the following error: {{{Could
 not locate webkit_web_view_new:
 dlopen(@rpath/libjavascriptcoregtk-4.0.18.dylib, 9): image not found}}}

 I looked at another GIR file for a known working one:
 {{{/opt/local/share/gir-1.0/Gtk-3.0.gir}}}, that one looks like this:

 {{{
 ...
   <namespace name="Gtk"
              version="3.0"
              shared-
 library="/opt/local/lib/libgtk-3.0.dylib,/opt/local/lib/libgdk-3.0.dylib"
              c:identifier-prefixes="Gtk"
 ...
 }}}

 As you can see, no {{{@rpath}}}. This leads me to believe that there is a
 problem with the port. Also please note at the top of the GIR file it
 says:

 {{{
 <!-- This file was automatically generated from C sources - DO NOT EDIT!
 To affect the contents of this file, edit the original C definitions,
 and/or use gtk-doc annotations.  -->
 }}}

 So, one cannot simply edit the file. They have to edit the file that
 generates these files. Any insight in solving these problems to properly
 generate these files would be greatly appreciated. Thank you.

-- 
Ticket URL: <https://trac.macports.org/ticket/60024>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list