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

Help for packaging shfmt



Hi!
I am willing to package the shfmt program (https://github.com/mvdan/sh)
for Debian, see also:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970393.

I have followed the documentation from here
https://go-team.pages.debian.net/ and I am trying to do it with the
dh-make-golang tool, so far I am very impressed by this tool BTW!

Now the package does not build and my understanding is that it's because
I need libraries (some are missing from
https://github.com/mvdan/sh/blob/master/cmd/shfmt/main.go#L18-L25):

|❯ gbp buildpackage --git-pbuilder
| ...
| 	cd _build && go install -trimpath -v -p 4 github.com/mvdan/sh/cmd/shfmt
| src/github.com/mvdan/sh/cmd/shfmt/main.go:19:2: cannot find package "github.com/pkg/diff" in any of:
| 	/usr/lib/go-1.15/src/github.com/pkg/diff (from $GOROOT)
| ...
| dh_auto_build: error: cd _build && go install -trimpath -v -p 4 github.com/mvdan/sh/cmd/shfmt returned exit code 1
| make: *** [debian/rules:13: binary] Error 25

It's not very clear to me how to proceed, should I package first those
libraries, following the naming convention from
https://go-team.pages.debian.net/packaging.html#_naming_conventions_2
and then add them to the debian/control Build-Depends to finally build
shfmt program or is there another way?

Side note: there are a bunch of 404 urls in
https://go-team.pages.debian.net, what's the best way to report/help to
fix them?

Thanks for your help.

-- 
Faustin Lammler

Attachment: signature.asc
Description: PGP signature


Reply to: