Maintainer manual pages are already reported by lintian in pedantic mode [1]. Such manual pages may be OK per se, but, if outdated, they may cause confusion for downstream users. Thus I think it is important to report outdated maintainer manual pages. The same consensus seems to have been reached on debian-med@, in a thread on manual page maintenance [2]. I think the severity of such hint should be warning, as outdated manual pages may be misleading to the downstream users. To implement this hint, already existing code for locating maintainer manual pages could be re-used. For every located maintainer manual page, lintian should extract and compare the date and source package version in .TH line to the actual date and version provided in the d/changelog. Possible heuristics: upstream parts of the versions must match, date in the manual page must be more recent than the last upload of previous upstream release. [1] https://lintian.debian.org/tags/maintainer-manual-page.html [2] https://lists.debian.org/debian-med/2020/12/msg00224.html Andrius
As explained in [1], there actually are conventions for writing man pages given in 'man 7 man-pages'. Thus .TH line can be trusted to contain the date of last non-trivial change: date: The date of the last nontrivial change that was made to the man page. (Within the man-pages project, the necessary updates to these timestamps are handled automatically by scripts, so there is no need to manually update them as part of a patch.) Dates should be written in the form YYYY-MM-DD. [1] https://lists.debian.org/debian-devel/2021/02/msg00040.html Andrius
Hi Andrius, I like your idea, but how can the dates—being handled automatically—ever be wrong? Do the scripts neglect to adjust manual pages provided by Debian's maintainers? Kind regards Felix Lechner
Hi Felix, Thanks for reviewing my proposal! My proposal aims at the manpages that are written manually or semi-automatically. Particularly 'man-pages' project is not the aim here, I cite their conventions just to show that Debian manpages are supposed to follow the conventions of .TH structure. Best wishes, Andrius
Hello, I am interested in giving this feature a shot. I have started work on my fork [1], and will submit a MR upon completion. [1] https://salsa.debian.org/merkys/lintian/-/commits/978552-report-outdated-manual-pages Andrius