Re: DEP-5 copyright with different licenses for two parts of the same file

2023-08-30 Thread Marc Haber
On Tue, 29 Aug 2023 09:45:36 -0700, Russ Allbery 
wrote:
>This is the intended purpose of "and": cases where one file is covered by
>multiple licenses simultaneously. 

Thank you. I missed the "Syntax" paragraph in the DEP-5 specification.

Greetings
Marc
-- 
-- !! No courtesy copies, please !! -
Marc Haber |   " Questions are the | Mailadresse im Header
Mannheim, Germany  | Beginning of Wisdom " | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834



Re: DEP-5 copyright with different licenses for two parts of the same file

2023-08-29 Thread Jonas Smedegaard
Quoting Marc Haber (2023-08-29 18:31:52)
> in daemon(1), I have a file with has two contradicting licenses in the
> same file. See
> https://salsa.debian.org/debian/daemon/-/blob/master/libslack/getopt.c
> 
> >From the wording of the second copyright notice, I think it is clear
> that that notice applies to the POD documentation included in the file
> while the actual code is LGPL. Upstream confirms that this is the
> intention and agrees that this is somehow suboptimally worded.
> 
> Now, how do I write this in a DEP-5 copyright file? Having two stanzas
> for the same file gets flagged by Lintian as an Error, and the DEP-5
> syntax doesn't seem to allow to mention two Licenses in the License:
> line.

Yes, DEP-5 supports multiple licenses for one file:

Files: getopt.c
Copyright: 1987-1998  Free Software Foundation, Inc.
License: GPL-2+ and LGPL-2+
Comment:
 Embedded POD documentation is licensed LGPL-2+
 and other parts are licensed GPL-2+.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Re: DEP-5 copyright with different licenses for two parts of the same file

2023-08-29 Thread Russ Allbery
Marc Haber  writes:

> Now, how do I write this in a DEP-5 copyright file? Having two stanzas
> for the same file gets flagged by Lintian as an Error, and the DEP-5
> syntax doesn't seem to allow to mention two Licenses in the License:
> line.

This is the intended purpose of "and": cases where one file is covered by
multiple licenses simultaneously.  So, basically:

License: LGPL-2+ and manpage-license

or whatever the right tag for that second license is.  This is a bit
confusing when the licenses conflict, but I think it's close enough to
capturing what's going on here, and you can explain further in a Comment.

-- 
Russ Allbery (r...@debian.org)  



DEP-5 copyright with different licenses for two parts of the same file

2023-08-29 Thread Marc Haber
Hi,

in daemon(1), I have a file with has two contradicting licenses in the
same file. See
https://salsa.debian.org/debian/daemon/-/blob/master/libslack/getopt.c

>From the wording of the second copyright notice, I think it is clear
that that notice applies to the POD documentation included in the file
while the actual code is LGPL. Upstream confirms that this is the
intention and agrees that this is somehow suboptimally worded.

Now, how do I write this in a DEP-5 copyright file? Having two stanzas
for the same file gets flagged by Lintian as an Error, and the DEP-5
syntax doesn't seem to allow to mention two Licenses in the License:
line.

Any hints woule be appreciated.

Greetings
Marc
-- 
-- !! No courtesy copies, please !! -
Marc Haber |   " Questions are the | Mailadresse im Header
Mannheim, Germany  | Beginning of Wisdom " | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834