From owner-freebsd-hackers@freebsd.org Sat Apr 4 18:34:25 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3AFE627D6B3 for ; Sat, 4 Apr 2020 18:34:25 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48vlnl21WNz453c for ; Sat, 4 Apr 2020 18:34:18 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 55FEE27D6A7; Sat, 4 Apr 2020 18:34:10 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4E4D727D6A6 for ; Sat, 4 Apr 2020 18:34:10 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48vlnJ2wsRz44wm for ; Sat, 4 Apr 2020 18:33:55 +0000 (UTC) (envelope-from ypankov@fastmail.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 656345C018E; Sat, 4 Apr 2020 14:33:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 04 Apr 2020 14:33:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=3 gLxSfpMqwGY0ajkK3rqd2sdSJ8J7slpOxuWNYyxR6o=; b=dlIxZDJL49RYH3Zqp 1zWAn1lyYk0BldRFiMRutrwyiNedN9u/6gjR8xtlQAuJJ+ZmG20z2+V4yS0cnjzs ZNnD8YnhqbFgHrjpKZ8nPB/dF+6iB7R2KV4M7FTgCXzNNh2KCLTMXVu1/TZzxmx3 Nk24haRFrobJzUgEi1gPv+neM52/dav9weAueHCh+NjC66YnBbvTJXeKeDxyL/vT VHpnzg9op4pYVDEeN/SCgue85TQBGcZBsSUelu37jwouipIAdunouCqE/PUEDlsF COSnwZjzFLlLl1Llgn9n8ml01t9rqt/yJ9PkPmJkplUMStl3ODLFLkUTzYt+R9os ZIa3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=3gLxSfpMqwGY0ajkK3rqd2sdSJ8J7slpOxuWNYyxR 6o=; b=sWZbbMokaO6r8LphMrl0DnpBjUaXy7lBg0ij30FDDr+K0NnavEL4lMc0W ghX4ZEQkvL4Mw/KANjkI/HQ8dyFvvuDKwnhoQPI52je2gLdEfXk4PhZBQuDWGy49 wISyedGfAvLR43g4oB9DFn4wQuNDnQzPi43ggkKS1ojfu1Vsya55CBDUxZSB6HJD VWiGU3uLDpUJQyQX9/vHWz271zHSeHp1qTuqzjhQZjsjVIA7ElaWfwHPaH0+CmOZ Xqssk0IiBgZHTk4zGKGlxFLr132OYYy5uMeFKOrhtL/feENS4YCdmXnzlAky3zbt t7/GkKWB7yi/+3n7ULp/uFnjKSWXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdekgdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpegjuhhrihcurfgrnhhkohhvuceohihprghnkhhovhesfhgr shhtmhgrihhlrdgtohhmqeenucffohhmrghinhepfhhrvggvsghsugdrughknecukfhppe ekhedrudejgedrvddtvddrgeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhephihprghnkhhovhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from [192.168.1.6] (unknown [85.174.202.47]) by mail.messagingengine.com (Postfix) with ESMTPA id B32A3306D161; Sat, 4 Apr 2020 14:33:45 -0400 (EDT) Subject: Re: orphan .Xr in manual pages To: Poul-Henning Kamp Cc: hackers@freebsd.org, "Rodney W. Grimes" References: <202004041753.034HrY0u079081@gndrsh.dnsmgr.net> <30799.1586023332@critter.freebsd.dk> <30844.1586023629@critter.freebsd.dk> From: Yuri Pankov Message-ID: <21097a9a-a976-998a-0d23-b4fea11048eb@fastmail.com> Date: Sat, 4 Apr 2020 21:33:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <30844.1586023629@critter.freebsd.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48vlnJ2wsRz44wm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fastmail.com header.s=fm2 header.b=dlIxZDJL; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=sWZbbMok; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (mx1.freebsd.org: domain of ypankov@fastmail.com designates 66.111.4.29 as permitted sender) smtp.mailfrom=ypankov@fastmail.com X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; FREEMAIL_FROM(0.00)[fastmail.com]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[fastmail.com:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[fastmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[47.202.174.85.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (-9.84), ipnet: 66.111.4.0/24(-4.89), asn: 11403(-2.69), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[29.4.111.66.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[fastmail.com:s=fm2,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[fastmail.com]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DBL_FAIL(0.00)[query timed out] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2020 18:34:25 -0000 Poul-Henning Kamp wrote: > -------- > In message <30799.1586023332@critter.freebsd.dk>, "Poul-Henning Kamp" writes: > >> The script was attached to the email, and I'd love for somebody to adopt it, >> I just wanted to see how bad the problem was... > > I guess that got stripped by mailman, here it is: > > http://phk.freebsd.dk/misc/man_xref.sh Here's a bit shorter version using the mandoc's lint: for m in `find /usr/share/man -type f`; do mandoc -Tlint $m | grep 'referenced manual not found' done Running this on installed system produces nearly the same results as in the original mail. We could enhance mandoc to make the missing .Xr target get its own warning level, to further enhance this.