Project

General

Profile

Bug #11263

pbchk: mandoc binary used is not the one built

Added by Michal Nowak 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

While running pbchk on build with updated mandoc 1.14.5 (#11190) I get:

Man page format/spelling:
mandoc: usr/src/man/man5/mandoc_char.5:548:17: WARNING: invalid escape sequence: \('Y
mandoc: usr/src/man/man5/mandoc_char.5:554:17: WARNING: invalid escape sequence: \('y

But this is expected only with mandoc before 1.14.5 (e.g. the one installed in /usr/bin/). Should mandoc from the build was used, this warning should not happen. Tried all mandoc binaries from the build (proto/root_i386/usr/bin/mandoc, usr/src/tools/mandoc/mandoc, usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/mandoc, and usr/src/cmd/mandoc/mandoc), but none of them expresses this behavior.

Relevant part of usr/src/tools/onbld/Checks/ManLint.py:58:

        ret, tmpfile = processcheck('mandoc', options, fh, output)

Also available in: Atom PDF