Bug 135934

Summary: [GTK] REGRESSION(r171598, CMake): Introspection files are installed at the wrong path
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, commit-queue, gyuyoung.kim, mcatanzaro, mrobinson, pnormand, rakuco, sergio
Priority: P2 Keywords: Gtk, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch gustavo: review+

Description Carlos Garcia Campos 2014-08-14 03:03:10 PDT
Since r171598 gir files are installed under $datadir/webkitgtk-4.0/gir-1.0/. The gir files should installed in $datadir/gir-1.0/ together with all other gir files. We don't need to install introspection files in a versioned directory because their filenames already contain the binary version. But before r171598, the files were only installed to the right directory if the gobject-instrospection pkg-config file was in the same prefix than the one we wanted to install, because the gir and typelibs directories were extracted from the pkg-config file. We should define INTROSPECTION_INSTALL_GIRDIR and INTROSPECTION_INSTALL_TYPELIBDIR in OptionsGTK.cmake based on $datadir and $libdir like we do in the autotools build (grep for girdir and typelibsdir in GNUmakefile.am)
Comment 1 Carlos Garcia Campos 2014-08-14 03:09:22 PDT
See also https://bugzilla.gnome.org/show_bug.cgi?id=734327
Comment 2 Carlos Garcia Campos 2014-08-14 03:10:12 PDT
Created attachment 236585 [details]
Patch
Comment 3 Gustavo Noronha (kov) 2014-08-14 06:06:40 PDT
Comment on attachment 236585 [details]
Patch

Yeah, I think that makes sense.
Comment 4 Carlos Garcia Campos 2014-08-14 06:11:01 PDT
Committed r172583: <http://trac.webkit.org/changeset/172583>