Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation instructions #8

Open
gwern opened this issue Dec 3, 2015 · 3 comments
Open

Installation instructions #8

gwern opened this issue Dec 3, 2015 · 3 comments

Comments

@gwern
Copy link

gwern commented Dec 3, 2015

Related to a suggestion for better cryptographic timestamping of Git repos & other things, git-evtag was proposed as a solution to the weak SHA-1 hashes Git uses. I wanted to try it out to see whether it could be easily used with the timestamping as a post-commit hook, but I can't seem to get it to compile/install, and the README currently includes nothing about how to install it.

What I tried on my Ubuntu 14.04.3 LTS system:

git --version
# git version 1.9.1
git clone 'https://github.com/cgwalters/git-evtag.git'
cd ./git-evtag/
sudo apt-get install libglib2.0-dev libgit2-dev
./autogen.sh
./configure --prefix=/home/gwern/bin
make && make install

This errors out during the make:

make  all-recursive
make[1]: Entering directory `/home/gwern/src/git-evtag'
make[2]: Entering directory `/home/gwern/src/git-evtag'
  CC       git_evtag-git-evtag.o
src/git-evtag.c: In function ‘checksum_tree_callback’:
src/git-evtag.c:263:9: error: implicit declaration of function ‘git_submodule_free’ [-Werror=implicit-function-declaration]
         git_submodule_free (submod);
         ^
src/git-evtag.c: In function ‘main’:
src/git-evtag.c:988:3: error: implicit declaration of function ‘git_status_init_options’ [-Werror=implicit-function-declaration]
   r = git_status_init_options (&statusopts, GIT_STATUS_OPTIONS_VERSION);
   ^
cc1: some warnings being treated as errors
make[2]: *** [git_evtag-git-evtag.o] Error 1
make[2]: Leaving directory `/home/gwern/src/git-evtag'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gwern/src/git-evtag'
make: *** [all] Error 2

If I'm doing something wrong here, please advise; it would also be good if an authoritative section could be added to the README explaining how to compile & install this.

@cgwalters
Copy link
Owner

Yeah, I need to add a section on this. And precompiled binaries.

That said, it looks like the Ubuntu LTS version of libgit2 is possibly too old to support.

@cgwalters
Copy link
Owner

A problem with libgit2 is they break ABI...in order to achieve wide distribution we may need to support bundling it.

@zbeekman
Copy link

On my MacOS it seems like it fails trying to generate the manage... (after installing libgit2 through homebrew)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants