-
Notifications
You must be signed in to change notification settings - Fork 455
CDRIVER-4044 consistent copyright date and license notice #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: should the copyright templates in
conf.py
files be updated as well to use2009-present
?
I expect "yes" based on this comment
src/kms-message/src/hexlify.c
Outdated
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2018-present MongoDB, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files in src/kms-message
are copied from libmongocrypt. Suggest reverting changes in src/kms-message
. Reverting may fix the kms-divergence-check task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated copyright strings in conf.py
files. The comma after the date is preserved per Sphinx documentation:
A copyright statement in the style '2008, Author Name'.
src/kms-message/src/hexlify.c
Outdated
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2018-present MongoDB, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just made a few comments where it seemed like something might have been overlooked. Feel free to ignore if I wrongly flagged something that was intentional.
docs/dev/conf.py
Outdated
@@ -19,7 +19,7 @@ | |||
REPO_ROOT = THIS_DIR.parent.parent | |||
|
|||
project = "MongoDB C Driver Development" | |||
copyright = "2024, MongoDB Inc" | |||
copyright = "2024, MongoDB, Inc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for leaving the year as 2024?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Updated.
src/libbson/libbson.rc.in
Outdated
@@ -34,7 +34,7 @@ BEGIN | |||
VALUE "OriginalFilename", BSON_OUTPUT_BASENAME "-" BSON_API_VERSION ".dll" | |||
VALUE "ProductName", "MongoDB C Driver" | |||
VALUE "ProductVersion", BSON_VERSION_S | |||
VALUE "LegalCopyright", "Copyright (C) 2013-present MongoDB, Inc." | |||
VALUE "LegalCopyright", "Copyright 2013-present MongoDB, Inc." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for leaving the start year as 2013?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I may have accidentally reverted the update to year in a local rebase. Fixed.
@@ -34,7 +34,7 @@ BEGIN | |||
VALUE "OriginalFilename", MONGOC_OUTPUT_BASENAME "-" MONGOC_API_VERSION ".dll" | |||
VALUE "ProductName", "MongoDB C Driver" | |||
VALUE "ProductVersion", MONGOC_VERSION_S | |||
VALUE "LegalCopyright", "Copyright (C) 2013-present MongoDB, Inc." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for leaving the start year as 2013?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I may have accidentally reverted the update to year in a local rebase. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with pending comments addressed.
After merging, suggest creating a PR to the debian/unstable
branch to apply the copyright update to the patch file: 0001_local_mathjax.diff. I expect that may fix the debian-package-build
task.
* Consistent omission of redundant (C): Copyright <date> <name> * Consistent comma placement: MongoDB, Inc. * Consistent copyright date and format: 2009-present
…ngodb#1655)" This reverts commit 1a68a80.
Resolves CDRIVER-4044.
The addition/removal of license notices in source files is deferred to CDRIVER-5613; this PR only ensures current license notices are all made consistent.
Consistency is enforced such that the copyright template within the license notice follows this exact pattern:
where 2009 is the MongoDB C Driver project inception date and
MongoDB, Inc.
is the name of the owner.The list of files was obtained using the following pattern matcher (
rg
: ripgrep):Which produced this initial list of patterns:
Separating these into three distinct groups:
Copyright (C) ...
: in thelibbson.rc.in
andlibmongoc.rc.in
files.Copyright <date><suffix> MongoDB, Inc.
: in most source files currently containing a license notice."<date><suffix>, MongoDB Inc"
: inconf.py
files underdocs/dev/
,src/libbson/doc/
, andsrc/libmongoc/doc/
. It is unclear if these should be updated (copyright of docs vs. source?), so are currently left unchanged, although the missing comma was added regardless.u'2017, MongoDB, Inc'
: inconf.py
underbuild/sphinx/homepage-config
. Similar to the above, currently left unchanged (copyright of docs vs. source?).Question: should the copyright templates in
conf.py
files be updated as well to use2009-present
?