• Handling a file with mixed copyrights

    From Loren M. Lang@21:1/5 to All on Wed Feb 14 03:10:01 2024
    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?

    Here is the code in question:

    https://github.com/brave/adblock-rust/blob/dd970f26bc5877bef68f9e29d26db19c2f65b34b/src/resources/resource_storage.rs#L23

    And here is my current example:

    https://salsa.debian.org/penguin359/debcargo-conf/-/blob/e8d22158840e1e40385e7f01dceaa0074b4d37e4/src/adblock/debian/copyright#L32

    Thanks,
    --
    Loren M. Lang
    [email protected]
    http://www.north-winds.org/


    Public Key: http://www.north-winds.org/lorenl_pubkey.asc
    Fingerprint: 7896 E099 9FC7 9F6C E0ED E103 222D F356 A57A 98FA

    -----BEGIN PGP SIGNATURE-----

    iHUEABEIAB0WIQT3wmbBr9cpdt12HlPMe9wUn2Md1wUCZcwfVQAKCRDMe9wUn2Md 12zlAQD0V704ZRdUNiD6l27zZpe+swArVHqF6/7DmjIygRC54gD8CrAmo5bcY+LS svbEiZz6AZ17mWHzTDhCImAX5kRd994=
    =hMod
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Victor Westerhuis@21:1/5 to Loren M. Lang on Wed Feb 14 10:50:01 2024
    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/.

    Here is the code in question:

    https://github.com/brave/adblock-rust/blob/dd970f26bc5877bef68f9e29d26db19c2f65b34b/src/resources/resource_storage.rs#L23

    And here is my current example:

    https://salsa.debian.org/penguin359/debcargo-conf/-/blob/e8d22158840e1e40385e7f01dceaa0074b4d37e4/src/adblock/debian/copyright#L32

    Thanks,

    --
    Vriendelijke groet, Kind regards,

    Victor Westerhuis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)