Message ID | 20210411101422.7092-5-bage@linutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | builddeb: make deb building more flexible | expand |
On Sun, Apr 11, 2021 at 7:14 PM <bage@linutronix.de> wrote: > > From: Bastian Germann <bage@linutronix.de> > > Convert the minimal copyright file to the DEP-5 standard format that is > commonly used in Debian. > > Link: https://trends.debian.net/#copyright-format-machine-readable-dep-5-vs-old-format > Signed-off-by: Bastian Germann <bage@linutronix.de> This is equivalent to this patch: https://lore.kernel.org/linux-kbuild/20200920222556.10002-4-guillem@hadrons.org/ > --- > scripts/package/mkdebian | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) > > diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian > index 717223ef6b03..bb5c19735345 100755 > --- a/scripts/package/mkdebian > +++ b/scripts/package/mkdebian > @@ -152,22 +152,23 @@ EOF > > # Generate copyright file > cat <<EOF > debian/copyright > -This is a packacked upstream version of the Linux kernel. > - > -The sources may be found at most Linux archive sites, including: > -https://www.kernel.org/pub/linux/kernel > - > -Copyright: 1991 - 2018 Linus Torvalds and others. > - > -The git repository for mainline kernel development is at: > -git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > - > +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ > +Upstream-Name: Linux > +Source: https://www.kernel.org/pub/linux/kernel > +Comment: This is a packaged upstream version of the Linux kernel. > + > +Files: * > +Copyright: 1991 - 2021 Linus Torvalds and others. > +License: GPL-2 My concern is this license info is wrong since not all files are GPL-2. Is it better to make apparently wrong license info machine-interpretable? That is a question.
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 717223ef6b03..bb5c19735345 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -152,22 +152,23 @@ EOF # Generate copyright file cat <<EOF > debian/copyright -This is a packacked upstream version of the Linux kernel. - -The sources may be found at most Linux archive sites, including: -https://www.kernel.org/pub/linux/kernel - -Copyright: 1991 - 2018 Linus Torvalds and others. - -The git repository for mainline kernel development is at: -git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git - +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Linux +Source: https://www.kernel.org/pub/linux/kernel +Comment: This is a packaged upstream version of the Linux kernel. + +Files: * +Copyright: 1991 - 2021 Linus Torvalds and others. +License: GPL-2 + The git repository for mainline kernel development is at: + git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git + . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. - -On Debian GNU/Linux systems, the complete text of the GNU General Public -License version 2 can be found in \`/usr/share/common-licenses/GPL-2'. + . + On Debian GNU/Linux systems, the complete text of the GNU General Public + License version 2 can be found in \`/usr/share/common-licenses/GPL-2'. EOF # Generate a control file