Bug#960367: lintian: warn about URL based fields that aren't fully qualified URLs

2020-05-11 Thread Paul Wise
Package: lintian
Version: 2.72.0
Severity: wishlist

Please warn about Homepage and other URL based fields that do not
contain fully qualified URLs. It seems that the Data::Validate::URI or
URI Perl modules might be able to be used for this. There is currently
one package in Debian that doesn't have a fully qualified Homepage URL:

$ grep -Eh '^Homepage:[^:]+$' /var/lib/apt/lists/*Sources | sort -u
Homepage: bbtools.sourceforge.net/

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#960366: lintian: warn about Homepage fields pointing to download directories

2020-05-11 Thread Paul Wise
Package: lintian
Version: 2.72.0
Severity: wishlist

Please warn about Homepage fields that point to download directories.
Download directories are not "homepages" and should not be used like
that. This complaint should be either info or pedantic level and should
only be applied to Homepage fields not all URLs in the package.

Since lintian doesn't do network requests it will have to detect
solely based on the URL rather than content of the Homepage.

URLs to ftp servers that end in a slash should be detected:

   ^ftp://.*/$

Maybe any ftp URL that doesn't end in .htm/.html should be detected?

You could also detect specific servers based on the URLs:

The first one that could be added is the GNU FTP server:

Please match this regular expression:

   (https?|ftp)://ftp\.gnu\.org/gnu/(.*)

and suggest replacing them with this replacement:

   https://www.gnu.org/software/$2

Please match this regular expression:

   (https?|ftp)://ftp\.gnu\.org/gnu/aspell/dict/[^/]*/

and suggest replacing them with this replacement (and ignore that URL):

   https://ftp.gnu.org/gnu/aspell/dict/0index.html

These are the currently known ftp.gnu.org URLs:

   $ grep -h Homepage.*ftp.gnu.org /var/lib/apt/lists/*Sources | sort -u
   Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/am/
Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/he/
Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/hy/
Homepage: ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/
Homepage: http://ftp.gnu.org/gnu/aspell/dict/0index.html
Homepage: http://ftp.gnu.org/gnu/aspell/dict/ar/
Homepage: http://ftp.gnu.org/gnu/aspell/dict/fa/
Homepage: http://ftp.gnu.org/gnu/bc/
Homepage: http://ftp.gnu.org/gnu/pem/

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#958500: False positive for missing-build-dependency-for-dh_-command dh_gnome => gnome-pkg-tools

2020-05-11 Thread Chris Lamb
Hi Niels,

> I think that commit is missing "dh_gnome" in
> data/debhelper/dh_commands-manual?   At least matches the tag output.

Bingo, well spotted. Fix committed in:

  
https://salsa.debian.org/lintian/lintian/commit/3c6da207dd13ea4689482c37f47e85c4d3be1ca3


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org 🍥 chris-lamb.co.uk
   `-



Processed: Bug#958500 marked as pending in lintian

2020-05-11 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 pending
Bug #958500 [lintian] False positive for 
missing-build-dependency-for-dh_-command dh_gnome => gnome-pkg-tools
Added tag(s) pending.

-- 
958500: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958500
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#958500: False positive for missing-build-dependency-for-dh_-command dh_gnome => gnome-pkg-tools

2020-05-11 Thread Niels Thykier
On Thu, 23 Apr 2020 22:23:10 +0100 "Chris Lamb"  wrote:
> Hi Laurent,
> 
> > I get a false positive in libmanette for the following error:
> > 
> > E: libmanette source: missing-build-dependency-for-dh_-command dh_gnome 
> > => gnome-pkg-tools
> > 
> > libmanette build-depends on dh-sequence-gnome which is provided by 
> > gnome-pkg-tools
> 
> Hm. Not sure what is going on here as we appear to already cover
> this since:
> 
>   
> https://salsa.debian.org/lintian/lintian/commit/f8887189f6bafcf799889b271ce30e8cd7311c03
> 
> 
> Regards,
> 
> -- 
>   ,''`.
>  : :'  : Chris Lamb
>  `. `'`  la...@debian.org 🍥 chris-lamb.co.uk
>`-
> 
> 

Hi Chris,

I think that commit is missing "dh_gnome" in
data/debhelper/dh_commands-manual?   At least matches the tag output.

~Niels