aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checklicenses.py
AgeCommit message (Collapse)AuthorFilesLines
2016-08-23Documentation with unset license is under project's license (GPL-2+)Balint Reczey1-35/+5
doc/idl2deb.pod is licensed explicitly under GPL-2+ it is just not recognized by the check. Change-Id: Iabc7ee6bd6fe9080d6cdd28a29bb4c5f97b0ece9 Reviewed-on: https://code.wireshark.org/review/17268 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Petri-Dish: Balint Reczey <balint@balintreczey.hu> Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
2016-08-15checklicenses: Fix a FIXMEJoão Valverde1-12/+37
We do not whitelist GPLv2 only code because of the incompatibility with GPLv3. Move the path exception to its proper place. These files are dual-licensed in the sense of "choose one or the other", not "both licenses are in use". If the exception becomes unnecessary later it can be removed, but let's get rid of the FIXME until then. Change-Id: Ia040284b72c2ff6588b0544896cc37ae19a61613 Reviewed-on: https://code.wireshark.org/review/16957 Reviewed-by: João Valverde <j@v6e.pt>
2016-08-09checklicenses: Remove whitelisted licenses not being usedJoão Valverde1-61/+4
Removed a few licenses we shouldn't use (Apache v2, BSD 4-clause) and removed many others not currently being used. (Add on a need-to basis). Added GPLv3+ with Bison exception to licensecheck.pl. Also removed some crud to work around bugs for older licensecheck.pl versions. The original list came from the chromium project, which has a BSD-like license, and many more licenses in use, not all of them vetted for GPLv2+ compatibility. Change-Id: I67f334f21cd94904cf8a0e5d9beb659c82437df4 Reviewed-on: https://code.wireshark.org/review/16966 Petri-Dish: João Valverde <j@v6e.pt> Reviewed-by: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
2016-08-06checklicenses.py: Remove some boilerplate from upstreamJoão Valverde1-6/+0
Change-Id: If8a1537fe5ad0c5decaf2facf6fd0c43b32ffe70 Reviewed-on: https://code.wireshark.org/review/16930 Reviewed-by: João Valverde <j@v6e.pt>
2016-08-06Add licensecheck.pl to our /tools directory and use itJoão Valverde1-20/+59
Source: https://anonscm.debian.org/cgit/collab-maint/devscripts.git/plain/scripts/licensecheck.pl?h=v2.16.2 Removed regex to check files without an extension. Change-Id: Icf98d0da2d201731da7134799ead0d2dc5c3fc39 Reviewed-on: https://code.wireshark.org/review/16913 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
2016-08-05checklicenses.py: Whitelist some plaintext files without license requirementsJoão Valverde1-0/+15
Change-Id: I029ef1d52ac6edd44c0bac41adb86361ddd94272 Reviewed-on: https://code.wireshark.org/review/16898 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-01-12Lemon: resync with upstreamAlexis La Goutte1-0/+3
lemon: Thu Oct 29 13:48:15 2015 lempar: Tue Nov 10 14:51:22 2015 a copy of all Wireshark changes are available https://github.com/alagoutte/sqlite/tree/wireshark Change-Id: I51f8b40a7087362502f6ce2156820a9f107ddf15 Reviewed-on: https://code.wireshark.org/review/13033 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-11-21autotools: Fix extra-compiler-warnings for system headersJoão Valverde1-3/+0
Use -isystem instead of -I for external headers with GCC/clang to squash all the noise. cmake already uses -isystem by default for supported platforms/compilers. Change-Id: Ia6c9d1eb9b894fda6f48c531094d792e16fd39fc Reviewed-on: https://code.wireshark.org/review/11947 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-11-12[GTK] Replace deprecated gdk_pixbuf_new_from_inline()João Valverde1-1/+7
Use GResource instead, if available. Add autotools and cmake compile time checks for build requirements (GIO >= 2.32 and GDK-Pixbuf >= 2.26). Merge all the various static pixbuf csource header files into a single pixbuf-csource.h header with external linkage through use of the tools/make-pixbuf-csource.pl script. Fix inline pixbuf build target for some image paths (broken for GTK in gb4a4de7). Add missing 'expert_ok.png' file to distribution (GTK only). Minor improvements to style/structure of ui/gtk/Makefile.am. Bug: 10750 Change-Id: I031296b666ee8b92730400dfa6f71f9ee4304863 Reviewed-on: https://code.wireshark.org/review/10992 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-25Always use html2text.py for FAQ, improve outputPeter Wu1-3/+0
A recent commit broke compilation with Python 3. The original author of html2text.py is deceased and the fork has increased the number of files for this "simple" helper. The html2text.py script in this patch was rewritten and its output matches with lynx (except for a few newlines around lists). This means that indentation has been added for headings, paragraphs and lists. Also, since it was written from scratch, a new license could be chosen that matches Wireshark. Since now the in-tree html2text.py script provides nicer output, remove detection of the alternative programs (elinks, links). lynx/w3m is somehow still necessary for asciidoc though. (I also looked into reusing html2text.py for the release notes to replace asciidoc, but the --format=html output produces different output (HTML adds a ToC and section numbers). For now still require lynx for release notes) Tested with Python 2.6.6, 2.7.9, 3.2.6 and 3.4.3 under LC_ALL=C and LC_ALL=en_US.UTF-8 on Linux. Tested reading from stdin and file, writing to file, pipe and tty. Tested with cmake (Ninja) and autotools on Arch Linux x86_64. Test: # For each $PATH per python version, execute (with varying LC_ALL) help/faq.py -b | tools/html2text.py /dev/stdin | md5sum help/faq.py -b | tools/html2text.py | md5sum help/faq.py -b | tools/html2text.py help/faq.py -b | tools/html2text.py >/dev/null Change-Id: I6409450a3e6c8b010ca082251f9db7358b0cc2fd Reviewed-on: https://code.wireshark.org/review/7779 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-24checklicenses.py: add python3 compatibilityPeter Wu1-21/+24
Tested with Python 2.5.6, 2.6.6, 2.7.9, 3.2.6, 3.4.3. Change-Id: I5893bb32d339118ec968edc7de0e185e39ab4f81 Reviewed-on: https://code.wireshark.org/review/7789 Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-12checklicenses.py: check the first 150 lines of a filePascal Quantin1-1/+1
It should solve the recent failure seen since gdf164df Change-Id: If86bff18fcd9157941ea843ad5029c9d0b2f0b32 Reviewed-on: https://code.wireshark.org/review/7659 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
2014-11-11Tools: Add fix_pragma_wdocumentation to UNKNOWN licenceAlexis La Goutte1-0/+4
Change-Id: Ib5665924b99644c52c95d408c7cff19509cf3eb2 Reviewed-on: https://code.wireshark.org/review/5241 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-08-26Add custom_layer_chm.xsl to UNKNOWN (fix checklicence)Alexis La Goutte1-0/+3
Change-Id: I4c336f21f721443e83eca7b9bf8d7a6138b367f4 Reviewed-on: https://code.wireshark.org/review/3827 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-03-10Replace "see copyright notice in" message with full licenseEvan Huus1-0/+1
Should make the licensecheck buildbot happy. Also add "Public domain MIT/X11 (BSD like)" to the list of permitted licenses, since it is a combination of two permitted licenses. Change-Id: Ibc4ead09af89e9225c4e0589a2b7d06dcee6a44e Reviewed-on: https://code.wireshark.org/review/581 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Evan Huus <eapache@gmail.com>
2014-02-08Licensecheck improvements, just two errors left.Evan Huus1-10/+35
Spawned from https://www.wireshark.org/lists/wireshark-dev/201402/msg00024.html Add some ignore rules for files that can't/shouldn't include a license header. Reorganize some ignore rules to group rules with similar motivations. Add a header to autogen.sh and attribute it to just "The Wireshark Authors" since while Gilbert wrote the original version it's gone through so many changes over the years that sorting out proper authorship is unnecessarily complex. Add headers to Graeme Hewson's two files as verified by private email, and update his address in the AUTHORS file per his request. Add header to one of Ulf Lamping's files, as verified by private email. Only remaining problem is the reedsolomon code. Change-Id: Ifb7de8c4b4d79012553e29d459a0145d39f51df5 Reviewed-on: https://code.wireshark.org/review/145 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-02-07Replace "svn" with "git" all over the place.Gerald Combs1-1/+1
Rename "SVNPATH" to "GITBRANCH" since that seems more appropriate. Rename "svnversion.h" to "version.h" as Evan suggested. Update some URLs. In make-version.pl, make sure we don't set an improper upstream branch name. Use the number of commits + short hash from `git describe` for package names by default. Change-Id: I922bba8d83eabdf49284a119f55b4076bc469b96 Reviewed-on: https://code.wireshark.org/review/139 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2013-11-22Add exception for cmake/TestWindowsFSeek.c it is copied from upstream under aEvan Huus1-0/+3
valid license, but has no recognizable header and there's no reason to carry the delta. svn path=/trunk/; revision=53518
2013-11-06Add a license-ignore for tools/html2text.pyEvan Huus1-3/+8
Update the preamble to COPYING to clarify that pidl isn't the only tool we carry which isn't GPLv2-compatible. svn path=/trunk/; revision=53108
2013-10-26Updates to radiotap-iter licensing terms. The upstream version has a COPYINGEvan Huus1-0/+1
file containing what is actually the ISC license (BSD-like), so add that to the header for licensecheck's sake (and remove the confusing reference to the BSD license). This makes the code actually your choice of ISC and GPL2 (since it is used in the Linux kernel which is GPL2-only). ISC is already acceptable for us, so ISC \union * must be also, so add ISC+GPL2 to checlicenses' list. Upstream COPYING file, for reference: http://git.sipsolutions.net/?p=radiotap.git;a=blob;f=COPYING;hb=97478c8467ce7ab56b7c9e8fd7cdc0f4e2cb22ed svn path=/trunk/; revision=52879
2013-10-25Add an exception to the license-checker for Samba's special IDL license whichEvan Huus1-0/+6
appears to be compatible as far as I can tell (not a lawyer). See: https://www.wireshark.org/lists/wireshark-dev/201310/msg00234.html svn path=/trunk/; revision=52849
2013-10-18Fix lemon FSF address and add license exception for the generated mate grammarEvan Huus1-0/+6
files. One of them has no license (it is just defines) and the other gets picked up as LGPL for no reason I can discern. svn path=/trunk/; revision=52675
2013-10-06Ignore g711.c it's under some weird Sun license but appears to be fullyEvan Huus1-0/+3
GPL-compatible as far as I can tell (not a lawyer). svn path=/trunk/; revision=52415
2013-09-13cmake/TestFileOffsetBits also copied from an upstream with the appropriateEvan Huus1-0/+3
license svn path=/trunk/; revision=52020
2013-09-13Permit a bunch of 'combo' licenses (meaning GPL + something else we accept inEvan Huus1-0/+4
the same file). svn path=/trunk/; revision=52019
2013-09-13Ignore svnversion.h, it's auto-generated. Ignore lemon and except.[ch], they'reEvan Huus1-0/+12
imported from upstreams with correct licensing but without a useful header (and there's no particular reason to carry that delta). svn path=/trunk/; revision=52017
2013-09-07Ignore licensing in the macosx packaging - it's all copied from Inkscape (GPL)Evan Huus1-1/+4
as far as I can tell, so it doesn't have our headers. svn path=/trunk/; revision=51829
2013-04-30Add 'dtds' and 'fix' directories to the checklicense whitelist, they don'tEvan Huus1-0/+6
appear to be things we have licensing power over (IANAL). svn path=/trunk/; revision=49095
2013-04-18See whether we can whitelist 'GPL (v3 or later)' for the output of BisonGuy Harris1-0/+6
run on wiretap/ascend.y. svn path=/trunk/; revision=48908
2013-04-17Remove chromium-specific license exceptions which it makes no sense forEvan Huus1-338/+1
us to carry. Add an exception of our own for tools/pidl since that is GPL but the headers are not in a format that licensecheck will pick up, and fixing them all would just introduce a delta with upstream for no reason. svn path=/trunk/; revision=48896
2013-04-11Set properties.Gerald Combs1-0/+0
svn path=/trunk/; revision=48821
2013-04-10Copy Chromium's checklicenses.py fromGerald Combs1-0/+573
http://src.chromium.org/svn/trunk/src/tools/checklicenses/checklicenses.py@190741 The original referred to the project's LICENSE file. Insert its contents from http://src.chromium.org/svn/trunk/src/LICENSE@174795 Add an exception for GPLv2 or later. svn path=/trunk/; revision=48810