license.conf 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. LICENSE_EXPRESSION=
  2. LICENSE_NAMES=
  3. MODULE_LICENSES_RESTRICTIONS=
  4. MODULE_LICENSES_RESTRICTION_EXCEPTIONS=
  5. MODULE_LICENSES_RESTRICTION_TYPES=
  6. MODULEWISE_LICENSES_RESTRICTIONS=
  7. MODULEWISE_LICENSES_RESTRICTION_TYPES=
  8. DEFAULT_MODULE_LICENSE=Service-Default-License
  9. EXPLICIT_LICENSE_PREFIXES=
  10. EXPLICIT_LICENSE_EXCEPTIONS=
  11. # List of license properties which can be used to restrict transitive dependencies. There are three variables checked for each
  12. # property:
  13. # * LICENSES_<PROP_NAME>_STATIC: list of licenses which propagates this property when linking with code published by one of
  14. # them statically.
  15. # * LICENSES_<PROP_NAME>_DYNAMIC: list of licenses which propagates this property when linking with code published by one of
  16. # them dyamically.
  17. # * LICENSES_<PROP_NAME>: list of licenses which propagates this property regrdless of type of linking with code published by
  18. # one of them. Putting some license into this list is equivalent to putting it into both
  19. # LICENSES_<PROP_NAME>_STATIC and LICENSES_<PROP_NAME>_DYNAMIC lists.
  20. LICENSE_PROPERTIES= \
  21. FORBIDDEN \
  22. NDA \
  23. REQUIRE_CITATION \
  24. REQUIRE_DERIVATIVE_DISCLOSURE \
  25. REQUIRE_MODIFICATIONS_DISCLOSURE \
  26. SERVICE \
  27. UNATTRIBUTED \
  28. # NB: Licenses lists below are sorted case-insensitively. Please, keep the list sorted.
  29. LICENSES_UNATTRIBUTED= \
  30. AFL-2.0 \
  31. Amazon-SL \
  32. APSL-1.0 \
  33. Artistic-1.0-Perl \
  34. Artistic-2.0 \
  35. ASM-BSD-3-Clause \
  36. BCL \
  37. Bison-Exception \
  38. Bison-exception-2.2 \
  39. BouncyCastle-MIT \
  40. BSD-3-Clause-Clear \
  41. BSD-3-Clause-Open-MPI \
  42. BSD-4-Clause-Shortened \
  43. Bsd-New-Tcpdump \
  44. Carnegie-Mellon \
  45. Carnegie-Mellon-Contributors \
  46. CC-BY-NC-1.0 \
  47. CC-BY-NC-2.0 \
  48. CC-BY-NC-2.5 \
  49. CC-BY-NC-3.0 \
  50. CC-BY-NC-ND-1.0 \
  51. CC-BY-NC-ND-2.0 \
  52. CC-BY-NC-ND-2.5 \
  53. CC-BY-NC-ND-3.0 \
  54. CC-BY-NC-SA-1.0 \
  55. CC-BY-NC-SA-2.0 \
  56. CC-BY-NC-SA-2.5 \
  57. CC-BY-NC-SA-3.0 \
  58. CC-BY-ND-1.0 \
  59. CC-BY-ND-2.0 \
  60. CC-BY-ND-2.5 \
  61. CC-BY-ND-3.0 \
  62. CC-BY-SA-1.0 \
  63. CC-BY-SA-2.0 \
  64. CC-BY-SA-2.5 \
  65. CC-BY-SA-3.0 \
  66. CC-BY-SA-4.0 \
  67. CDDL \
  68. CECILL-B \
  69. ClArtistic \
  70. DSO-1.1 \
  71. Elastic-License-2.0 \
  72. FSFUL \
  73. FSFULLR \
  74. GCC-exception-3.1 \
  75. GDAL \
  76. GFDL-1.1-or-later \
  77. Go-License \
  78. Google-Patent-License-Webm \
  79. Google-Patent-License-Webrtc \
  80. GPL-2.0-only WITH freertos-exception-2.0 \
  81. GPL-2.0-only WITH Mysql-Linking-Exception-2018 \
  82. GPL-2.0-only WITH Universal-FOSS-exception-1.0 \
  83. GPL-2.0-or-later WITH Avisynth-C-Interface-Exception \
  84. GPL-2.0-or-later WITH Bison-Exception-2.0 \
  85. GPL-2.0-or-later WITH Bison-exception-2.2 \
  86. GPL-2.0-or-later WITH C-Interface-Exception \
  87. GPL-2.0-or-later WITH freertos-exception-2.0 \
  88. GPL-2.0-or-later WITH Libtool-exception \
  89. GPL-2.0-or-later WITH mif-exception \
  90. GWT-Terms \
  91. Hdf5 \
  92. HPND-sell-variant \
  93. HSQLDB-BSD-3-Clause \
  94. Ibm-Dhcp \
  95. Ietf-trust \
  96. ImageMagick \
  97. Intel-Material \
  98. IPL-1.0 \
  99. JAMon-BSD-3-Clause \
  100. jQuery-MIT \
  101. LGPL-3.0-or-later WITH ZeroMQ-Exception \
  102. LicenseRef-scancode-afpl-9.0 \
  103. LicenseRef-scancode-amd-historical \
  104. LicenseRef-scancode-anu-license \
  105. LicenseRef-scancode-autoconf-simple-exception \
  106. LicenseRef-scancode-autoconf-simple-exception-2.0 \
  107. LicenseRef-scancode-bsd-3-clause-jtag \
  108. LicenseRef-scancode-bsd-axis-nomod \
  109. LicenseRef-scancode-bsd-new-nomod \
  110. LicenseRef-scancode-bsd-no-disclaimer \
  111. LicenseRef-scancode-bsd-x11 \
  112. LicenseRef-scancode-bsla-no-advert \
  113. LicenseRef-scancode-cavium-malloc \
  114. LicenseRef-scancode-cc-by-2.0-uk \
  115. LicenseRef-scancode-cc-devnations-2.0 \
  116. LicenseRef-scancode-cc-sampling-1.0 \
  117. LicenseRef-scancode-cmu-simple \
  118. LicenseRef-scancode-commercial-license \
  119. LicenseRef-scancode-commons-clause \
  120. LicenseRef-scancode-delorie-historical \
  121. LicenseRef-scancode-flex-2.5 \
  122. LicenseRef-scancode-free-unknown \
  123. LicenseRef-scancode-gary-s-brown \
  124. LicenseRef-scancode-generic-cla \
  125. LicenseRef-scancode-generic-exception \
  126. LicenseRef-scancode-intel-osl-1993 \
  127. LicenseRef-scancode-jdom \
  128. LicenseRef-scancode-mit-xfig \
  129. LicenseRef-scancode-newlib-historical \
  130. LicenseRef-scancode-nilsson-historical \
  131. LicenseRef-scancode-openssl \
  132. LicenseRef-scancode-openssl-exception-lgpl-3.0-plus \
  133. LicenseRef-scancode-openssl-nokia-psk-contribution \
  134. LicenseRef-scancode-osf-1990 \
  135. LicenseRef-scancode-other-copyleft \
  136. LicenseRef-scancode-other-permissive \
  137. LicenseRef-scancode-paul-mackerras \
  138. LicenseRef-scancode-paul-mackerras-new \
  139. LicenseRef-scancode-pcre \
  140. LicenseRef-scancode-ppp \
  141. LicenseRef-scancode-proprietary-license \
  142. LicenseRef-scancode-secret-labs-2011 \
  143. LicenseRef-scancode-ssleay-windows \
  144. LicenseRef-scancode-sun-source \
  145. LicenseRef-scancode-unknown \
  146. LicenseRef-scancode-unknown-license-reference \
  147. LicenseRef-scancode-unknown-spdx \
  148. LicenseRef-scancode-warranty-disclaimer \
  149. LicenseRef-scancode-xfree86-1.0 \
  150. LPL-1.02 \
  151. MirOS \
  152. Mit-Xfig \
  153. NAIST-2003 \
  154. NOSL \
  155. NPL-1.1 \
  156. Nvidia-Gov \
  157. OFL-1.1 \
  158. Oracle \
  159. Oracle-technology \
  160. PSF-3.7.2 \
  161. Quicklz \
  162. Ruby \
  163. Sendmail \
  164. Spencer-99 \
  165. SSPL-1.0 \
  166. Stlport-4.5 \
  167. SZIP \
  168. TCL \
  169. TU-Berlin-1.0 \
  170. Unicode-TOU \
  171. Universal-FOSS-exception-1.0 \
  172. Unknown \
  173. Vcalendar \
  174. Vim \
  175. X11-Adobe-Dec \
  176. X11-Hanson \
  177. Xfree86-1.0 \
  178. Xnet
  179. LICENSES_FORBIDDEN= \
  180. AGPL-3.0-only \
  181. AGPL-3.0-or-later \
  182. Artistic-1.0 \
  183. confluent-community-1.0 \
  184. # Group for proprietary code licenses
  185. LICENSES_NDA= \
  186. Intel-NDA \
  187. mimepp \
  188. OracleOebs
  189. # These licenses allow use with opensource code only
  190. LICENSES_REQUIRE_MODIFICATIONS_DISCLOSURE= \
  191. CDDL-1.0 \
  192. CDDL-1.1 \
  193. LICENSES_REQUIRE_MODIFICATIONS_DISCLOSURE_DYNAMIC= \
  194. EPL-1.0 \
  195. EPL-2.0 \
  196. LICENSES_REQUIRE_DERIVATIVE_DISCLOSURE= \
  197. CECILL-2.0 \
  198. CPL-1.0 \
  199. GPL \
  200. GPL-1.0-only \
  201. GPL-1.0-or-later \
  202. GPL-1.1 \
  203. GPL-2.0 \
  204. GPL-2.0-only \
  205. GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 \
  206. GPL-2.0-or-later \
  207. GPL-2.0-or-later WITH GCC-exception-2.0 \
  208. GPL-3.0-only \
  209. GPL-3.0-or-later \
  210. GPLv2+ \
  211. TMate \
  212. LICENSES_REQUIRE_DERIVATIVE_DISCLOSURE_STATIC= \
  213. EPL-1.0 \
  214. EPL-2.0 \
  215. LGPL \
  216. LGPL-1.0-or-later \
  217. LGPL-2.0-only \
  218. LGPL-2.0-or-later \
  219. LGPL-2.0-or-later WITH Libtool-exception \
  220. LGPL-2.0-or-later WITH Qt-LGPL-exception-1.1 \
  221. LGPL-2.1-only \
  222. LGPL-2.1-or-later \
  223. LGPL-3.0-only \
  224. LGPL-3.0-or-later
  225. # These licenses allows any kind of linkage with proprietary code
  226. LICENSES_REQUIRE_CITATION= \
  227. 0BSD \
  228. AML \
  229. Apache-1.0 \
  230. Apache-1.1 \
  231. Apache-2.0 \
  232. Apache-2.0 WITH LLVM-exception \
  233. APSL-2.0 \
  234. Beerware \
  235. blessing \
  236. Brian-Gladman-3-Clause \
  237. BSD \
  238. BSD-1-Clause \
  239. BSD-2-Clause \
  240. BSD-2-Clause-Patent \
  241. BSD-2-Clause-Views \
  242. BSD-3-Clause \
  243. BSD-3-Clause WITH Google-Patent-License-Webm \
  244. BSD-3-Clause WITH Google-Patent-License-Webrtc \
  245. BSD-4-Clause \
  246. BSD-4-Clause-UC \
  247. BSD-derived \
  248. Bsd-Original-Uc-1986 \
  249. Bsd-Simplified-Darwin \
  250. BSD-Source-Code \
  251. Bsd-Unchanged \
  252. Bsd-Unmodified \
  253. BSL-1.0 \
  254. BSLA \
  255. bzip2-1.0.6 \
  256. CC-BY-1.0 \
  257. CC-BY-2.0 \
  258. CC-BY-2.5 \
  259. CC-BY-3.0 \
  260. CC-BY-4.0 \
  261. CC-PDDC \
  262. CC0-1.0 \
  263. Cmu-Computing-Services \
  264. CUP-Parser \
  265. curl \
  266. Custom-eigen \
  267. Custom-fft2d \
  268. Custom-fft4g \
  269. Custom-Oasis-Pkcs11 \
  270. Custom-openldap \
  271. Custom-punycode \
  272. Custom-punycode-libpsl \
  273. Custom-swig \
  274. Custom-wcwidth \
  275. DOC \
  276. EDL-1.0 \
  277. Facebook-SDK \
  278. FDK \
  279. Fftpack-2004 \
  280. FSFAP \
  281. FTL \
  282. GPL-1.0-or-later WITH Linux-syscall-note \
  283. GPL-2.0-only WITH Classpath-exception-2.0 \
  284. GPL-2.0-only WITH GCC-exception-2.0 \
  285. GPL-2.0-only WITH Linux-syscall-note \
  286. GPL-2.0-or-later WITH Linux-syscall-note \
  287. GPL-3.0-only WITH Bison-exception-2.2 \
  288. GPL-3.0-or-later WITH Bison-exception-2.2 \
  289. H2 \
  290. HPND \
  291. IBM-pibs \
  292. ICU \
  293. Ietf \
  294. IJG \
  295. Info-Zip \
  296. Intel-LLVM-SGA \
  297. Intel-Simplified \
  298. ISC \
  299. JSON \
  300. Khronos \
  301. LGPL-2.0-or-later WITH Linux-syscall-note \
  302. LGPL-2.1-only WITH Linux-syscall-note \
  303. LGPL-2.1-or-later WITH Linux-syscall-note \
  304. Libpbm \
  305. Libpng \
  306. libpng-2.0 \
  307. libtiff \
  308. LicenseRef-scancode-ams-fonts \
  309. LicenseRef-scancode-bitstream \
  310. LicenseRef-scancode-mit-no-advert-export-control \
  311. LicenseRef-scancode-oasis-ws-security-spec \
  312. LicenseRef-scancode-paul-mackerras-binary \
  313. LicenseRef-scancode-swig \
  314. LicenseRef-scancode-ws-policy-specification \
  315. Linux-OpenIB \
  316. Martin-Birgmeier \
  317. Minpack \
  318. MIT \
  319. MIT WITH Musl-Exception \
  320. MIT-0 \
  321. MIT-CMU \
  322. MIT-Modern-Variant \
  323. MIT-Nagy \
  324. Mit-Old-Style \
  325. MIT-open-group \
  326. Mit-Veillard-Variant \
  327. Mozilla-GC \
  328. MPL-1.0 \
  329. MPL-1.1 \
  330. MPL-2.0 \
  331. NCSA \
  332. NetCDF \
  333. Not-Applicable \
  334. NTP \
  335. Nvidia \
  336. OGC-1.0 \
  337. OLDAP-2.8 \
  338. OML \
  339. OpenSSL \
  340. PayPal-SDK \
  341. PCRE \
  342. PD \
  343. PHP-3.01 \
  344. PIL \
  345. Plexus \
  346. PostgreSQL \
  347. Protobuf-License \
  348. PSF \
  349. PSF-2.0 \
  350. Public-Domain \
  351. Public-Domain-US-Govt \
  352. Python-2.0 \
  353. Qhull \
  354. Red-Hat-Attribution \
  355. Repoze-public \
  356. RSA-1990 \
  357. RSA-MD \
  358. RSA-MD4 \
  359. SAX-PD \
  360. SGI-B-2.0 \
  361. Sleepycat \
  362. SMLNJ \
  363. Snprintf \
  364. Softsurfer \
  365. Spencer-94 \
  366. SSH-short \
  367. SSLeay \
  368. Sunpro \
  369. Unicode \
  370. Unicode-DFS-2016 \
  371. Unicode-Icu-58 \
  372. Unicode-Mappings \
  373. Unittest-Permissive-License \
  374. Unlicense \
  375. Unrar \
  376. UPL-1.0 \
  377. Vertica \
  378. W3C \
  379. W3C-19980720 \
  380. WTFPL \
  381. X11 \
  382. X11-Lucent \
  383. X11-XConsortium-Veillard \
  384. YandexOpen \
  385. Zlib \
  386. zlib-acknowledgement \
  387. ZPL-2.1 \
  388. LICENSES_REQUIRE_CITATION_DYNAMIC= \
  389. LGPL \
  390. LGPL-2.0-only \
  391. LGPL-2.0-or-later \
  392. LGPL-2.1-only \
  393. LGPL-2.1-or-later \
  394. LGPL-3.0-only \
  395. LGPL-3.0-or-later
  396. LICENSES_SERVICE= \
  397. Service-Default-License \
  398. Service-Dll-Harness \
  399. Service-Prebuilt-Tool \
  400. Service-Py23-Proxy \
  401. Service-Unknown-License-Java \
  402. macro _DONT_REQUIRE_LICENSE() {
  403. SET(EXPLICIT_LICENSE_PREFIXES "")
  404. }
  405. ### @usage: LICENSE(licenses...)
  406. ###
  407. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  408. ### library satisfying all conditions of any of the listed licenses.
  409. ###
  410. ### A license must be prescribed for contribs
  411. macro LICENSE(Flags...) {
  412. SET(LICENSE_EXPRESSION $Flags)
  413. SET(LICENSE_NAMES $Flags)
  414. # TODO(YMAKE-1136) avoid abusing LICENSE
  415. # NOTICE: final value of MODVER might not be set yet if VERSION macro is called after LICENSE. Var expansion is
  416. # escaped here to prevent eager value substitution by SET but allow delayed value substitution when
  417. # adding linking SBOM data command to graph.
  418. SET_APPEND(_SBOM_INFO_GLOBAL "path=${MODDIR};ver=\${join=.:MODVER};lang=${MODULE_LANG}")
  419. }
  420. ### @usage LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  421. ###
  422. ### Restrict licenses of direct and indirect module dependencies.
  423. ###
  424. ### ALLOW_ONLY restriction type requires dependent module to have at least one license without properties not listed in restrictions list.
  425. ###
  426. ### DENY restriction type forbids dependency on module with no license without any listed property from the list.
  427. ###
  428. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  429. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  430. macro LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  431. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  432. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  433. }
  434. ### @usage MODULEWISE_LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  435. ###
  436. ### Restrict licenses per module only, without it peers.
  437. ###
  438. ### ALLOW_ONLY restriction type requires module to have at least one license without properties not listed in restrictions list.
  439. ###
  440. ### DENY restriction type forbids module with no license without any listed property from the list.
  441. ###
  442. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  443. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  444. macro MODULEWISE_LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  445. SET_APPEND(MODULEWISE_LICENSES_RESTRICTION_TYPES $TYPE)
  446. SET_APPEND(MODULEWISE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  447. }
  448. ### @usage LICENSE_RESTRICTION_EXCEPTIONS(Module...)
  449. ###
  450. ### List of modules for exception from LICENSE_RESTRICTION and MODULEWISE_LICENSE_RESTRICTION logic.
  451. macro LICENSE_RESTRICTION_EXCEPTIONS(EXCEPT...) {
  452. SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT)
  453. }