Summary: | app-misc/subsurface-4.2 - ain.cpp:45:19: Kerror: git_threads_init was not declared in this scope git_threads_init(); Makefile:1001: recipe for target '.obj/main.o' failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Martin Gysel (bearsh) <me> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bman, proxy-maint, zamabe |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Toralf Förster
2015-01-19 15:09:16 UTC
app-misc/subsurface-4.2 emerge is *ok* whith (stable) dev-libs/libgit2-0.20.0-r1 and (~amd64) dev-libs/libgit2-0.21.3(0/21) but *not ok* with (~amd64) dev-libs/libgit2-0.22.0(0/22) more info : save-git.c: In function ‘new_directory’: save-git.c:434:2: attention : implicit declaration of function ‘git_treebuilder_create’ [-Wimplicit-function-declaration] git_treebuilder_create(&subdir->files, NULL); ^ save-git.c: In function ‘write_git_tree’: save-git.c:1013:38: attention : passing argument 2 of ‘git_treebuilder_write’ from incompatible pointer type ret = git_treebuilder_write(result, repo, tree->files); ^ In file included from /usr/include/git2/diff.h:13:0, from /usr/include/git2/checkout.h:12, from /usr/include/git2.h:17, from save-git.c:11: /usr/include/git2/tree.h:375:17: note: expected ‘struct git_treebuilder *’ but argument is of type ‘struct git_repository *’ GIT_EXTERN(int) git_treebuilder_write( ^ save-git.c:1013:8: erreur: too many arguments to function ‘git_treebuilder_write’ ret = git_treebuilder_write(result, repo, tree->files); ^ In file included from /usr/include/git2/diff.h:13:0, from /usr/include/git2/checkout.h:12, from /usr/include/git2.h:17, from save-git.c:11: /usr/include/git2/tree.h:375:17: note: declared here GIT_EXTERN(int) git_treebuilder_write( ^ Makefile:1426 : la recette pour la cible « .obj/save-git.o » a échouée for the time being please use the latest ebuild from my overlay [1] which includes up-to-date versions of subsurface (which also includes a patch which solves this compile error (run time functionality has not been tested)) and libdivecomputer [1] https://bitbucket.org/bearsh/bearshlay I've had this issue as well. app-misc/subsurface-4.2 isn't compatible with >=dev-libs/libgit2-0.22.0 due to libgit2 API changes. My solution was to change the ebuild to depend on dev-libs/libgit2:0/21 --- /subsurface-4.2.ebuild +++ /subsurface-4.2.ebuild @@ -32,7 +32,7 @@ RDEPEND="dev-db/sqlite:3 dev-libs/glib:2 >=dev-libs/libdivecomputer-${LIBDC_V}[usb?] - dev-libs/libgit2:= + dev-libs/libgit2:0/21 dev-libs/libxml2 dev-libs/libxslt dev-libs/libzip (In reply to zamabe from comment #3) > I've had this issue as well. > > app-misc/subsurface-4.2 isn't compatible with >=dev-libs/libgit2-0.22.0 due > to libgit2 API changes. > The maintainer b-man is now a dev. He shall be either removed or made the main maintainer of the package. zamabe do you wish to become a new second co-maintainer? No, thank you. I stumbled on this solution by luck. commit bb2b2e13ad800e974b3921675c13d65f112987c5 Author: Ian Delaney <idella4@gentoo.org> Date: Sat Oct 24 10:23:05 2015 +0800 app-misc/subsurface: reset slot/sub-slot to dep dev-libs/libgit2 ack to 'zamabe' for submission of the patch via the gentoo bug Re-set maintainer b-man to dev status in metadata Gentoo bug: #537056 |