<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 8:51 AM, André Colomb <span dir="ltr"><<a href="mailto:debian@andre.colomb.de" target="_blank">debian@andre.colomb.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi list,<br>
<br>
I'm just doing my first steps with Go and Debian packaging, so please<br>
bear with me in case of dumb questions ;-)<br>
<br>
On 2015-05-19 11:12, Michael Stapelberg wrote:>     > The problem you’re<br>
<span class="">seeing is that you didn’t declare dependencies<br>
>     > on the library packages that syncthing is trying to use. In<br>
>     > Debian, we never use bundled/vendored dependencies. Some of the<br>
>     > dependencies are already packaged in Debian, e.g.<br>
>     > golang-goleveldb-dev, but it looks like most aren’t (yet).<br>
><br>
>     The upstream repository includes a whole bunch of dependencies<br>
>     verbatim (not e.g. as git subprojects).  So if I understand correctly,<br>
>     all of these should be packaged as separate golang-*-dev libraries?<br>
><br>
> That’s correct.<br>
><br>
>     The sources are under Godeps/_workspace/src/ in the repository.  Some<br>
>     are so trivial that I doubt they would make useful library packages.<br>
>     Is there a way to just treat them as part of the Syncthing software<br>
>     itself?  Can I influence the GOPATH dh-golang sets to include the<br>
>     Godeps/_workspace/ path?<br>
><br>
> No, and that’s intentional.<br>
<br>
</span>So I got to know what Godep is [1], but I'm not quite sure it's a good<br>
idea.  It advises people to _copy_ Go package dependencies to their own<br>
project repository and track them there.  That seems to avoid Dependency<br>
Hell, but sounds like the opposite of dependency management to me.<br>
Isn't that what git subprojects are for, if all depended-on source code<br>
must be available in one giant build setup?<br></blockquote><div><br></div><div>Dependency management in Go is a heated discussion and an often brought up topic on golang-nuts, so I recommend you search that mailing list if you’re interested in the topic and what Go upstream has to say about it :).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Anyway, I just wondered whether you pkg-go maintainers already have a<br>
master plan regarding dependencies (and their manifold, separate needed<br>
versions in different dependent packages) within Debian Go packages?<br></blockquote><div><br></div><div>I thought this was already clarified earlier, but let me state it again: every Go package needs to have a corresponding Debian package, and we ignore everything upstream includes in the Godep/ directory (or any directories with a similar purpose). If that doesn’t answer the question, please ask more specific questions.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
If so, would someone mind to elaborate on the Big Picture?  The<br>
documentation on the Alioth pages [2] would be a nice discoverable place<br>
and is already quite good, so thank you by the way!<br></blockquote><div><br></div><div>Once it’s clear to you (feel free to ask more questions), can you please send a patch against  <a href="http://anonscm.debian.org/cgit/pkg-go/website.git/">http://anonscm.debian.org/cgit/pkg-go/website.git/</a>? That’s where the documentation you referred to lives, and I think you’re the best person to update it, because you know what was unclear to you and what bit of information made it clear :).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Regards<br>
André<br>
<br>
[1]: <a href="https://github.com/tools/godep" target="_blank">https://github.com/tools/godep</a><br>
[2]: <a href="http://pkg-go.alioth.debian.org/packaging.html" target="_blank">http://pkg-go.alioth.debian.org/packaging.html</a><br>
<br>
_______________________________________________<br>
Pkg-go-maintainers mailing list<br>
<a href="mailto:Pkg-go-maintainers@lists.alioth.debian.org">Pkg-go-maintainers@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards,<br>Michael</div>
</div></div>