Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-07-16 Thread Russ Allbery
Sergio Durigan Junior writes: > So, I think I found the problem, and I have a possible solution. > Apparently, some manpages have malformed .TH headers, and Perl's > Text::ParseWords::parse_line doesn't cope well with them. For example, > kde-dev-scripts's

Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-07-08 Thread Sergio Durigan Junior
On Wednesday, July 08 2020, Felix Lechner wrote: > On Wed, Jul 8, 2020 at 7:41 PM Sergio Durigan Junior > wrote: >> >> I honestly don't feel like spending >> too much time investigating Perl's internals > > What does it have to do with Perl's internals, please? Well, according to ParseWords's

Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-07-08 Thread Felix Lechner
Hi On Wed, Jul 8, 2020 at 7:41 PM Sergio Durigan Junior wrote: > > I honestly don't feel like spending > too much time investigating Perl's internals What does it have to do with Perl's internals, please? > What do you think? Would Text::Balanced help extract the quoted strings, and work from

Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-07-08 Thread Sergio Durigan Junior
On Wednesday, July 08 2020, Felix Lechner wrote: > Hi Sergio, Hey Felix, > On Wed, Jun 10, 2020 at 9:57 AM Sergio Durigan Junior > wrote: >> >> after calling Text::ParseWords::parse_line, we check to >> see if the first package name has a comma as the last char. If it does, >> then we assume

Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-07-08 Thread Felix Lechner
Control: reopen -1 Hi Sergio, On Wed, Jun 10, 2020 at 9:57 AM Sergio Durigan Junior wrote: > > after calling Text::ParseWords::parse_line, we check to > see if the first package name has a comma as the last char. If it does, > then we assume that there will be at least one other package name >

Bug#962601: manpage-section-mismatch doesn't take into account manpages with multiple binaries

2020-06-10 Thread Sergio Durigan Junior
Package: lintian Version: 2.80.0 Severity: normal Tags: patch Hi, I found a lintian limitation while working with a manpage that refers to two different binaries. In this scenario, lintian will mistakenly consider the name of the second binary as the man section number, and will issue a