Excerpt from https://github.com/libgit2/libgit2/blob/development/CMakeLists.txt OPTION( THREADSAFE "Build libgit2 as threadsafe" OFF ) The attached patch introduces a use flag "threads" to the ebuild, that builds libgit2 with support for threading. The latter is required by the just release gitg-0.3.1, a gnome version of GitX, which is a git gui for mac os x. Reproducible: Always Steps to Reproduce: Trying to run the mentioned gitg-0.3.1 after building it results in: ** (gitg:18980): ERROR **: gitg-init.vala:27: libgit2 must be built with threading support in order to run gitg Trace/breakpoint trap The lack of threading support in libgit2 and this change in gitg are the reason for that: https://mail.gnome.org/archives/commits-list/2013-March/msg17910.html Actual Results: libgit2 does not support use "threads" Expected Results: libgit2 should support use "threads".
Created attachment 367254 [details, diff] add "threads" use to dev-libs/libgit2 Introduce use flag threads to build libgit2 with threading support.
I can confirm that with this patch applied and after (re)building dev-libs/libgit2 with USE="threads", dev-vcs/gitg-0.3.1 works as expected.
+*libgit2-0.20.0-r1 (08 Feb 2014) + + 08 Feb 2014; Justin Lecher <jlec@gentoo.org> +libgit2-0.20.0-r1.ebuild: + Add threads USE flag, #497352 +