[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#785329: lintian: Add check for CMake private files



Control: tags -1 moreinfo

On 2015-05-14 21:12, Lisandro Damián Nicanor Pérez Meyer wrote:
> Package: lintian
> Version: 2.5.30+deb8u4
> Severity: wishlist
> Tags: patch
> 
> Hi! I am attaching a patch for detecting CMake private files.
> 
> I am not really versed in perl, so if you think something must be changed
> do not heasitate in replying :)
> 
> Thanks, Lisandro.
> 
> [...]

Hi,

Thanks for working on this.

We will need a test case in the test suite before merging it.  The
description might be needing a bit of rewording.  How about:

"""
Info: This package contains a file in a path reserved solely for
 <tt>CMake</tt>. This normally means you are shipping a <tt>Find</tt>
 module. Libraries should not ship Find modules at all but Config files
 instead.
 .
 The Config files should be installed in the unversioned path
 usr/(lib/&lt;arch&gt;|lib|share)/cmake/&lt;name&gt;*/
 .
 By using CMake Config files in the unversioned path, the package will
 continue to work as expected when a new version of CMake is uploaded.
"""

Admittedly, I presumed there was only one (valid) prefix and it was
always "usr".

More suggestions:

 * If you got any related documentation, please consider adding a Ref
   field listing it.

Thanks,
~Niels


Reply to: