all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 59631@debbugs.gnu.org
Subject: bug#59631: 29.0.50; [PATCH] New check-man target to check man pages for errors
Date: Thu, 1 Dec 2022 07:02:16 -0800	[thread overview]
Message-ID: <CADwFkmnL8OmfbXAvn9=TxqLz3e+VEXYovfm2MV8xwTJg0CZ6WA@mail.gmail.com> (raw)
In-Reply-To: <83zgcbnuom.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 794 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Can this be done by running Groff directly instead of via 'man'?  If it's
> possible, it's IMO better, since Groff installations are more widespread
> than the particular variant of 'man' you used in the script.  E.g., I think
> the requirement for C.UTF-8 locale being available can be dropped in that
> case.

The version of man used is man-db, which AFAIK is used by all major
GNU/Linux distributions.

    https://man-db.gitlab.io/man-db/

Looking into this with PIPELINE_DEBUG=1, the processing done is
non-trivial, and depends on e.g. /usr/libexec/man-db/zsoelim from
man-db.  So I think trying to duplicate all of that for the purposes of
this script might not be the best use of our time.

For reference, I've attached the debug output from man.

[-- Attachment #2: man-output.txt --]
[-- Type: text/plain, Size: 1977 bytes --]

$ PIPELINE_DEBUG=1 LC_ALL=C.UTF-8 MANROFFSEQ='' MANWIDTH=80 \
man --warnings=all,mac -E UTF-8 -l -Tutf8 -Z doc/man/emacs.1 >/dev/null                  
Starting pipeline: (echo .nh && echo .de hy && echo .. && echo .na && echo .de ad && echo .. && cat) [input: {0, doc/man/emacs.1}, output: {-1, NULL}]
Started "decompressor", pid 1636161
Started "echo .nh && echo .de hy && echo ..", pid 1636162
  "echo .nh && echo .de hy && echo .." (1636162) -> 0
Started "echo .na && echo .de ad && echo ..", pid 1636163
  "echo .na && echo .de ad && echo .." (1636163) -> 0
Started "cat", pid 1636164
Starting pipeline: /usr/libexec/man-db/zsoelim | preconv -e UTF-8 | groff -mandoc -Z -wall -wmac -Tutf8  "cat" (1636164) -> 0
 [input: {-1, NULL}, output: {0, NULL}]
Started "/usr/libexec/man-db/zsoelim", pid 1636165
Started "preconv", pid 1636166
Started "groff", pid 1636167
source pipeline 0 returned error or EOF
Waiting for pipeline: (echo .nh && echo .de hy && echo .. && echo .na && echo .de ad && echo .. && cat) [input: {0, doc/man/emacs.1}, output: {-1, NULL}]
Active processes (1):
  "decompressor" (1636161) -> 0
Waiting for pipeline: /usr/libexec/man-db/zsoelim | preconv -e UTF-8 | groff -mandoc -Z -wall -wmac -Tutf8 [input: {-1, NULL}, output: {0, NULL}]
Active processes (3):
  "/usr/libexec/man-db/zsoelim" (1636165) -> -1
  "preconv" (1636166) -> -1
  "groff" (1636167) -> -1
Starting pipeline: zcat [input: {3, NULL}, output: {-1, NULL}]
Started "zcat", pid 1636168
Waiting for pipeline: zcat [input: {3, NULL}, output: {-1, NULL}]
Active processes (1):
  "zcat" (1636168) -> -1
Active processes (1):
  "zcat" (1636168) -> 0
Active processes (3):
  "/usr/libexec/man-db/zsoelim" (1636165) -> 0
  "preconv" (1636166) -> -1
  "groff" (1636167) -> -1
Active processes (2):
  "preconv" (1636166) -> 0
  "groff" (1636167) -> -1
troff: <standard input>:18: warning: macro 'SHX' not defined (possibly missing space after 'SH')
Active processes (1):
  "groff" (1636167) -> 0

[-- Attachment #3: Type: text/plain, Size: 118 bytes --]


> But if doing so requires too much effort or research, feel free to install
> what you have.

I'll do that, thanks.

  reply	other threads:[~2022-12-01 15:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-27 15:23 bug#59631: 29.0.50; [PATCH] New check-man target to check man pages for errors Stefan Kangas
2022-11-27 15:44 ` Eli Zaretskii
2022-11-27 17:49   ` Stefan Kangas
2022-11-27 18:15     ` Eli Zaretskii
2022-11-27 22:59       ` Stefan Kangas
2022-11-28 12:13         ` Eli Zaretskii
2022-12-01 15:02           ` Stefan Kangas [this message]
2022-12-01 16:01             ` Eli Zaretskii
2022-12-02 22:50               ` Richard Stallman
2022-12-03  7:06                 ` Eli Zaretskii
2022-12-03 14:20               ` Stefan Kangas
2022-12-03 14:39                 ` Eli Zaretskii
2022-12-09 10:25                   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmnL8OmfbXAvn9=TxqLz3e+VEXYovfm2MV8xwTJg0CZ6WA@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=59631@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.