Message ID | 9b605f6d8bdb4f6bb3194d5049bc0db6@diehl.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | licenses: add GPL-2.0-with-Linux-syscall-note | expand |
This is a patch for openembedded-core, and should go to the openembedded-core@lists.openembedded.org. Alex On Fri, 22 Nov 2024 at 10:29, Denis OSTERLAND-HEIM via lists.yoctoproject.org <denis.osterland=diehl.com@lists.yoctoproject.org> wrote: > > According to Linux copying notice[^1] the SPDX copyright should be > `GPL-2.0 WITH Linux-syscall-note`. > AFAIK there is no `WITH` operator in yocto yet, so I created > GPL-2.0-with-Linux-syscall-note based on SPDX[^2] and Linux[^3]. > spdx.org/licenses does not list this license, because of the prefered use of > WITH operator. > For example GPL-2.0-with-autoconf-exception[^4] is now marked deprecated. > > It would be good to have something like `LICENSE = "GPL2.0-only + > Linux-syscall-note"` > in the future. > > [^1]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/COPY > ING > [^2]: https://spdx.org/licenses/Linux-syscall-note.html > [^3]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/LICE > NSES/exceptions/Linux-syscall-note > [^4]: https://spdx.org/licenses/GPL-2.0-with-autoconf-exception.html > > Signed-off-by: Denis Osterland-Heim <denis.osterland@diehl.com> > --- > .../GPL-2.0-with-Linux-syscall-note | 15 +++++++++++++++ > meta/recipes-kernel/linux/linux-yocto.inc | 2 +- > 2 files changed, 16 insertions(+), 1 deletion(-) > create mode 100644 > meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note > > diff --git a/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note > b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note > new file mode 100644 > index 0000000000..7fc191baf1 > --- /dev/null > +++ b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note > @@ -0,0 +1,15 @@ > +insert GPL v2 text here > + > + NOTE! This copyright does *not* cover user programs that use kernel > + services by normal system calls - this is merely considered normal use > + of the kernel, and does *not* fall under the heading of "derived work". > + Also note that the GPL below is copyrighted by the Free Software > + Foundation, but the instance of code that it refers to (the Linux > + kernel) is copyrighted by me and others who actually wrote it. > + > + Also note that the only valid version of the GPL as far as the kernel > + is concerned is _this_ particular version of the license (ie v2, not > + v2.2 or v3.x or whatever), unless explicitly otherwise stated. > + > + Linus Torvalds > + > diff --git a/meta/recipes-kernel/linux/linux-yocto.inc > b/meta/recipes-kernel/linux/linux-yocto.inc > index 0132fcffb3..1765974666 100644 > --- a/meta/recipes-kernel/linux/linux-yocto.inc > +++ b/meta/recipes-kernel/linux/linux-yocto.inc > @@ -1,6 +1,6 @@ > SUMMARY = "Linux kernel" > SECTION = "kernel" > -LICENSE = "GPL-2.0-only" > +LICENSE = "GPL-2.0-with-Linux-syscall-note" > HOMEPAGE = "https://www.yoctoproject.org/" > > LIC_FILES_CHKSUM ?= "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" > -- > 2.45.2 > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#13491): https://lists.yoctoproject.org/g/poky/message/13491 > Mute This Topic: https://lists.yoctoproject.org/mt/109719806/1686489 > Group Owner: poky+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Fri, 2024-11-22 at 10:28 +0100, Denis OSTERLAND-HEIM via lists.yoctoproject.org wrote: > According to Linux copying notice[^1] the SPDX copyright should be > `GPL-2.0 WITH Linux-syscall-note`. > AFAIK there is no `WITH` operator in yocto yet, so I created > GPL-2.0-with-Linux-syscall-note based on SPDX[^2] and Linux[^3]. > spdx.org/licenses does not list this license, because of the prefered use of > WITH operator. > For example GPL-2.0-with-autoconf-exception[^4] is now marked deprecated. > > It would be good to have something like `LICENSE = "GPL2.0-only + > Linux-syscall-note"` > in the future. > > [^1]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/COPY > ING > [^2]: https://spdx.org/licenses/Linux-syscall-note.html > [^3]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/LICE > NSES/exceptions/Linux-syscall-note > [^4]: https://spdx.org/licenses/GPL-2.0-with-autoconf-exception.html > > Signed-off-by: Denis Osterland-Heim <denis.osterland@diehl.com> > --- > .../GPL-2.0-with-Linux-syscall-note | 15 +++++++++++++++ > meta/recipes-kernel/linux/linux-yocto.inc | 2 +- > 2 files changed, 16 insertions(+), 1 deletion(-) > create mode 100644 > meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note As Alex mentioned, this is the wrong list for this patch. There is also a bigger issue in that your change removes the main GPLv2 license text from the kernel license field. I'm not sure we can do that as is becomes a fairly serious oversight. I think we probably need to add dedicated WITH support to our license code to resolve this. Cheers, Richard
diff --git a/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note new file mode 100644 index 0000000000..7fc191baf1 --- /dev/null +++ b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note @@ -0,0 +1,15 @@ +insert GPL v2 text here + + NOTE! This copyright does *not* cover user programs that use kernel + services by normal system calls - this is merely considered normal use + of the kernel, and does *not* fall under the heading of "derived work". + Also note that the GPL below is copyrighted by the Free Software + Foundation, but the instance of code that it refers to (the Linux + kernel) is copyrighted by me and others who actually wrote it. + + Also note that the only valid version of the GPL as far as the kernel + is concerned is _this_ particular version of the license (ie v2, not + v2.2 or v3.x or whatever), unless explicitly otherwise stated. + + Linus Torvalds + diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 0132fcffb3..1765974666 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -1,6 +1,6 @@ SUMMARY = "Linux kernel" SECTION = "kernel" -LICENSE = "GPL-2.0-only" +LICENSE = "GPL-2.0-with-Linux-syscall-note" HOMEPAGE = "https://www.yoctoproject.org/" LIC_FILES_CHKSUM ?= "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
According to Linux copying notice[^1] the SPDX copyright should be `GPL-2.0 WITH Linux-syscall-note`. AFAIK there is no `WITH` operator in yocto yet, so I created GPL-2.0-with-Linux-syscall-note based on SPDX[^2] and Linux[^3]. spdx.org/licenses does not list this license, because of the prefered use of WITH operator. For example GPL-2.0-with-autoconf-exception[^4] is now marked deprecated. It would be good to have something like `LICENSE = "GPL2.0-only + Linux-syscall-note"` in the future. [^1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/COPY ING [^2]: https://spdx.org/licenses/Linux-syscall-note.html [^3]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/LICE NSES/exceptions/Linux-syscall-note [^4]: https://spdx.org/licenses/GPL-2.0-with-autoconf-exception.html Signed-off-by: Denis Osterland-Heim <denis.osterland@diehl.com> --- .../GPL-2.0-with-Linux-syscall-note | 15 +++++++++++++++ meta/recipes-kernel/linux/linux-yocto.inc | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note -- 2.45.2