Commit Graph

77 Commits

Author SHA1 Message Date
Daira Hopwood 1156e43992 Clarify that patches to a dependency are under the same license as that dependency.
The relevant licenses are:

* bdb: BDB (variant of Gnu Affero GPL)
* libevent: BSD-3-clause
* libsodium: ISC
* tl_expected: CC0-1.0
* zeromq: LGPL-3+ with ZeroMQ exception

In the case of zeromq, this is an explicit condition of the license --
specifically its static linking exception, which we rely on:
"If you modify this library, you must extend this exception to your
version of the library."

In all cases, patches are necessarily derived (even if only trivially)
from the code they are patching. We technically could relicense to MIT
in some cases, but using the original license for patches we've written
is a courtesy that makes it easier for upstream to adopt the patch, even
if we don't specifically file a PR.

native_cctools is also patched, but Debian copyright policy does not
require `contrib/debian/copyright` to mention this dependency, because
it is only part of the build process and its contents do not get compiled
into the resulting build:
https://www.debian.org/doc/debian-policy/ch-archive.html#s-pkgcopyright

In all cases I checked that we have the right to distribute the patch
under the relevant license (i.e. it doesn't depend on any incompatible
third-party contributions). Reviewers should satisfy themselves of this.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2023-02-06 15:17:51 +00:00
Kris Nuttycombe 3cec519ce4 scripted-diff: Update Zcash copyrights to 2023
-BEGIN VERIFY SCRIPT-
for party in "The Zcash developers" "The Bitcoin Core developers" "Bitcoin Developers"; do
  sed -i"" -e "s#Copyright (c) \([0-9]\{4\}\)\(-[0-9]\{4\}\)\? $party#Copyright (c) \1-2023 $party#" COPYING
  sed -i"" -e "s#\(.*\)\([0-9]\{4\}\)\(-[0-9]\{4\}\)\, $party#\1\2-2023, $party#" contrib/debian/copyright
done

sed -i"" -e "s/define(_COPYRIGHT_YEAR, [0-9]\{4\})/define(_COPYRIGHT_YEAR, 2023)/" configure.ac
sed -i"" -e "s/#define COPYRIGHT_YEAR [0-9]\{4\}/#define COPYRIGHT_YEAR 2023/" src/clientversion.h

git grep "^// Copyright (c) .* The Zcash developers" \
  | awk -F ':' '{print $1}' \
  | xargs -I {} sed -i"" -e "s#// Copyright (c) \([0-9]\{4\}\)\(-[0-9]\{4\}\)\? The Zcash developers#// Copyright (c) \1-2023 The Zcash developers#" {}
-END VERIFY SCRIPT-
2023-01-23 11:31:54 -07:00
Kris Nuttycombe b8fe1d2b78 Replace fix-copyright-headers.py with a script that creates a scripted-diff git commit.
Fixes #2921
Supersedes #4926
2023-01-23 11:31:41 -07:00
Daira Hopwood 4de0d85abf The std::expected proposal has unnecessary instances of undefined behaviour
for operator->, operator*, and error(). Make these into assertion failures
(this still conforms to the proposal).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-12-08 20:53:54 +00:00
Daira Hopwood 7472b0dbca Add tl::expected. refs #4816
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-12-08 20:53:54 +00:00
Kris Nuttycombe df6e05173e
Merge pull request #6083 from zcash/leveldb-1.22
Update LevelDB to 1.22+
2022-08-10 18:14:43 -06:00
Daira Hopwood f38db34693 Add contrib/debian/copyright entry for crc32c.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-28 19:08:02 +01:00
Daira Hopwood a227652d7d Update cxx to 1.0.72.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-25 14:57:19 +01:00
Jack Grigg 0430fdf20d Upgrade to `orchard 0.2.0` 2022-07-01 01:24:15 +00:00
Daira Hopwood 5b85d9df20 halo2 is now under MIT/Apache-2.0, so does not need a declaration in `contrib/debian/copyright`.
fixes #5203

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-06-07 18:59:28 +01:00
Jack Grigg 340b2c3a84 Update orchard license with current exception text
Source: 21ad1ea5cb
which was committed directly on top of the orchard 0.1.0 release commit,
and therefore can be applied to it.
2022-06-01 20:23:28 +00:00
Kris Nuttycombe 954e2b4aa6 Add parity-scale-codec licenses to contrib/debian/copyright 2022-05-05 13:06:56 -06:00
Daira Hopwood 65d96aaa10 Switch Jack Grigg's copyright on src/rust/{include/tracing.h, src/tracing_ffi.rs} to the
Zcash developers (with his permission).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-26 18:56:34 +00:00
Daira Hopwood ac25936d0e contrib/debian/copyright: add license for Apache-2.0.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-26 18:48:31 +00:00
Daira Hopwood 21e5fa90af contrib/debian/copyright: add licenses of Rust dependencies that do not have Expat/MIT as an option.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-26 18:45:57 +00:00
Daira Hopwood 623f3568a7 contrib/debian/copyright: minor corrections and formatting
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-26 18:45:57 +00:00
Daira Hopwood 4d0c503ee5 contrib/debian/copyright: add license entries for Libtool macros.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-26 18:45:57 +00:00
Marius Kjærstad bf1cc206c0
Update copyright year to 2022 2021-12-27 00:30:51 +01:00
str4d ad35b89e05
contrib: Add space between URL and period
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-10-07 11:38:37 +13:00
Jack Grigg f574047387 contrib: Add license information for libc++ and libevent
Closes zcash/zcash#5302.
2021-09-29 13:43:55 +01:00
Jack Grigg a672318b4d contrib: Update Debian copyright file to follow the v1 format
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2021-09-29 13:42:01 +01:00
Jack Grigg 00724c9f5a Update halo2 and orchard dependencies with BOSL Zcash exception 2021-09-22 23:10:57 +01:00
Jack Grigg 660e938499 cargo update
Includes pasta_curves 0.2.1, which relicenses to MIT OR Apache-2.0.
2021-09-22 22:51:26 +01:00
Jack Grigg 66832c1e54 contrib: Add BOSL to contrib/debian/copyright 2021-06-10 22:11:42 +01:00
Jack Grigg 3d6c1e4426 metrics 0.16 and metrics-exporter-prometheus 0.5
Includes the allowlist logic that we upstreamed.
2021-06-06 00:53:19 +01:00
Jack Grigg 83eef40f4c rust: Add license header to metrics_ffi::prometheus 2021-03-31 09:19:17 +13:00
Jack Grigg 7a96af8260 rust: Move helper macros into rust/helpers.h 2021-03-30 15:12:08 +13:00
Jack Grigg 37b42d8a41 tracing: Merge TracingSpanFields macro into TracingSpan
Leverages the VA_OPT macro library, which is a polyfill for __VA_OPT__
on non-C++20 platforms, to enable TracingSpan to support optional fields.

Source: https://github.com/willwray/VA_OPT
License: Boost Software License, Version 1.0
2021-03-30 15:12:08 +13:00
Marius Kjærstad ae4ad8fc4b
Update of copyright year to 2021 2021-01-01 04:14:18 +01:00
Daira Hopwood 2840790f66 Partial revert of "Update links". See #4904
This partially reverts commit f459e43dc9.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-12-17 01:42:03 +00:00
Dimitris Apostolou f459e43dc9
Update links 2020-12-13 11:24:44 +02:00
Daira Hopwood c656ae1303 Add new copyright entries for build-aux/m4/ax_cxx_compile_stdcxx.m4
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-10-20 13:55:14 +01:00
Jack Grigg ab35a260d5 Remove remaining OpenSSL references 2020-09-30 00:40:12 +01:00
Homu 940fe0b3be Auto merge of #4657 - str4d:tracing-fields, r=str4d
Add support for logging fields in spans and events

Field values must be pointers to C strings, which in practice means that they
cannot be formatted inline (as the pointer must remain valid across the FFI).
This might be improved by future iterations of the macros.

`LogPrint()` is also moved to the DEBUG level, leaving `LogPrintf()` at INFO.
2020-08-17 16:23:58 +00:00
str4d 5ca852ba41
debian: Rename X11 to Expat-with-advertising-clause in copyright
The X11 license specifically mentions the X Consortium as the party that the no-advertising clause applies to.

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-08-18 02:00:24 +12:00
Daira Hopwood eea06658f4 Newer version of checksec.sh from a6df608ac0
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-08-14 17:49:16 +01:00
Jack Grigg 4591a4f832 tracing: Add MAP macro
Source: https://github.com/swansontec/map-macro
License: X11

Also updates contrib/debian/copyright for recent license additions.
2020-08-11 00:51:12 +01:00
Kris Nuttycombe 4dd0647c1c Remove Proton license from contrib/debian/copyright 2020-07-31 13:08:19 -06:00
Kris Nuttycombe 0391809da1 Remove amqp code and Proton library depenencies & flags. 2020-07-31 13:08:18 -06:00
Jack Grigg fb2edcc352 Debian: Add copyright entries for ctaes and secp256k1 2020-07-30 05:57:00 +01:00
Homu 27c04c8f9c Auto merge of #4146 - str4d:z_viewtransaction, r=str4d
z_viewtransaction

This RPC method returns all decryptable information for any transaction in the wallet.

Several values are conditionally included in the output for convenience:
- `recovered`: True if an output is not for a Sapling address in the wallet.
- `memoStr`: The text form of an output's memo, if it is valid UTF-8.
- Values are provided both in decimal currency units, and integer zatoshis.
2020-02-19 20:52:47 +00:00
Jack Grigg 97ab74a887 depends: Add utfcpp to dependencies 2020-01-29 15:59:52 +00:00
sandakersmann 4dd8cf1fc2
Update of copyright year to 2020 2019-12-27 17:58:48 +01:00
Eirik Ogilvie-Wigley a68024158f Update team email 2019-11-05 17:08:37 -07:00
Daira Hopwood 7b91ba8930 Remove copyright entry for libsnark.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-08-29 20:09:17 +01:00
Daira Hopwood 75b8f0f8b4 Remove copyright entries for Autoconf macros that have been deleted.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-08-29 18:46:37 +01:00
Jack Grigg 2a47986a00
Remove libgmp 2019-08-22 15:42:53 +01:00
Daira Hopwood 2fe59a5681 qa/zcash/checksec.sh is under a BSD license, with a specialized non-endorsement clause.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 15:31:39 +01:00
Daira Hopwood 6e8685742c Update contrib/debian/copyright for ax_boost_thread.m4
Co-Authored-By: str4d <thestr4d@gmail.com>
2019-07-18 13:59:30 +01:00
Daira Hopwood 9ee7cd2048 Add license information for Autoconf macros. refs #2827
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 13:59:30 +01:00