You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have a project where most files are under the original author
copyright and license, but within one source file, there is a different
copyright as it is copied from another source. The section of code in
question is delineated with comments indicating the start and end. It is
under a different copyright and license that the rest of the file or
source tree, in general. How should I best indicate this in d/copyright?
My current approach is to have a Files: * stanza which is the majority
of the source tree and a separate Files: stanza pointing to this
specific file with it's copyright and license. In the comments property,
I'll indicate that this stanza only applies to a section of this file as
delineated by comments and that the rest of the file should be in the
default copyright and license listed above. Is this sufficient?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On 14/02/2024 03:03, Loren M. Lang wrote:
> I have a project where most files are under the original author
> copyright and license, but within one source file, there is a different
> copyright as it is copied from another source. The section of code in
> question is delineated with comments indicating the start and end. It is
> under a different copyright and license that the rest of the file or
> source tree, in general. How should I best indicate this in d/copyright?
>
> My current approach is to have a Files: * stanza which is the majority
> of the source tree and a separate Files: stanza pointing to this
> specific file with it's copyright and license. In the comments property,
> I'll indicate that this stanza only applies to a section of this file as
> delineated by comments and that the rest of the file should be in the
> default copyright and license listed above. Is this sufficient?
The way you have written it right now means that
src/resources/resource_storage.rs is only licensed under Apache-2.0 or
MIT. If I understand correctly, the rest of the file is licensed under
MPL-2.0.
The correct license for the file is therefore: Apache-2.0 or MIT, and
MPL-2.0. The comma is necessary to override the higher priority of `and'.
This matches the example in section 7.2 of the Machine-readable
debian/copyright file specification at
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/.