<div dir="ltr">Please don’t drop pkg-go-maintainers from the CC, this conversation is interesting for everyone.<div><br></div><div>One option to solve your issue is to just delete usr/share/gocode, as one of the examples I linked to does (sorry, don’t recall which one).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 8:53 PM, Chas Williams III <span dir="ltr"><<a href="mailto:Charles.Williams@brocade.com" target="_blank">Charles.Williams@brocade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for the links.<br>
<br>
If I have multiple packages that are related but want to go into<br>
separate debian packages, like a server package and some debugging utils<br>
that you might optionally want to install.<br>
<br>
If I don't have an *.install, I get a .deb file with:<br>
<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/share/gocode/<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/share/gocode/src/<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/share/gocode/src/myutil/<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/share/gocode/src/myutil/src/<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/share/gocode/src/myutil/src/myutil/<br>
-rw-r--r-- root/root       128 2015-05-13 11:45 ./usr/share/gocode/src/myutil/src/myutil/myutil.go<br>
drwxr-xr-x root/root         0 2015-05-13 11:45 ./usr/bin/<br>
-rwxr-xr-x root/root   1357256 2015-05-13 11:45 ./usr/bin/myutil<br>
<br>
I don't want to ship the gocode.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, 2015-05-13 at 12:30 -0600, Michael Stapelberg wrote:<br>
> Here are a couple binary-only packages:<br>
><br>
><br>
> <a href="http://anonscm.debian.org/cgit/pkg-go/packages/etcd.git/" target="_blank">http://anonscm.debian.org/cgit/pkg-go/packages/etcd.git/</a><br>
> <a href="http://anonscm.debian.org/cgit/pkg-go/packages/heartbleeder.git/" target="_blank">http://anonscm.debian.org/cgit/pkg-go/packages/heartbleeder.git/</a><br>
><br>
> <a href="http://anonscm.debian.org/cgit/pkg-go/packages/skydns.git/" target="_blank">http://anonscm.debian.org/cgit/pkg-go/packages/skydns.git/</a><br>
><br>
><br>
><br>
> Why do you need an install file at all if you’re just dealing with a<br>
> binary-only package?<br>
><br>
> On Wed, May 13, 2015 at 8:22 PM, Chas Williams III<br>
> <<a href="mailto:Charles.Williams@brocade.com">Charles.Williams@brocade.com</a>> wrote:<br>
>         See attached.  I can build the golang-stringutils package<br>
>         fine.<br>
>         myutil builds but I am unable to create a binary package that<br>
>         only<br>
>         contains the utility myutil.  I don't need to ship myutil's as<br>
>         a<br>
>         development package.<br>
><br>
>         I have been unable to find an example of dh-golang used to<br>
>         build a<br>
>         binary only package.<br>
><br>
>         On Wed, 2015-05-13 at 12:04 -0600, Michael Stapelberg wrote:<br>
>         > Without seeing your packaging it’s very hard to help. Maybe<br>
>         taking a<br>
>         > look at the existing pkg-go packages helps?<br>
>         ><br>
>         > On Wed, May 13, 2015 at 7:21 PM, Chas Williams III<br>
>         > <<a href="mailto:Charles.Williams@brocade.com">Charles.Williams@brocade.com</a>> wrote:<br>
>         >         I think I have it figured out now.  I wasn't setting<br>
>         DH_GOPKG<br>
>         >         on the<br>
>         >         non-library package.<br>
>         ><br>
>         >         How do you write an *.install file to match file<br>
>         paths?  The<br>
>         >         files don't<br>
>         >         seem to be installed in the temporary root and the<br>
>         typical<br>
>         >         paths I would<br>
>         >         use don't seem to work.<br>
>         ><br>
>         >         On Tue, 2015-05-12 at 14:06 -0600, Michael<br>
>         Stapelberg wrote:<br>
>         >         > Why woulud the build system need to write<br>
>         >         to /usr/share/gocode? You<br>
>         >         > shouldn’t need to touch your dependencies during<br>
>         build.<br>
>         >         ><br>
>         >         ><br>
>         >         > Can you make your packaging available? Without<br>
>         seeing the<br>
>         >         code, it’s<br>
>         >         > hard to help.<br>
>         >         ><br>
>         >         > On Tue, May 12, 2015 at 7:44 PM, Chas Williams III<br>
>         >         > <<a href="mailto:Charles.Williams@brocade.com">Charles.Williams@brocade.com</a>> wrote:<br>
>         >         >         Hello,<br>
>         >         ><br>
>         >         >         I have managed to produce a golang Debian<br>
>         package,<br>
>         >         but I still<br>
>         >         >         can't<br>
>         >         >         seem to figure out how to use this package<br>
>         to build<br>
>         >         my Go<br>
>         >         >         application.<br>
>         >         ><br>
>         >         >         Buildsystem/<a href="http://golang.pm" target="_blank">golang.pm</a> says want I want to<br>
>         hear:<br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         ><br>
>         ############################################################################<br>
>         >         >         # Symlink all available libraries<br>
>         >         from /usr/share/gocode/src<br>
>         >         >         into our<br>
>         >         >         # buildroot.<br>
>         >         ><br>
>         ><br>
>         ############################################################################<br>
>         >         ><br>
>         >         >         But _link_contents() doesn't really seem<br>
>         to do that.<br>
>         >         It<br>
>         >         >         symlinks<br>
>         >         >         the directories, but shouldn't it really<br>
>         create the<br>
>         >         >         directories and<br>
>         >         >         symlinks the source files (*.go) since<br>
>         it's unlikely<br>
>         >         the build<br>
>         >         >         system<br>
>         >         >         can write to /usr/share/gocode?<br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         ><br>
>         >         > --<br>
>         >         > Best regards,<br>
>         >         > Michael<br>
>         ><br>
>         ><br>
>         ><br>
>         ><br>
>         ><br>
>         ><br>
>         > --<br>
>         > Best regards,<br>
>         > Michael<br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Michael<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards,<br>Michael</div>
</div>