[pkg-go] dh-golang and _link_contents()
Michael Stapelberg
stapelberg at debian.org
Wed May 13 18:30:40 UTC 2015
Here are a couple binary-only packages:
http://anonscm.debian.org/cgit/pkg-go/packages/etcd.git/
http://anonscm.debian.org/cgit/pkg-go/packages/heartbleeder.git/
http://anonscm.debian.org/cgit/pkg-go/packages/skydns.git/
Why do you need an install file at all if you’re just dealing with a
binary-only package?
On Wed, May 13, 2015 at 8:22 PM, Chas Williams III <
Charles.Williams at brocade.com> wrote:
> See attached. I can build the golang-stringutils package fine.
> myutil builds but I am unable to create a binary package that only
> contains the utility myutil. I don't need to ship myutil's as a
> development package.
>
> I have been unable to find an example of dh-golang used to build a
> binary only package.
>
> On Wed, 2015-05-13 at 12:04 -0600, Michael Stapelberg wrote:
> > Without seeing your packaging it’s very hard to help. Maybe taking a
> > look at the existing pkg-go packages helps?
> >
> > On Wed, May 13, 2015 at 7:21 PM, Chas Williams III
> > <Charles.Williams at brocade.com> wrote:
> > I think I have it figured out now. I wasn't setting DH_GOPKG
> > on the
> > non-library package.
> >
> > How do you write an *.install file to match file paths? The
> > files don't
> > seem to be installed in the temporary root and the typical
> > paths I would
> > use don't seem to work.
> >
> > On Tue, 2015-05-12 at 14:06 -0600, Michael Stapelberg wrote:
> > > Why woulud the build system need to write
> > to /usr/share/gocode? You
> > > shouldn’t need to touch your dependencies during build.
> > >
> > >
> > > Can you make your packaging available? Without seeing the
> > code, it’s
> > > hard to help.
> > >
> > > On Tue, May 12, 2015 at 7:44 PM, Chas Williams III
> > > <Charles.Williams at brocade.com> wrote:
> > > Hello,
> > >
> > > I have managed to produce a golang Debian package,
> > but I still
> > > can't
> > > seem to figure out how to use this package to build
> > my Go
> > > application.
> > >
> > > Buildsystem/golang.pm says want I want to hear:
> > >
> > >
> > >
> >
> ############################################################################
> > > # Symlink all available libraries
> > from /usr/share/gocode/src
> > > into our
> > > # buildroot.
> > >
> >
> ############################################################################
> > >
> > > But _link_contents() doesn't really seem to do that.
> > It
> > > symlinks
> > > the directories, but shouldn't it really create the
> > > directories and
> > > symlinks the source files (*.go) since it's unlikely
> > the build
> > > system
> > > can write to /usr/share/gocode?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Best regards,
> > > Michael
> >
> >
> >
> >
> >
> >
> > --
> > Best regards,
> > Michael
>
>
--
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20150513/379e3013/attachment.html>
More information about the Pkg-go-maintainers
mailing list