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

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



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


Reply to: