On Tue, 16 Feb 2021 18:31:45 +0100 Maximilian Stein <m...@steiny.biz> wrote:
> Hi,
> > This particular binary is built using go build tags, which I'm not able integrate into dh-golang workflow yet.
> >
> > I'm trying. I was able to build it once in the past but I don't seem to have committed it.
> >
> I was actually able to build it from the debian source package.
>
> I installed the dependencies:
>
> golang-gopkg-libgit2-git2go.v31-dev=31.4.3-2 libgit2-dev=1.1.0+dfsg.1-4
>
> Then, I could build the binary from the source package:
>
>    go build -tags static,system_libgit2 ./cmd/gitaly-git2go/
>
> This first failed at a version check at
> ~/go/pkg/mod/github.com/libgit2/git2go/v30@v30.0.5/git_system_static.go,
> but I just commented it and it worked.

I'm trying to build this in gitaly-git2go branch,

https://salsa.debian.org/go-team/packages/gitaly/-/tree/gitaly-git2go

gopkg.in/libgit2/git2go.v28
# pkg-config --cflags --static -- /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/gopkg.in/libgit2/git2go.v28/static-build/install/lib/pkgconfig/libgit2.pc Failed to open '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/gopkg.in/libgit2/git2go.v28/static-build/install/lib/pkgconfig/libgit2.pc': No such file or directory No package '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/gopkg.in/libgit2/git2go.v28/static-build/install/lib/pkgconfig/libgit2.pc' found
pkg-config: exit status 1

This is a bug in golang-gopkg-libgit2-git2go.v28-dev

We will have to patch this to look for libgit2.pc from system

Reply via email to