[SCM] Debian package checker branch, master, updated. 1.24.2-58-gb21c5cf
The following commit has been merged in the master branch:
commit b21c5cf4687eb01b7f9e3a8295548acadc2d3c2f
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date: Thu Jul 31 20:09:23 2008 +0100
Don't flag GPL1 or W3C licensed packages as needing common-licenses/GPL
+ [ADB] Don't flag use of version 1 of the GPL, or licenses using phrases such as
"compatible with the GPL" (for example, the W3C Software License) as missing a
reference to common-licenses
diff --git a/checks/copyright-file b/checks/copyright-file
index a31568a..79e49b7 100644
--- a/checks/copyright-file
+++ b/checks/copyright-file
@@ -233,6 +233,9 @@ if (m,/usr/share/common-licenses,
|| m/GNU Free Documentation License\s*Version 1\.1/
|| m/CeCILL FREE SOFTWARE LICENSE AGREEMENT/
|| m/CNRI OPEN SOURCE GPL-COMPATIBLE LICENSE AGREEMENT/
+ || m/GNU GENERAL PUBLIC LICENSE\s+Version 1/
+ || m/compatible\s+with\s+(the\s+)?(GNU\s+)?GPL/
+ || m/(GNU\s+)?GPL\W+compatible/
|| $wrong_directory_detected) {
# False positive or correct reference. Ignore.
} elsif (m/GNU Free Documentation License/i or m/\bGFDL\b/) {
diff --git a/debian/changelog b/debian/changelog
index d85e134..bb40700 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ lintian (1.24.3) unstable; urgency=low
it flags aren't easily fixable, particularly where the copyright file
is (semi)automatically generated. (Closes: #491302, #491365, #491685)
+ [ADB] Use Lintian::Collect for accessing control fields
+ + [ADB] Don't flag use of version 1 of the GPL, or licenses using phrases
+ such as "compatible with the GPL" (for example, the W3C Software
+ License) as missing a reference to common-licenses
* checks/cruft:
+ [ADB] Use Lintian::Collect for accessing control fields
* checks/debconf:
diff --git a/testset/copyright/debian/control b/testset/copyright/debian/control
index 535d77a..639f49a 100644
--- a/testset/copyright/debian/control
+++ b/testset/copyright/debian/control
@@ -50,3 +50,14 @@ Package: copyright.old-style
Architecture: all
Description: use an old-style directory structure
This is just a sentence.
+
+Package: copyright.full-gpl-1
+Architecture: all
+Description: checks inclusion of GPL1
+ This should not trigger any errors as the common license
+ files only cover GPL >= 2
+
+Package: copyright.w3c
+Architecture: all
+Description: the w3c license claims to be "gpl compatible"
+ This is just a sentence.
diff --git a/testset/copyright/debian/copyright.full-gpl-1 b/testset/copyright/debian/copyright.full-gpl-1
new file mode 100644
index 0000000..1facebe
--- /dev/null
+++ b/testset/copyright/debian/copyright.full-gpl-1
@@ -0,0 +1,206 @@
+A copy of the GNU General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The license agreements of most software companies try to keep users
+at the mercy of those companies. By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must tell them their rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License. The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications. Each
+licensee is addressed as "you".
+
+ 1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program. You may charge a fee for the physical act of
+transferring a copy.
+
+ 2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+ a) cause the modified files to carry prominent notices stating that
+ you changed the files and the date of any change; and
+
+ b) cause the whole of any work that you distribute or publish, that
+ in whole or in part contains the Program or any part thereof, either
+ with or without modifications, to be licensed at no charge to all
+ third parties under the terms of this General Public License (except
+ that you may choose to grant warranty protection to some or all
+ third parties, at your option).
+
+ c) If the modified program normally reads commands interactively when
+ run, you must cause it, when started running for such interactive use
+ in the simplest and most usual way, to print or display an
+ announcement including an appropriate copyright notice and a notice
+ that there is no warranty (or else, saying that you provide a
+ warranty) and that users may redistribute the program under these
+ conditions, and telling the user how to view a copy of this General
+ Public License.
+
+ d) You may charge a fee for the physical act of transferring a
+ copy, and you may at your option offer warranty protection in
+ exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+ 3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+ a) accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ b) accompany it with a written offer, valid for at least three
+ years, to give any third party free (except for a nominal charge
+ for the cost of distribution) a complete machine-readable copy of the
+ corresponding source code, to be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ c) accompany it with the information you received as to where the
+ corresponding source code may be obtained. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it. For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+ 4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License. However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+ 5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions. You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+ 7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+ 8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
diff --git a/testset/copyright/debian/copyright.w3c b/testset/copyright/debian/copyright.w3c
new file mode 100644
index 0000000..95c3f40
--- /dev/null
+++ b/testset/copyright/debian/copyright.w3c
@@ -0,0 +1,95 @@
+This package was debianized by J Random Developer <j.random@example.org> on
+Tue, 8 Nov 2005 00:27:44 +0100.
+
+It was downloaded from http://search.cpan.org/dist/W3C-LinkChecker/
+
+Copyright Holder: the software was developed by following people for the
+ W3C:
+ The W3C Link Checker Team <www-validator@w3.org>
+
+License: according to the README file, the source code of the W3C linkchecker
+is available under the terms of the W3C Software Copyright (compatible with
+the GNU GPL), which can be found at
+
+ http://www.w3.org/Consortium/Legal/copyright-software
+
+and is reproduced below:
+
+
+ W3C � SOFTWARE NOTICE AND LICENSE
+
+ [1]http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ This work (and included software, documentation such as READMEs, or
+ other related items) is being provided by the copyright holders under
+ the following license. By obtaining, using and/or copying this work,
+ you (the licensee) agree that you have read, understood, and will
+ comply with the following terms and conditions.
+
+ Permission to copy, modify, and distribute this software and its
+ documentation, with or without modification, for any purpose and
+ without fee or royalty is hereby granted, provided that you include
+ the following on ALL copies of the software and documentation or
+ portions thereof, including modifications:
+ 1. The full text of this NOTICE in a location viewable to users of
+ the redistributed or derivative work.
+ 2. Any pre-existing intellectual property disclaimers, notices, or
+ terms and conditions. If none exist, the [2]W3C Software Short
+ Notice should be included (hypertext is preferred, text is
+ permitted) within the body of any redistributed or derivative
+ code.
+ 3. Notice of any changes or modifications to the files, including the
+ date changes were made. (We recommend you provide URIs to the
+ location from which the code is derived.)
+
+ THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
+ HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
+ DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
+ TRADEMARKS OR OTHER RIGHTS.
+
+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
+ OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+ DOCUMENTATION.
+
+ The name and trademarks of copyright holders may NOT be used in
+ advertising or publicity pertaining to the software without specific,
+ written prior permission. Title to copyright in this software and any
+ associated documentation will at all times remain with copyright
+ holders.
+
+ ____________________________________
+
+ This formulation of W3C's notice and license became active on December
+ 31 2002. This version removes the copyright ownership notice such that
+ this license can be used with materials other than those owned by the
+ W3C, reflects that ERCIM is now a host of the W3C, includes references
+ to this specific dated version of the license, and removes the
+ ambiguous grant of "use". Otherwise, this version is the same as the
+ [3]previous version and is written so as to preserve the [4]Free
+ Software Foundation's assessment of GPL compatibility and [5]OSI's
+ certification under the [6]Open Source Definition. Please see our
+ [7]Copyright FAQ for common questions about using materials from our
+ site, including specific terms and conditions for packages like
+ libwww, Amaya, and Jigsaw. Other questions about this notice can be
+ directed to [8]site-policy@w3.org.
+
+
+ Joseph Reagle <[9]site-policy@w3.org>
+
+ Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06
+ 16:02:49 slesch Exp $
+
+References
+
+ 1. http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+ 2. http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html
+ 3. http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ 4. http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses
+ 5. http://www.opensource.org/licenses/W3C.php
+ 6. http://www.opensource.org/docs/definition.php
+ 7. http://www.w3.org/Consortium/Legal/IPR-FAQ
+ 8. mailto:site-policy@w3.org
+ 9. mailto:site-policy@w3.org
+
--
Debian package checker
Reply to: