From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from antares.kleine-koenig.org (antares.kleine-koenig.org [94.130.110.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0CBE81F4B4 for ; Fri, 18 Dec 2020 11:56:19 +0000 (UTC) Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id D517CAABBA1; Fri, 18 Dec 2020 12:56:16 +0100 (CET) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: meta@public-inbox.org Subject: [PATCH] Fix manpage section of perl module documentation Date: Fri, 18 Dec 2020 12:56:14 +0100 Message-Id: <20201218115614.613227-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: On Debian (at least) perl documentation is supposed to be installed in section 3pm. With the build system hardcoding this to 3 instead this results in a warning by the Debian package linter: W: public-inbox: wrong-manual-section usr/share/man/man3/PublicInbox::Git.3.gz:74 3 != 3pm W: public-inbox: wrong-manual-section usr/share/man/man3/PublicInbox::Import.3.gz:74 3 != 3pm W: public-inbox: wrong-manual-section usr/share/man/man3/PublicInbox::SaPlugin::ListMirror.3.gz:74 3 != 3pm W: public-inbox: wrong-manual-section ... use --no-tag-display-limit to see all (or pipe to a file/program) So use "$(MAN3EXT)" instead of "3". --- Hello, I'm continuing to package public-inbox for Debian now. I'm not a perl pro, so take this patch with a grain of salt. The only indication I have that this patch is fine is that it makes the lintian warning go away :-) Best regards Uwe Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 3fe9acf80bc0..dc9bf4701e65 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -107,7 +107,7 @@ my %man3 = map {; # semi-colon tells Perl this is a BLOCK (and not EXPR) my $mod = $base; $mod =~ s!/!::!g; $mod =~ s/\.\w+\z//; - "lib/PublicInbox/$_" => "blib/man3/PublicInbox::$mod.3" + "lib/PublicInbox/$_" => "blib/man3/PublicInbox::$mod.\$(MAN3EXT)" } qw(Git.pm Import.pm WWW.pod SaPlugin/ListMirror.pod); WriteMakefile( -- 2.29.2