All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] xenomai-forge: multiple COPYING files
@ 2013-10-02 11:42 Thomas De Schampheleire
  2013-10-04  9:09 ` Jan Kiszka
  2013-10-04 10:02 ` Philippe Gerum
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas De Schampheleire @ 2013-10-02 11:42 UTC (permalink / raw)
  To: xenomai

Hi,

The (L)GPL requires that every distribution of a derived work is
accompanied with the license of the program (xenomai-forge).
Currently, xenomai-forge contains several COPYING files:

./kernel/cobalt/nucleus/COPYING
./kernel/cobalt/COPYING
./kernel/cobalt/rtdm/COPYING
./include/COPYING
./lib/alchemy/COPYING
./lib/psos/COPYING
./lib/vxworks/COPYING
./lib/analogy/COPYING
./lib/cobalt/COPYING
./lib/copperplate/COPYING

An embedded build system like buildroot [1] has legal-info facilities
to mark for each package which license it uses, and where the license
files is located. A user can easily generate an overview of the
license information for all packages used in the system, and contains
almost everything necessary to comply with the (L)GPL. In buildroot,
this is done with 'make legal-info'.

In the case of buildroot, the license files are copied one by one in a
directory named after the package. This would essentially mean:
cp <xenomai-source>/kernel/cobalt/nucleus/COPYING licenses/xenomai/COPYING
cp <xenomai-source>/kernel/cobalt/COPYING licenses/xenomai/COPYING
cp <xenomai-source>/kernel/cobalt/rtdm/COPYING licenses/xenomai/COPYING
...

Clearly, the fact that all license files have the same name poses a
problem here. In order to have all files, one would either need to
rename them, or duplicate the directory structure.

Instead of moving this complexity outside of xenomai-forge (to the
build system), I would like to discuss how it can be solved within
xenomai-forge itself.

Here are two proposals:
1. Is it really necessary that there are multiple COPYING files? Is it
not possible to have one COPYING file in the root of the project, and
move the exception specified in include/COPYING to that file? This
approach is similar to many many other open-source projects.

2. Alternatively, what about renaming the license files to a unique
name, e.g. COPYING.alchemy, COPYING.psos, COPYING.cobalt-nucleus ?
Then, copying these files to one directory is possible without overwriting.

Thanks,
Thomas

[1] http://buildroot.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] xenomai-forge: multiple COPYING files
  2013-10-02 11:42 [Xenomai] xenomai-forge: multiple COPYING files Thomas De Schampheleire
@ 2013-10-04  9:09 ` Jan Kiszka
  2013-10-04  9:39   ` Thomas De Schampheleire
  2013-10-04 10:02 ` Philippe Gerum
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2013-10-04  9:09 UTC (permalink / raw)
  To: Thomas De Schampheleire; +Cc: xenomai

On 2013-10-02 13:42, Thomas De Schampheleire wrote:
> Hi,
> 
> The (L)GPL requires that every distribution of a derived work is
> accompanied with the license of the program (xenomai-forge).
> Currently, xenomai-forge contains several COPYING files:
> 
> ./kernel/cobalt/nucleus/COPYING
> ./kernel/cobalt/COPYING
> ./kernel/cobalt/rtdm/COPYING
> ./include/COPYING
> ./lib/alchemy/COPYING
> ./lib/psos/COPYING
> ./lib/vxworks/COPYING
> ./lib/analogy/COPYING
> ./lib/cobalt/COPYING
> ./lib/copperplate/COPYING
> 
> An embedded build system like buildroot [1] has legal-info facilities
> to mark for each package which license it uses, and where the license
> files is located. A user can easily generate an overview of the
> license information for all packages used in the system, and contains
> almost everything necessary to comply with the (L)GPL. In buildroot,
> this is done with 'make legal-info'.
> 
> In the case of buildroot, the license files are copied one by one in a
> directory named after the package. This would essentially mean:
> cp <xenomai-source>/kernel/cobalt/nucleus/COPYING licenses/xenomai/COPYING
> cp <xenomai-source>/kernel/cobalt/COPYING licenses/xenomai/COPYING
> cp <xenomai-source>/kernel/cobalt/rtdm/COPYING licenses/xenomai/COPYING
> ...
> 
> Clearly, the fact that all license files have the same name poses a
> problem here. In order to have all files, one would either need to
> rename them, or duplicate the directory structure.
> 
> Instead of moving this complexity outside of xenomai-forge (to the
> build system), I would like to discuss how it can be solved within
> xenomai-forge itself.
> 
> Here are two proposals:
> 1. Is it really necessary that there are multiple COPYING files? Is it
> not possible to have one COPYING file in the root of the project, and
> move the exception specified in include/COPYING to that file? This
> approach is similar to many many other open-source projects.
> 
> 2. Alternatively, what about renaming the license files to a unique
> name, e.g. COPYING.alchemy, COPYING.psos, COPYING.cobalt-nucleus ?
> Then, copying these files to one directory is possible without overwriting.

Having multiple, per-subdir COPYING files is by far not that uncommon.
So improving buildroot for such scenarios seems worthwhile.

That said, we need consolidation and clarification, specifically to
cover all files outside kernel/cobalt, include and lib. Will write a
patch, and another one to append suffixes to the subdir COPYING files.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] xenomai-forge: multiple COPYING files
  2013-10-04  9:09 ` Jan Kiszka
@ 2013-10-04  9:39   ` Thomas De Schampheleire
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas De Schampheleire @ 2013-10-04  9:39 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

Hi Jan,

Thanks for your response.

On Fri, Oct 4, 2013 at 11:09 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:

> Having multiple, per-subdir COPYING files is by far not that uncommon.
> So improving buildroot for such scenarios seems worthwhile.

After my mail, I learned in the buildroot community that master
already contains a patch to fix this, by reproducing the directory
structure of the package when copying license files.

>
> That said, we need consolidation and clarification, specifically to
> cover all files outside kernel/cobalt, include and lib. Will write a
> patch, and another one to append suffixes to the subdir COPYING files.

Given the above, my use case no longer requires such suffixes to the
COPYING files. It still may be useful though for others.

Best regards,
Thomas


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai] xenomai-forge: multiple COPYING files
  2013-10-02 11:42 [Xenomai] xenomai-forge: multiple COPYING files Thomas De Schampheleire
  2013-10-04  9:09 ` Jan Kiszka
@ 2013-10-04 10:02 ` Philippe Gerum
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2013-10-04 10:02 UTC (permalink / raw)
  To: Thomas De Schampheleire; +Cc: xenomai

On 10/02/2013 01:42 PM, Thomas De Schampheleire wrote:
> Hi,
>
> The (L)GPL requires that every distribution of a derived work is
> accompanied with the license of the program (xenomai-forge).
> Currently, xenomai-forge contains several COPYING files:
>
> ./kernel/cobalt/nucleus/COPYING
> ./kernel/cobalt/COPYING
> ./kernel/cobalt/rtdm/COPYING
> ./include/COPYING
> ./lib/alchemy/COPYING
> ./lib/psos/COPYING
> ./lib/vxworks/COPYING
> ./lib/analogy/COPYING
> ./lib/cobalt/COPYING
> ./lib/copperplate/COPYING
>
> An embedded build system like buildroot [1] has legal-info facilities
> to mark for each package which license it uses, and where the license
> files is located. A user can easily generate an overview of the
> license information for all packages used in the system, and contains
> almost everything necessary to comply with the (L)GPL. In buildroot,
> this is done with 'make legal-info'.
>
> In the case of buildroot, the license files are copied one by one in a
> directory named after the package. This would essentially mean:
> cp <xenomai-source>/kernel/cobalt/nucleus/COPYING licenses/xenomai/COPYING
> cp <xenomai-source>/kernel/cobalt/COPYING licenses/xenomai/COPYING
> cp <xenomai-source>/kernel/cobalt/rtdm/COPYING licenses/xenomai/COPYING
> ...
>
> Clearly, the fact that all license files have the same name poses a
> problem here. In order to have all files, one would either need to
> rename them, or duplicate the directory structure.
>
> Instead of moving this complexity outside of xenomai-forge (to the
> build system), I would like to discuss how it can be solved within
> xenomai-forge itself.

Well, using the position in the file system hierarchy as a mean to 
disambiguate issues by giving them a specific scope is quite common. The 
fact that buildroot can only cope with a flat namespace for licenses, 
does not mean that any package buildroot integrates should agree or even 
bother.

>
> Here are two proposals:
> 1. Is it really necessary that there are multiple COPYING files? Is it
> not possible to have one COPYING file in the root of the project, and
> move the exception specified in include/COPYING to that file? This
> approach is similar to many many other open-source projects.

Having the exception clause present in one particular file has a reason: 
the legalese there is very much scoped, I didn't want it to apply to any 
other part of the sources I once wrote. For this reason, moving it to 
the toplevel would not make sense.

This said, such clause is on its way out though, after the recent 
introduction of the LGPLd uapi/ header area, for sharing definitions 
between kernel and userland.

 > 2. Alternatively, what about renaming the license files to a unique
 > name, e.g. COPYING.alchemy, COPYING.psos, COPYING.cobalt-nucleus ?
 > Then, copying these files to one directory is possible without 
overwriting.

Specifically, I would certainly not rename anything to COPYING.psos or 
to whatever established trademark. Generally speaking, I'm not fond of 
the idea of working around a buildroot shortcoming by reshuffling 
headers or renaming them all through the Xenomai tree. I'll have to 
meditate on this when I'm not grumpy.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-04 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 11:42 [Xenomai] xenomai-forge: multiple COPYING files Thomas De Schampheleire
2013-10-04  9:09 ` Jan Kiszka
2013-10-04  9:39   ` Thomas De Schampheleire
2013-10-04 10:02 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.