diff --git a/srcpkgs/slcp/patches/libgit-initializion.patch b/srcpkgs/slcp/patches/libgit-initializion.patch new file mode 100644 index 00000000000..ca09a7f4a82 --- /dev/null +++ b/srcpkgs/slcp/patches/libgit-initializion.patch @@ -0,0 +1,21 @@ +From 543101999ad0544e4a427afb5fbf993a55f820e1 Mon Sep 17 00:00:00 2001 +From: Duncaen +Date: Tue, 28 Jul 2015 22:30:22 +0200 +Subject: [PATCH] fix libgit initialization + +--- + slcp.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/slcp.c b/slcp.c +index 2e9f9f4..7f12b08 100644 +--- a/slcp.c ++++ b/slcp.c +@@ -100,6 +100,7 @@ int main(int argc, char* argv[]) + if(argc > 1) termwidth = atoi(argv[1]); + + /* init git repo */ ++ git_libgit2_init(); + if(!git_repository_discover(&tmpgitdb, ".", 0, NULL) + && git_repository_open(&git_repo, tmpgitdb.ptr)) + { diff --git a/srcpkgs/slcp/template b/srcpkgs/slcp/template index bdbdc9bf755..a250bc3db4b 100644 --- a/srcpkgs/slcp/template +++ b/srcpkgs/slcp/template @@ -1,7 +1,7 @@ # Template file for 'slcp' pkgname=slcp version=0.2 -revision=2 +revision=3 build_pie=yes build_style=gnu-makefile makedepends="libgit2-devel"