Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 242987 Details for
Bug 331111
app-backup/amanda-2.6.1_p2 / dev-libs/glib-2.24.1-r1 - ERROR:glib-util.c:48:glib_init: assertion failed: (!g_thread_supported())
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
amanda-2.6.1-glib-init.patch
amanda-2.6.1-glib-init.patch (text/plain), 1.28 KB, created by
Dustin J. Mitchell
on 2010-08-14 21:22:04 UTC
(
hide
)
Description:
amanda-2.6.1-glib-init.patch
Filename:
MIME Type:
Creator:
Dustin J. Mitchell
Created:
2010-08-14 21:22:04 UTC
Size:
1.28 KB
patch
obsolete
>Index: common-src/glib-util.c >=================================================================== >--- common-src/glib-util.c (revision 2662) >+++ common-src/glib-util.c (working copy) >@@ -38,26 +38,15 @@ > if (did_glib_init) return; > did_glib_init = TRUE; > >- /* Initialize glib's type system */ >- g_type_init(); >- > /* set up libcurl (this must happen before threading > * is initialized) */ > #ifdef HAVE_LIBCURL > # ifdef G_THREADS_ENABLED >- g_assert(!g_thread_supported()); >+ g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */ > # endif > g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0); > #endif > >- /* And set up glib's threads */ >-#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE) >- if (g_thread_supported()) { >- return; >- } >- g_thread_init(NULL); >-#endif >- > /* do a version check */ > #if GLIB_CHECK_VERSION(2,6,0) > { >@@ -71,6 +60,16 @@ > } > } > #endif >+ >+ /* Initialize glib's type system. On glib >= 2.24, this will initialize >+ * threads, so it must be done after curl is initialized. */ >+ g_type_init(); >+ >+ /* And set up glib's threads */ >+#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE) >+ if (!g_thread_supported()) >+ g_thread_init(NULL); >+#endif > } > > typedef enum {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331111
: 242987 |
244665