Package: wnpp
Severity: wishlist
Owner: Peter <pe...@pblackman.plus.com>
X-Debbugs-Cc: debian-de...@lists.debian.org, pe...@pblackman.plus.com

* Package name    : licenserecon
  Version         : 1.0
  Upstream Contact: Peter Blackman <pe...@pblackman.plus.com>
* URL             : https://salsa.debian.org/PeterB/licenserecon
* License         : BSD-2-clause
  Programming Lang: Pascal
  Description     : Reconcile debian/copyright licenses against licensecheck 
output

Uses licensecheck to determine file licences and,
 if not 'UNKNOWN', checks them against Dep5 debian/copyright.

Is intended as a partial replacement for license-reconcile (removed in 2019).
I use this package for checking debian/copyright in other packages I maintain.
Will need a sponsor.


From the man page;
===================================================================================

       lrc

DESCRIPTION
       Lrc parses a valid DEP-5 copyright file and notes the licenses of files in the source tree. Licensecheck is then run, and
       the results compared. Differences between licenses in debian/copyright 
and the output of licensecheck are reported.

       It  should  be  run  in the top level of a cleaned Debian source tree, with a valid DEP-5 copyright file. The source tree        should be clean, otherwise results will be contaminated by spurious  reports  on  the  build's  generated  files.  It  is
       advisable to run lintian first to ensure correct syntax of 
debian/copyright.

       The  results  are indicative only, and not a substitute for manual checking. It is intended to report obvious errors. The        design intends to minimise false positives as much as is practical. However, false positives will occur if  the  spelling        of  the  license  short-string  is not identical between the file and debian/copyright. This is quite likely with complex
       licensing such as 'and'/'or' constructs and specific exceptions.

       Only files with a copyright header are checked. False negatives may occur  if  licensecheck  cannot  determine  a file's        license.  Files  named  copyright, copying, readme etc. are not checked as they often specify the licenses of other files
       rather than their own.

EXIT CODES
       0: No differences found
       1: Failure to run (no debian/copyright etc)
       3: License differences found

SAMPLE OUTPUT
       Sample output invoking lrc.

        SUCCESS:
               Parsing Source Tree ....
               Running licensecheck ....

               No differences found

        DIFFERENCES:
               Parsing Source Tree ....
               Running licensecheck ....

               d/copyright | licensecheck

               LGPL-2.1+   | GPL-2+       test/src/config/chan.c
               GPL-2+      | public-domain share/lua/int/dummy.lua
               GPL-2+      | LGPL-2.1+ modules/access/sr_common.h

AUTHOR
       Peter Blackman <pe...@pblackman.plus.com>

SEE ALSO
       licensecheck (1)

2023-11-21 1                                                         lrc(1)
 Manual page lrc(1) line 7/56 (END) (press h for help or q to quit)

Reply via email to