Migrate to up-to-date Glib thread API

Bug #912224 reported by Sergey "Shnatsel" Davidoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Contractor
Invalid
Undecided
Unassigned
Granite
Invalid
Undecided
Unassigned
Maya
Invalid
Undecided
Unassigned
Scratch
Invalid
Undecided
Unassigned
Slingshot
Invalid
Undecided
Unassigned
Terminal
Invalid
Undecided
Unassigned
Wingpanel
Invalid
Undecided
Unassigned

Bug Description

Many elementary apps fail to build in Ubuntu 12.04 "Precise" because they use deprecated Glib thread API. All affected apps must be converted to the new API. See https://lists.launchpad.net/elementary-dev-community/msg00138.html for more info.

summary: - Fails to build in Precise due to Glib thread API deprecation
+ Migrate to up-to-date Glib thread API
Revision history for this message
Avi Romanoff (aroman) wrote :

Are you sure this is affecting Lingo? I don't believe Lingo uses threading at all (at least not directly) -- it uses an asynchronous pattern, rather than a threaded one to do background work.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Yes, I'm sure:
CMakeFiles/lingo.dir/src/lingo-app.c.o: In function `main':
/build/buildd/lingo-0.8/src/lingo-app.vala:25: undefined reference to `g_thread_init'
https://launchpadlibrarian.net/88873980/buildlog_ubuntu-precise-amd64.lingo_0.8-0~r117%2Bpkg5~precise1_FAILEDTOBUILD.txt.gz

Revision history for this message
Cris Dywan (kalikiana) wrote :

The wording in the report may be a bit misleading. g_thread_init has become a no-op and GIO automatically uses threads. If you just added g_thread_init for GIO, libSoup, GStreamer or WebKitGTK+ you are also affected.

Changed in scratch:
status: New → Fix Committed
Changed in pantheon-terminal:
status: New → Fix Committed
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Unmarking Lingo because it doesn't use threading directly and devs probably can't do anything about it

no longer affects: lingo-dictionary
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Turned out to be invalid because in Vala you never use Glib threading API directly.

Changed in slingshot:
status: New → Invalid
Changed in wingpanel:
status: New → Invalid
Changed in scratch:
status: Fix Committed → Invalid
Changed in pantheon-terminal:
status: Fix Committed → Invalid
Changed in maya:
status: New → Invalid
Changed in granite:
status: New → Invalid
Changed in contractor:
status: New → Invalid
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

xapantu has fixed build issues, so I won't even open a separate bug for them.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.