After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656059 - provide a way to load uninstalled gio modules
provide a way to load uninstalled gio modules
Status: RESOLVED DUPLICATE of bug 656914
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-08-05 23:48 UTC by Dan Winship
Modified: 2011-08-27 23:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
giomodule: add g_io_module_test() (5.41 KB, patch)
2011-08-05 23:48 UTC, Dan Winship
none Details | Review
tls/tests: use g_io_module_test and run test at "make check" time (1.45 KB, patch)
2011-08-05 23:49 UTC, Dan Winship
none Details | Review

Description Dan Winship 2011-08-05 23:48:47 UTC
In order to have make-check-able tests in glib-networking, we need to
be able to load the uninstalled module, and not load the installed
module (if it exists). Does this API work for people?
Comment 1 Dan Winship 2011-08-05 23:48:54 UTC
Created attachment 193333 [details] [review]
giomodule: add g_io_module_test()

g_io_module_test() lets "make check" programs load an uninstalled
GIOModule (and prevent the corresponding installed version from being
loaded).
Comment 2 Dan Winship 2011-08-05 23:49:15 UTC
Created attachment 193334 [details] [review]
tls/tests: use g_io_module_test and run test at "make check" time
Comment 3 Matthias Clasen 2011-08-14 02:59:39 UTC
is setting GIO_EXTRA_MODULES not enough ? You have to run gio-querymodules on the directory containing the uninstalled module(s), though.
Comment 4 Dan Winship 2011-08-14 15:11:40 UTC
It works if you've never run "make install" before, but if you have, you get:

GLib-GObject-WARNING **: Two different plugins tried to register 'GTlsBackendGnutls'.
Trace/breakpoint trap
Comment 5 Stef Walter 2011-08-19 14:47:33 UTC
BTW Matthias, actually we don't have to run gio-querymodules. If no cache file exists, then GIO will happily just load all the modules in the directory.
Comment 6 Dan Winship 2011-08-27 23:06:56 UTC
we went with Stef's patch instead

*** This bug has been marked as a duplicate of bug 656914 ***