[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh-make-golang too old on ubuntu 18.04, but 18.10's is ok...



On Tue, Sep 11, 2018 at 1:13 AM Dan Kegel <dank@kegel.com> wrote:
>
> Hi all!  I've been using debian / ubuntu for a long time, and have done a
> lot of debian packaging for proprietary stuff.  I now need to package
> some go programs, and am learning the ropes.
>
> I used dh-make-golang, which properly listed dh-golang
> as a build dependency, but gpb buildpackage failed during
> 'dh clean' (the ol' chicken and egg).  This seemed wrong.
>
> Fortunately, just building dh-make-golang from 18.10's source package
> on 18.04 worked fine (and building it from git would probably work fine, too,
> but I haven't checked).
>
> Here's the error in case any other newbies are searching for a workaround.
>
> + gbp buildpackage --git-dist=bionic --git-pbuilder
> ...
> dh clean --buildsystem=golang --with=golang
> dh: unable to load addon golang: Can't locate
> Debian/Debhelper/Sequence/golang.pm in @INC (you may need to install
> the Debian::Debhelper::Sequence::golang module) (@INC contains:
> /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1
> /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26
> /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26
> /usr/share/perl/5.26 /usr/local/lib/site_perl
> /usr/lib/x86_64-linux-gnu/perl-base) at (eval 14) line 1.
> BEGIN failed--compilation aborted at (eval 14) line 1.
> debian/rules:4: recipe for target 'clean' failed
>

I don't think the dh-make-golang version has relation to this error.

You may misunderstand gbp-buildpackage workflow.
The error is that it tries run `dh clean` on your host system, not in
the chroot, and you don't have dh-golang installed on your host
system.

I'm not sure if the default `--git-cleaner` value varies on your two systems.
At least the latest version gbp in Debian unstable, the default value
of `--git-cleaner` is /bin/true. So it will not invoke `dh clean` on
your host.

BTW, if you want to ask someone to backport new version on Ubuntu, I
don't think you'll be lucky on this list, as the list is about Debian.
You may try Ubuntu mailing list.


-- 
Shengjing Zhu


Reply to: