[MacPorts] #60024: webkit2-gtk @2.26.2_0+minibrowser+x11 GIR Files Malformed
MacPorts
noreply at macports.org
Wed Jan 29 14:40:01 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
Resolution: | Keywords:
Port: webkit2-gtk |
--------------------------+----------------------
Comment (by jmercouris):
More information. Editing the GIR files in place *does* work if you then
recompile and regenerate the type lib files (type lib files are like
compiled gir files). Here is what I did:
1. Installed gobject-introspection port which gave me access to the g-ir-
compiler
2. Edit the GIR files located in
/opt/local/share/gir-1.0/WebKit2WebExtension-4.0.gir
to remove references to @rpath and replace them with /opt/local/lib, so
now the shared-library line looks like this:
{{{
shared-
library="/opt/local/lib/libwebkit2gtk-4.0.37.dylib,/opt/local/lib/libjavascriptcoregtk-4.0.18.dylib"
}}}
3. Used the compiler gir compiler: g-ir-compiler
WebKit2WebExtension-4.0.gir
> /opt/local/lib/girepository-1.0/WebKit2WebExtension-4.0.typelib
4. Changed owner and group on new type lib file to match other typelibs
5. After having new typelibs generated from my hand modified GIR files I
can successfully launch a test web view, however, it does not work. It
just shows a blank view. How to debug this?
Screenshot: https://i.imgur.com/u1mnV3R.png
--
Ticket URL: <https://trac.macports.org/ticket/60024#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list