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

First try at using gbp buildpackage... can't find funcmap?



Hi all!

Is this the right recipe for using gpb buildpackage for a particular
flavor of ubuntu?

#!/bin/sh
set -ex
sudo apt install dh-make-golang
DIST=bionic git-pbuilder create dh-make-golang github.com/gomatic/renderizer
dh-make-golang github.com/gomatic/renderizer
cd renderizer/
gbp buildpackage --git-dist=bionic --git-pbuilder

It's failing for me on bionic:

...
dh build --buildsystem=golang --with=golang
   dh_update_autotools_config -O--buildsystem=golang
   dh_autoreconf -O--buildsystem=golang
   dh_auto_configure -O--buildsystem=golang
   dh_auto_build -O--buildsystem=golang
cd obj-x86_64-linux-gnu && go install
-gcflags=\"-trimpath=/build/renderizer-2.0.0/obj-x86_64-linux-gnu/src\"
-asmflags=\"-trimpath=/build/renderizer-2.0.0/obj-x86_64-linux-gnu/src\"
-v -p 4 github.com/gomatic/renderizer
src/github.com/gomatic/renderizer/renderizer.go:14:2: cannot find
package "github.com/gomatic/funcmap" in any of:
/usr/lib/go-1.10/src/github.com/gomatic/funcmap (from $GOROOT)
/build/renderizer-2.0.0/obj-x86_64-linux-gnu/src/github.com/gomatic/funcmap
(from $GOPATH)
dh_auto_build: cd obj-x86_64-linux-gnu && go install
-gcflags=\"-trimpath=/build/renderizer-2.0.0/obj-x86_64-linux-gnu/src\"
-asmflags=\"-trimpath=/build/renderizer-2.0.0/obj-x86_64-linux-gnu/src\"
-v -p 4 github.com/gomatic/renderizer returned exit code 1
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/build/cow.10685
gbp:error: 'git-pbuilder' failed: it exited with 1


Reply to: