Displaying 2 results from an estimated 2 matches for "a7dd1b2".
Did you mean:
67dd1b1
2013 Dec 12
4
[PATCH 1/2] golang: Fix for out-of-tree builds
...$GOLANG run golang/config-test.go 2>&AS_MESSAGE_LOG_FD],[
+ AS_IF([$GOLANG run $srcdir/golang/config-test.go 2>&AS_MESSAGE_LOG_FD],[
AC_MSG_RESULT([yes])
# Substitute some golang environment.
diff --git a/golang/Makefile.am b/golang/Makefile.am
index a7dd1b2..a60c9ba 100644
--- a/golang/Makefile.am
+++ b/golang/Makefile.am
@@ -44,6 +44,7 @@ golangpkg_DATA = \
pkg/$(GOOS)_$(GOARCH)/$(pkg).a
pkg/$(GOOS)_$(GOARCH)/$(pkg).a: src/$(pkg)/guestfs.go
+ -[ $(srcdir) != $(builddir) ] && cp -rsu $(abs_srcdir)/src $(builddir)/src
$(top_builddir)/run...
2013 Dec 13
0
Re: [PATCH 1/2] golang: Fix for out-of-tree builds
...ACK ^^^ to the above part.
I think the vvv below part is a hack and we shouldn't put it upstream.
I appreciate how complicated Go packaging is, as it defies proper
distro packaging, but I still don't want to take this.
> diff --git a/golang/Makefile.am b/golang/Makefile.am
> index a7dd1b2..a60c9ba 100644
> --- a/golang/Makefile.am
> +++ b/golang/Makefile.am
> @@ -44,6 +44,7 @@ golangpkg_DATA = \
> pkg/$(GOOS)_$(GOARCH)/$(pkg).a
>
> pkg/$(GOOS)_$(GOARCH)/$(pkg).a: src/$(pkg)/guestfs.go
> + -[ $(srcdir) != $(builddir) ] && cp -rsu $(abs_srcdir)/src $(...