feat(licenses): meet the LGPL notice and source terms for libvips and node-webpmux
The notices now carry the LGPL-3.0 and GPL-3.0 texts from scripts/license-texts (the LGPL text byte-identical to gnu.org's, the GPL text as the Rust toolchain ships it), whatever the dependencies ship. The LGPL section names each component with its exact version, says it ships unmodified as a separate library, and gives the upstream source release of that version: sharp-libvips v1.3.2 and libvips v8.18.3 for the libvips packages, sharp v0.35.3 for @img/sharp-win32-x64, the npm package of node-webpmux 3.2.1. The libraries built into libvips are listed with their versions from versions.json. Versions and repository URLs come from the lockfile and the installed packages. The LGPL exceptions of the license gate are no longer pending: the project owner left these items to us. A test checks the texts, the LGPL rows and the Apache-2.0 files against the committed notices. UF-059 is fixed.
This commit is contained in:
@@ -40,31 +40,30 @@ export const ALLOWED_LICENSES = [
|
||||
/**
|
||||
* Named exceptions. An exception applies only while the package still declares
|
||||
* exactly `license` in package-lock.json (null: no license declared), so a
|
||||
* license change needs a new review. `pending` marks exceptions that wait for
|
||||
* the licensing review (pending decision Q6); the gate prints them on every run.
|
||||
* license change needs a new review. `pending` marks exceptions that still wait
|
||||
* for a review; the gate prints them on every run.
|
||||
*/
|
||||
export const EXCEPTIONS = [
|
||||
{
|
||||
packages: ['@img/sharp-libvips-*'],
|
||||
license: 'LGPL-3.0-or-later',
|
||||
pending: true,
|
||||
reason: 'Prebuilt libvips for sharp, required by @huggingface/transformers (embeddings). '
|
||||
+ 'Shipped unmodified as a separate shared library in resources/node_modules and loaded '
|
||||
+ 'at runtime; LGPL obligations are listed in THIRD_PARTY_NOTICES.md.',
|
||||
+ 'at runtime. THIRD_PARTY_NOTICES.md carries the LGPL notice, the LGPL-3.0 and GPL-3.0 '
|
||||
+ 'texts and the source location of each version.',
|
||||
},
|
||||
{
|
||||
packages: ['@img/sharp-win32-x64'],
|
||||
license: 'Apache-2.0 AND LGPL-3.0-or-later',
|
||||
pending: true,
|
||||
reason: 'sharp binding for Windows; the package carries the libvips DLLs (LGPL-3.0-or-later). '
|
||||
+ 'Shipped unmodified in resources/node_modules, same terms as @img/sharp-libvips-*.',
|
||||
},
|
||||
{
|
||||
packages: ['node-webpmux'],
|
||||
license: 'LGPL-3.0-or-later',
|
||||
pending: true,
|
||||
reason: 'Required dependency of whatsapp-web.js (ADR-0005). Kept external to service.js and '
|
||||
+ 'shipped unmodified as a separate package in resources/node_modules.',
|
||||
+ 'shipped unmodified as a separate package in resources/node_modules; same notices as '
|
||||
+ '@img/sharp-libvips-*.',
|
||||
},
|
||||
{
|
||||
packages: ['@fontsource-variable/hanken-grotesk', '@fontsource-variable/jetbrains-mono'],
|
||||
|
||||
Reference in New Issue
Block a user