From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59631: 29.0.50; [PATCH] New check-man target to check man pages for errors Date: Thu, 01 Dec 2022 18:01:30 +0200 Message-ID: <83v8mvglk5.fsf@gnu.org> References: <83h6ykpfkn.fsf@gnu.org> <83cz98p8l8.fsf@gnu.org> <83zgcbnuom.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59631@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 01 17:03:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0m2B-0009vc-0e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Dec 2022 17:03:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0m1m-0001GD-Gz; Thu, 01 Dec 2022 11:03:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0m1f-0001FP-CO for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 11:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0m1f-0005fX-3M for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 11:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0m1e-0000fG-UO for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 11:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2022 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59631 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59631-submit@debbugs.gnu.org id=B59631.16699105252526 (code B ref 59631); Thu, 01 Dec 2022 16:03:02 +0000 Original-Received: (at 59631) by debbugs.gnu.org; 1 Dec 2022 16:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:40507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0m0i-0000eg-VC for submit@debbugs.gnu.org; Thu, 01 Dec 2022 11:02:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0m0h-0000eJ-2c for 59631@debbugs.gnu.org; Thu, 01 Dec 2022 11:02:03 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0m0b-0005Gj-SX; Thu, 01 Dec 2022 11:01:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZUzCSszfLbhBC2wt+MS7aNSYxXhHe0YLdu9kW7HJMUc=; b=jpx8lG0cw2yh uBPaSmhbimcBzmkKpgzsaX7N4amYSZN3i7UAG+tQ4R0VnqbVWIaTsNgCcandQiHUxQSm3bILJyOLe WtpOMUza0gUcEFvs3cvJbToQ7QzFIGpvsNHRI11opvAN7a8fPQA1Nb39IZXKEO8/cjl+gYwpvJH2c pIr1800d1vKW+wg808UONKFu2mEu9VHjkx0s7HUbQxbmvFwuFquesZT5VIPtD9B9ELFOHjbYPUqte Nr9kfXKY2Z1xYLoN3bGoWLZsX98cGkoqZq7TlaCx5IjZzLAl/FrL8z+zRpTJh3M8ZAd/C9OwzYvSD RPO8wTXi5SiiEPnmetQSIA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0m0b-0000kM-BK; Thu, 01 Dec 2022 11:01:57 -0500 In-Reply-To: (message from Stefan Kangas on Thu, 1 Dec 2022 07:02:16 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249647 Archived-At: > From: Stefan Kangas > Date: Thu, 1 Dec 2022 07:02:16 -0800 > Cc: 59631@debbugs.gnu.org > > Eli Zaretskii 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. Exactly. So anyone who doesn't have man-db or isn't on GNU/Linux is toast. Groff is another matter: there's even a Windows port. > 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. Fine with me, but just so you know: zsoelim is just a variant of soelim which comes with Groff; it differs from soelim in that it knows about compressed man pages (which are not the issue here). AFAICT, the pipeline is simple: soelim FILE | preconv -e UTF-8 | groff -mandoc -Z -wall -wmac -Tutf8 > /dev/null