summaryrefslogtreecommitdiffstats
path: root/third_party/devscripts
diff options
context:
space:
mode:
authorskyostil@google.com <skyostil@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 12:13:42 +0000
committerskyostil@google.com <skyostil@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 12:13:42 +0000
commit850e8fb81db6752b823512ba615447e984171264 (patch)
treec2b7690a93cc2e1e800991b21f448296087fdd63 /third_party/devscripts
parent6ed25679b963b4798dc56a6f407b570b38d3f2e2 (diff)
downloadchromium_src-850e8fb81db6752b823512ba615447e984171264.zip
chromium_src-850e8fb81db6752b823512ba615447e984171264.tar.gz
chromium_src-850e8fb81db6752b823512ba615447e984171264.tar.bz2
Fix license check for GL headers
The EGL headers are released under an MIT/X11 license by The Khronos Group. This patch updates licensecheck.pl to recognize the license wording as it describes "Materials" rather than "Software". The OpenGL ES 2.0 headers are released under the SGI Free Software License B (http://oss.sgi.com/projects/FreeB/) by The Khronos Group. This license is added to the whitelist and licensecheck.pl is updated to recognized the mistyped "SGI Free Software B License" which is used in the header files. BUG=98097 TEST=none Review URL: http://codereview.chromium.org/8351079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/devscripts')
-rw-r--r--third_party/devscripts/chromium-1.patch18
-rwxr-xr-xthird_party/devscripts/licensecheck.pl4
2 files changed, 15 insertions, 7 deletions
diff --git a/third_party/devscripts/chromium-1.patch b/third_party/devscripts/chromium-1.patch
index b1c449c..b1000d4 100644
--- a/third_party/devscripts/chromium-1.patch
+++ b/third_party/devscripts/chromium-1.patch
@@ -1,5 +1,5 @@
---- licensecheck.pl.orig 2011-10-21 14:02:13.282141718 -0700
-+++ licensecheck.pl 2011-10-21 14:07:54.802155126 -0700
+--- licensecheck.pl.orig 2011-11-02 20:24:19.000000000 +0000
++++ licensecheck.pl 2011-11-02 20:24:38.000000000 +0000
@@ -241,6 +241,12 @@
my @find_args = ();
my $files_count = @ARGV;
@@ -72,15 +72,18 @@
$license = "GPL (unversioned/unknown version) $license";
}
-@@ -437,7 +426,7 @@
+@@ -437,9 +426,9 @@
$license = "QPL $license";
}
- if ($licensetext =~ /http:\/\/opensource\.org\/licenses\/mit-license\.php/) {
+ if ($licensetext =~ /opensource\.org\/licenses\/mit-license\.php/) {
$license = "MIT/X11 (BSD like) $license";
- } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the Software\), to deal in the Software/) {
+- } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the Software\), to deal in the Software/) {
++ } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and(\/or)? associated documentation files \(the (Software|Materials)\), to deal in the (Software|Materials)/) {
$license = "MIT/X11 (BSD like) $license";
+ }
+
@@ -448,15 +437,21 @@
}
@@ -117,7 +120,12 @@
$license = "Apache (v$1) $license";
}
-@@ -495,7 +492,7 @@
+@@ -491,11 +488,11 @@
+ $license = "CeCILL-$1 $license";
+ }
+
+- if ($licensetext =~ /under the SGI Free Software License B/) {
++ if ($licensetext =~ /under the SGI Free Software (B License|License B)/) {
$license = "SGI Free Software License B $license";
}
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl
index f2a0bbd..40057cc 100755
--- a/third_party/devscripts/licensecheck.pl
+++ b/third_party/devscripts/licensecheck.pl
@@ -428,7 +428,7 @@ sub parselicense($) {
if ($licensetext =~ /opensource\.org\/licenses\/mit-license\.php/) {
$license = "MIT/X11 (BSD like) $license";
- } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the Software\), to deal in the Software/) {
+ } elsif ($licensetext =~ /Permission is hereby granted, free of charge, to any person obtaining a copy of this software and(\/or)? associated documentation files \(the (Software|Materials)\), to deal in the (Software|Materials)/) {
$license = "MIT/X11 (BSD like) $license";
}
@@ -488,7 +488,7 @@ sub parselicense($) {
$license = "CeCILL-$1 $license";
}
- if ($licensetext =~ /under the SGI Free Software License B/) {
+ if ($licensetext =~ /under the SGI Free Software (B License|License B)/) {
$license = "SGI Free Software License B $license";
}