On Mon, Feb 20, 2023 at 1:38 AM Scarlett Moore
<scarlett.gately.mo...@gmail.com> wrote:
>
>
> On 2/19/23 10:35, Shengjing Zhu wrote:
> > On Mon, Feb 20, 2023 at 1:21 AM Scarlett Moore <sgmo...@debian.org> wrote:
> >> Package: wnpp
> >> Severity: wishlist
> >> Owner: Scarlett Moore <sgmo...@debian.org>
> >> X-Debbugs-Cc: debian-de...@lists.debian.org, sgmo...@debian.org
> >>
> >> * Package name    : roff
> > It doesn't sound quite right. roff is a file format. Does the package
> > really need to be called `roff`?
> >
> >>    Version         : 0.1.0
> >>    Upstream Author : Christian Muehlhaeuser
> >> * URL             : https://github.com/mueslix/roff
> > This is 404. I assume you mean https://github.com/muesli/roff
> yes
> >
> > Then the package name is really wrong. It's a Go library, the name
> > should be golang-github-muesli-roff.
> > Please read 
> > https://go-team.pages.debian.net/packaging.html#_naming_conventions_2
>
> ok, new to go packaging. I used dh-make-golang and assumed it named it
> correctly. My apologies.

I think it's because the library contains an example which produces a
binary. It will confuse dh-make-golang.
So dh-make-golang has an option, you can use `dh-make-golang make
-type library`.

Besides, after dh-make-golang creating the template, you should adjust
debian/rules with:

```
export DH_GOLANG_EXCLUDES := examples
```

This usage is documented at
https://manpages.debian.org/bullseye/dh-golang/Debian::Debhelper::Buildsystem::golang.3pm.en.html#DH_GOLANG_EXCLUDES
(Yeah, we know the manpage name is difficult to find..)

-- 
Shengjing Zhu

Reply via email to