Page MenuHomePhabricator

Corto: Licensing & copyright information
Closed, ResolvedPublic

Description

We seem to have settled on Apache License 2.0 and a LICENSE file and SPDX header (for some files) are present. However, source files should also include a copyright header and licensing blurb. See: https://www.apache.org/licenses/LICENSE-2.0#apply

Event Timeline

Eevans triaged this task as Medium priority.Sep 20 2024, 8:25 PM

Do we have to put the license in every file? The link you mentioned only says "consider". Just seems to be a bit tedious.

Do we have to put the license in every file? The link you mentioned only says "consider". Just seems to be a bit tedious.

That's for NOTICE. The bit to put into every file is:

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

My understanding: I think it's technically enough to put LICENSE at top-level, and thus state your intentions that the contents of the repo are Apache 2.0. I think the use of the header above is only strictly necessary for placing a single file under the license. However, this becomes murkier for me is when it comes to copyright assignment (i.e. Copyright [yyyy] [name of copyright owner]), which should include all of those who contributed to the file. Meaning, if you didn't include that header verbatim, you'd still want to include copyright information.

I've always just included the header in each source file. It seems like that's what a lot (most) people do too. This would also make things clearer if someone where to copy a file to their own project.

BCornwall claimed this task.