On 05/31/2018 10:32 AM, Tong Sun wrote: > > Isn't binary-only and binary + library packages are supposed to be > build with `dh-golang` instead? and I don't see how to use `dh-golang` > covered in that page either. > > I'm not asking for extensive and comprehensive explanations. > I'm only asking for some simple instruction on the major steps/tools > involved.
dh-make-golang and dh-golang are two different tools (from your message, I'm not sure if you confuse both or not). dh-make-golang gets you started by creating a gbp-style repo, containing the basic Debian packaging files. For very simple packages it's already enough and works out of the box, although you still need to edit a few things here and there. For more complicated packages, consider the packaging files generated as a starting point. Then you will have to use your debian packaging skills, and look at other similar packages, to work your way to a working package. Notice that you must be familiar with git buildpackage (gbp), because that's where dh-make-golang takes you, with 3 branches: 'master', 'upstream' and 'pristine-tar'. If you have never worked with gbp before you will have a hard time. As for `dh-golang`, it is used to build golang packages indeed. If you look at the `debian/rules` file generated by dh-make-golang, you will see something like `dh $@ --buildsystem=golang --with=golang`. This is what triggers the use of dh-golang. Hope that helps, Arnaud
_______________________________________________ Pkg-go-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers
