[pkg-go] restic package
Félix Sipma
felix+debian at gueux.org
Mon Dec 12 12:00:26 UTC 2016
Hi!
I'm trying to package restic. The build seems to go well, but it fails at the
end, failing to find library files. I've tried to add this to
debian/restic.install:
src/restic usr/lib/go/src
but it did not seem to work...
Do you have any advice?
Here is the build log:
dpkg-buildpackage
-----------------
dpkg-buildpackage: info: source package restic
dpkg-buildpackage: info: source version 0.3.0-1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Félix Sipma <felix+debian at gueux.org>
dpkg-source --before-build restic-0.3.0
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean --buildsystem=golang --with=golang
dh_testdir -O--buildsystem=golang
dh_auto_clean -O--buildsystem=golang
dh_autoreconf_clean -O--buildsystem=golang
dh_clean -O--buildsystem=golang
dpkg-source -b restic-0.3.0
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building restic using existing ./restic_0.3.0.orig.tar.gz
dpkg-source: info: building restic in restic_0.3.0-1.debian.tar.xz
dpkg-source: info: building restic in restic_0.3.0-1.dsc
debian/rules build
dh build --buildsystem=golang --with=golang
dh_testdir -O--buildsystem=golang
dh_update_autotools_config -O--buildsystem=golang
dh_autoreconf -O--buildsystem=golang
dh_auto_configure -O--buildsystem=golang
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
go run build.go
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
go run build.go --test
ok restic 7.455s
ok restic/archiver 65.526s
ok restic/backend 1.198s
ok restic/backend/local 1.365s
ok restic/backend/mem 1.125s
ok restic/backend/rest 0.023s
ok restic/backend/s3 0.006s
ok restic/backend/sftp 0.004s
ok restic/backend/test 0.868s
ok restic/checker 4.417s
ok restic/crypto 0.511s
? restic/debug [no test files]
? restic/errors [no test files]
ok restic/filter 0.439s
? restic/fs [no test files]
ok restic/fuse 1.022s
ok restic/index 59.633s
? restic/list [no test files]
ok restic/location 0.005s
? restic/mock [no test files]
ok restic/pack 0.020s
ok restic/pipe 0.028s
ok restic/repository 4.921s
? restic/test [no test files]
ok restic/walk 1.254s
ok restic/worker 0.003s
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
fakeroot debian/rules binary
dh binary --buildsystem=golang --with=golang
dh_testroot -O--buildsystem=golang
dh_prep -O--buildsystem=golang
dh_auto_install -O--buildsystem=golang
mkdir -p /<<PKGBUILDDIR>>/debian/restic/usr/share/gocode/src/github.com/restic/restic
cp -r -T src/github.com/restic/restic /<<PKGBUILDDIR>>/debian/restic/usr/share/gocode/src/github.com/restic/restic
dh_install -O--buildsystem=golang
dh_installdocs -O--buildsystem=golang
dh_installchangelogs -O--buildsystem=golang
dh_perl -O--buildsystem=golang
dh_link -O--buildsystem=golang
dh_strip_nondeterminism -O--buildsystem=golang
dh_compress -O--buildsystem=golang
dh_fixperms -O--buildsystem=golang
dh_strip -O--buildsystem=golang
dh_makeshlibs -O--buildsystem=golang
dh_shlibdeps -O--buildsystem=golang
dh_installdeb -O--buildsystem=golang
dh_golang -O--buildsystem=golang
can't load package: package restic: cannot find package "restic" in any of:
/usr/lib/go-1.7/src/restic (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic (from $GOPATH)
can't load package: package restic/archiver: cannot find package "restic/archiver" in any of:
/usr/lib/go-1.7/src/restic/archiver (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/archiver (from $GOPATH)
can't load package: package restic/backend: cannot find package "restic/backend" in any of:
/usr/lib/go-1.7/src/restic/backend (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend (from $GOPATH)
can't load package: package restic/backend/local: cannot find package "restic/backend/local" in any of:
/usr/lib/go-1.7/src/restic/backend/local (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend/local (from $GOPATH)
can't load package: package restic/backend/mem: cannot find package "restic/backend/mem" in any of:
/usr/lib/go-1.7/src/restic/backend/mem (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend/mem (from $GOPATH)
can't load package: package restic/backend/rest: cannot find package "restic/backend/rest" in any of:
/usr/lib/go-1.7/src/restic/backend/rest (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend/rest (from $GOPATH)
can't load package: package restic/backend/s3: cannot find package "restic/backend/s3" in any of:
/usr/lib/go-1.7/src/restic/backend/s3 (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend/s3 (from $GOPATH)
can't load package: package restic/backend/sftp: cannot find package "restic/backend/sftp" in any of:
/usr/lib/go-1.7/src/restic/backend/sftp (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/backend/sftp (from $GOPATH)
can't load package: package restic/checker: cannot find package "restic/checker" in any of:
/usr/lib/go-1.7/src/restic/checker (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/checker (from $GOPATH)
can't load package: package restic/crypto: cannot find package "restic/crypto" in any of:
/usr/lib/go-1.7/src/restic/crypto (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/crypto (from $GOPATH)
can't load package: package restic/debug: cannot find package "restic/debug" in any of:
/usr/lib/go-1.7/src/restic/debug (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/debug (from $GOPATH)
can't load package: package restic/errors: cannot find package "restic/errors" in any of:
/usr/lib/go-1.7/src/restic/errors (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/errors (from $GOPATH)
can't load package: package restic/filter: cannot find package "restic/filter" in any of:
/usr/lib/go-1.7/src/restic/filter (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/filter (from $GOPATH)
can't load package: package restic/fs: cannot find package "restic/fs" in any of:
/usr/lib/go-1.7/src/restic/fs (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/fs (from $GOPATH)
can't load package: package restic/fuse: cannot find package "restic/fuse" in any of:
/usr/lib/go-1.7/src/restic/fuse (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/fuse (from $GOPATH)
can't load package: package restic/index: cannot find package "restic/index" in any of:
/usr/lib/go-1.7/src/restic/index (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/index (from $GOPATH)
can't load package: package restic/list: cannot find package "restic/list" in any of:
/usr/lib/go-1.7/src/restic/list (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/list (from $GOPATH)
can't load package: package restic/location: cannot find package "restic/location" in any of:
/usr/lib/go-1.7/src/restic/location (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/location (from $GOPATH)
can't load package: package restic/pack: cannot find package "restic/pack" in any of:
/usr/lib/go-1.7/src/restic/pack (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/pack (from $GOPATH)
can't load package: package restic/pipe: cannot find package "restic/pipe" in any of:
/usr/lib/go-1.7/src/restic/pipe (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/pipe (from $GOPATH)
can't load package: package restic/repository: cannot find package "restic/repository" in any of:
/usr/lib/go-1.7/src/restic/repository (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/repository (from $GOPATH)
can't load package: package restic/test: cannot find package "restic/test" in any of:
/usr/lib/go-1.7/src/restic/test (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/test (from $GOPATH)
can't load package: package restic/walk: cannot find package "restic/walk" in any of:
/usr/lib/go-1.7/src/restic/walk (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/walk (from $GOPATH)
can't load package: package restic/worker: cannot find package "restic/worker" in any of:
/usr/lib/go-1.7/src/restic/worker (from $GOROOT)
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/restic/worker (from $GOPATH)
go list of dependencies failed with code 31488, at /usr/bin/dh_golang line 55.
debian/rules:8: recipe for target 'binary' failed
make: *** [binary] Error 123
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
--------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20161212/c4e0fca3/attachment-0001.sig>
More information about the Pkg-go-maintainers
mailing list