pkg/60173: enchant2 doesn't install groff dependency, causing build to fail

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
>Number:         60173
>Category:       pkg
>Synopsis:       enchant2 doesn't install groff dependency, causing build to fail
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 02 20:15:00 +0000 2026
>Originator:     Daniel
>Release:        NetBSD 11.0_RC2 / pkgsrc 2026Q1
>Organization:
>Environment:
NetBSD netbook.powerhub 11.0_RC2 NetBSD 11.0_RC2 (GENERIC) #0: Wed Mar  4 21:02:00 UTC 2026  [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
No matter what I do, I can't seem to get the current version of enchant2 to automatically install the `groff` package as a dependency. I've tried cleaning enchant2 multiple times in a couple of ways, but it always just doesn't install groff, which it requires for the build, resulting in:

sh: groff: not found

The Makefile does contain this:

USE_TOOLS+=             autoconf gmake groff pkg-config

...so it should be installing, right? Why doesn't it? I don't understand the recipe format of pkgsrc well enough to understand the issue myself.

This issue can be worked around by installing groff manually, but that isn't really a solution to the core problem.
>How-To-Repeat:
Attempt to build textproc/enchant2 on the current 2026Q1 (commit 69636b6fcb37836ed7abd7335dec2db101a65d0c), and observe the build failing with the above message.
>Fix:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.