[ubuntu-mono] [Bug 911125] Re: FTBFS due to removed g_thread_init

Bug Watch Updater 911125 at bugs.launchpad.net
Tue Jan 3 10:26:00 UTC 2012


Launchpad has imported 2 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=44413.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-01-03T09:42:34+00:00 Martin Pitt wrote:

Both 1.4.x and trunk now fail to build with the current glib 2.31.x:

  CCLD   test-relay
internals/refs.c: In function 'test_connection':
internals/refs.c:279:9: error: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' instead [-Werror=deprecated-declarations]

[...]

internals/refs.c: In function 'main':
internals/refs.c:598:3: error: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors


The g_thread_* API has been deprecated in 2.31.x, and g_thread_init() is not necessary any more since 2.24 (g_type_init() cares about this).

Reply at: https://bugs.launchpad.net/dbus/+bug/911125/comments/1

------------------------------------------------------------------------
On 2012-01-03T10:05:24+00:00 Martin Pitt wrote:

Created attachment 55069
proposed patch

This patch works, but it bumps the glib requirement for the tests to
2.31.4 (g_thread_new() did not exist in 2.30.x). If that's not
appropriate, I could add some #if magic to emulate g_thread_new() with a
macro that calls  g_thread_create() if you are interested.

Reply at: https://bugs.launchpad.net/dbus/+bug/911125/comments/2


** Changed in: dbus
       Status: Unknown => Confirmed

** Changed in: dbus
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to gtk-sharp2 in Ubuntu.
https://bugs.launchpad.net/bugs/911125

Title:
  FTBFS due to removed g_thread_init

Status in D-Bus:
  Confirmed
Status in “dbus” package in Ubuntu:
  Fix Released
Status in “evolution-data-server” package in Ubuntu:
  Triaged
Status in “evolution-exchange” package in Ubuntu:
  New
Status in “evolution-webcal” package in Ubuntu:
  New
Status in “geoclue” package in Ubuntu:
  Triaged
Status in “gnome-keyring” package in Ubuntu:
  Triaged
Status in “gnome-utils” package in Ubuntu:
  Triaged
Status in “gtk-sharp2” package in Ubuntu:
  Triaged
Status in “gtkhtml3.14” package in Ubuntu:
  New
Status in “gtkhtml4.0” package in Ubuntu:
  New
Status in “librest” package in Ubuntu:
  New
Status in “likewise-open” package in Ubuntu:
  Triaged
Status in “yelp” package in Ubuntu:
  Triaged
Status in “dbus” source package in Precise:
  Fix Released
Status in “evolution-data-server” source package in Precise:
  Triaged
Status in “evolution-exchange” source package in Precise:
  New
Status in “evolution-webcal” source package in Precise:
  New
Status in “geoclue” source package in Precise:
  Triaged
Status in “gnome-keyring” source package in Precise:
  Triaged
Status in “gnome-utils” source package in Precise:
  Triaged
Status in “gtk-sharp2” source package in Precise:
  Triaged
Status in “gtkhtml3.14” source package in Precise:
  New
Status in “gtkhtml4.0” source package in Precise:
  New
Status in “librest” source package in Precise:
  New
Status in “likewise-open” source package in Precise:
  Triaged
Status in “yelp” source package in Precise:
  Triaged

Bug description:
  g_thread_init() and friends have been deprecated since glib 2.24. This
  causes some packages to FTBFS when they fail to build on warnings.

  The fix is to replace g_thread_init() with g_type_init().
  Alternatively you can build without G_DISABLE_DEPRECATED, but of
  course it's better to fix it properly.

  http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-
  rebuild-20111222-precise.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/911125/+subscriptions



More information about the Ubuntu-mono mailing list