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

Bug#498875: lintian: please detect 2.x licences and warn



Raphael Geissert wrote:
> Tags: patch
> 

Now actually including the patch.

Cheers,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
diff --git a/checks/copyright-file b/checks/copyright-file
index 5b4c050..f035cf9 100644
--- a/checks/copyright-file
+++ b/checks/copyright-file
@@ -178,6 +178,14 @@ if (m/(Free\s*Software\s*Foundation.*02139|02111-1307)/s) {
     tag "old-fsf-address-in-copyright-file", "";
 }
 
+if (m/(The\s+PHP\s+Licen[cs]e,?\s+version\s+2)/si) {
+    tag "copyright-refers-to-non-free-php-license", "";
+}
+
+if (m/(The\s+PHP\s+Licen[cs]e,?\s+version\s+3\.0[^\d])/si) {
+    tag "copyright-refers-to-problematic-php-license", "";
+}
+
 # Whether the package is covered by the GPL, used later for the libssl check.
 my $gpl;
 
diff --git a/checks/copyright-file.desc b/checks/copyright-file.desc
index dea3ff6..eefe847 100644
--- a/checks/copyright-file.desc
+++ b/checks/copyright-file.desc
@@ -266,3 +266,16 @@ Info: This package appears to be covered by the GNU GPL but depends on
  linked with OpenSSL, is covered by the GNU GPL, please add a lintian
  override for this tag.  Lintian currently has no good way of
  distinguishing between that case and problematic packages.
+
+Tag: copyright-refers-to-non-free-php-license
+Type: error
+Ref: http://ftp-master.debian.org/REJECT-FAQ.html, http://thread.gmane.org/gmane.linux.debian.devel.legal/23332
+Info: This package appears to be covered by the PHP license version 2.x
+ which is considered non-free for anything but PHP.
+
+Tag: copyright-refers-to-problematic-php-license
+Type: warning
+Ref: http://ftp-master.debian.org/REJECT-FAQ.html, http://thread.gmane.org/gmane.org/gmane.linux.debian.devel.legal/22547
+Info: This package appears to be covered by the PHP license version 3.0
+ which is considered problematic for anything that is not PHP and has no
+ contribution from the PHP Group.


Reply to: