On Wed, 11 Aug 2021 14:40:20 +0200 Andrej Shadura 
<andrew.shad...@collabora.co.uk> wrote:
> On 11/08/2021 14:30, Andrej Shadura wrote:
> > On Fri, 06 Aug 2021 14:31:26 +0200 Andrej Shadura <andre...@debian.org>
> > wrote:
> >> Please consider including the attached machine-readable copyright file.
> >> I tried to make it as precise as I can based on the information in the
> >> source and accompanying text files; improve it as you see fit.
> > 
> > I’ve noticed a few issues with the proposed copyright file. I have fixed
> > them; please find the attached patch to the packaging.

Thanks for having a go at this.

> Of course, once again I’ve forgotten something:
> 
> Files: debian/*
> Copyright:
>  2005      Jeff Bailey <jbai...@raspberryginger.com>
>  2005-2014 maximilian attems <m...@sternwelten.at>
>  2015-2021 Ben Hutchings <b...@decadent.org.uk>
> 
> I’m not sure what the license of the packaging is.

I believe it should be the same as upstream's default license, i.e.
Expat.

I think the contributions of Jeff Bailey and several others are
© Canonical Ltd.  And there have been a couple of other contributors
whose work is still present and looks large enough to be copyrightable.

[...]

> +Files: *
> +Copyright: 2004-2021, H. Peter Anvin and klibc contributors
> +License: BSD-3-clause and/or GPL-2 and/or Expat

Using "... and/or ..." is not allowed by the format, and I don't think
it would be a useful description anyway.

Since usr/klibc/LICENSE says that the Expat license applies to "all
remaining files", I think the wildcard paragraph should simply have
"License: Expat" and all the other paragraphs with "License: Expat" can
be dropped.

[...]

> +Files: scripts/basic/fixdep.c
> +Copyright: 2002, Kai Germaschewski <kai.germaschew...@gmx.de>
> +License: GPL-2

In fact, the files under scripts/ are mostly derived from the Linux
kernel's scripts directory (though with many changes), so I think all of
them should have "License: GPL-2".

[...]
> +Files: usr/dash/src/bltin/test.c

This should be "usr/dash/bltin/test.c".

> +Copyright: Erik Baalbergen, Eric Gisin, Arnold Robbins, J.T. Conklin
> +License: public-domain

Public domain means copyright has been disclaimed, so I think no
copyright holders should be listed.  But the policy is not explicit
about this, and lintian insists there has to be a Copyright field.

The files usr/dash/hetio.[ch] also have different license terms from the
rest of usr/dash.

[...]
> +Files:
> + usr/include/arch/sparc/*
> + usr/klibc/arch/sparc/*
> +Copyright:
> + 1994, Allen Briggs
> + 1993, Adam Glass
> + 1988, University of Utah.
> + 1982, 1990, 1992, 1993, The Regents of the University of California.
> +License: BSD-4-Clause-UC

The files usr/include/paths.h and usr/utils/cat.c are also under this
license.

[...]
> +Files: usr/klibc/arch/ia64/klibc.ld
> +Copyright: 2014-2018, Free Software Foundation, Inc.
> +License: FSFAP

This file has since been removed upstream.

> +Files: usr/utils/cpio.c
> +Copyright: 1990-1992, 2001-2004, Free Software Foundation, Inc.
> +License: GPL-2+

The file usr/utils/insmod.c is also GPL-2+.

> +Files: usr/utils/minips.c
> +Copyright: 1998, Albert Cahalan
> +License: LGPL-2+
[...]
> +License: GPL-2
> + On Debian GNU/Linux systems, the complete text of the GNU General Public
> + License v2 can be found in /usr/share/common-licenses/GPL-2.

Several license texts are missing at the bottom of the file.

I'm attaching a patch that I think covers all the files correctly, and
satisfies lintian.  If you could check my work that would be
appreciated.

Ben.

-- 
Ben Hutchings
Experience is directly proportional to the value of equipment destroyed
                                                    - Carolyn Scheppner
From d63bab3c6512173ac1a178f78ef53d76d1bc6453 Mon Sep 17 00:00:00 2001
From: Ben Hutchings <b...@debian.org>
Date: Tue, 4 Mar 2025 05:49:01 +0100
Subject: [PATCH klibc] WIP: Machine-readable debian/copyright
To: kl...@zytor.com


diff --git a/debian/copyright b/debian/copyright
index 7b600245..d6d3196a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,56 +1,256 @@
-This package was debianized by Jeff Bailey <jbai...@raspberryginger.com> on
-Sun, 23 Jan 2005 21:11:50 -0500.
-
-It was downloaded from http://www.kernel.org/pub/linux/libs/klibc/
-
-Copyright 2004-2006 H. Peter Anvin <h...@zytor.com>
-
-License:
-
-BSD/GPL
-
-On Debian GNU/Linux systems, the complete text of the GNU General Public
-License v2 can be found in `/usr/share/common-licenses/GPL-2'.
-
--- BSD license text
-
-Some files are derived from files copyrighted by the Regents of The
-University of California, and are available under the following
-license:
-
-Note: The advertising clause in the license appearing on BSD Unix
-files was officially rescinded by the Director of the Office of
-Technology Licensing of the University of California on July 22
-1999. He states that clause 3 is "hereby deleted in its entirety."
-
- * Copyright (c)
- *	The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
+Files: *
+Copyright: 2004-2025, H. Peter Anvin and klibc contributors
+License: Expat
+
+Files: contrib/klibc.m4
+Copyright: 1995-2003, Free Software Foundation, Inc.
+License: GPL-2-with-Autoconf-exception
+
+Files: scripts/*
+Copyright:
+ 1991-2012, Linux Torvalds and Linux kernel contributors
+ 2005-2023, H. Peter Anvin and klibc contributors
+License: GPL-2
+
+Files: usr/dash/*
+Copyright:
+ 1989-1994, The Regents of the University of California
+ 1997, Christos Zoulas
+ 1997-2012, Herbert Xu <herb...@gondor.apana.org.au>
+Comment:
+ This code is derived from software contributed to Berkeley by Kenneth Almquist.
+License: BSD-3-Clause
+
+Files: usr/dash/hetio.*
+Copyright:
+ 1999, Adam Rogoyski <rogoy...@cs.utexas.edu>
+ 1999, Dave Cinege <dcin...@psychosis.com>
+License: hetio-permissive
+
+Files: usr/dash/TOUR
+Copyright: 1989, Kenneth Almquist.
+License: BSD-3-Clause
+
+Files: usr/dash/bltin/test.c
+Copyright: none
+License: public-domain
+ This program is in the Public Domain.
+
+Files: usr/gzip/*
+Copyright: 1992-1993 Jean-loup Gailly
+License: GPL-2+
+
+Files: usr/gzip/inflate.c
+Copyright: none
+License: public-domain
+ You can do whatever you like with this source file, though I would
+ prefer that if you modify it and redistribute it that you include
+ comments to that effect with your name and the date.  Thank you.
+
+Files:
+ usr/include/arch/sparc/*
+ usr/klibc/arch/sparc/*
+Copyright:
+ 1994, Allen Briggs
+ 1993, Adam Glass
+ 1988, University of Utah.
+ 1982, 1990, 1992, 1993, The Regents of the University of California.
+License: BSD-4-Clause-UC
+
+Files:
+ usr/include/paths.h
+ usr/utils/cat.c
+Copyright: 1989, 1993, The Regents of the University of California
+License: BSD-4-Clause-UC
+
+Files: usr/include/sys/md.h
+Copyright: 2006, H. Peter Anvin
+License: GPL-2+
+
+Files:
+ usr/include/zconf.h
+ usr/include/zlib.h
+ usr/klibc/zlib/*
+Copyright: 1995-2005, Jean-loup Gailly and Mark Adler
+License: Zlib
+
+Files: usr/kinit/fstype/jfs_superblock.h
+Copyright: 2000-2003, International Business Machines Corp.
+License: GPL-2+
+
+Files: usr/utils/cpio.c
+Copyright: 1990-1992, 2001-2004, Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: usr/utils/insmod.c
+Copyright:
+ 2001-2002, Rusty Russell.
+ 2002, International Business Machines Corp.
+License: GPL-2+
+
+Files: usr/utils/minips.c
+Copyright: 1998, Albert Cahalan
+License: LGPL-2+
+
+Files: debian/*
+Copyright:
+ 2005-2008, 2011, Canonical Ltd.
+ 2005-2014, maximilian attems
+ 2010, Jan Hauke Rahm
+ 2010, 2014-2025, Ben Hutchings
+ 2010, 2012, 2014, Thorsten Glaser
+License: Expat
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: BSD-4-Clause-UC
+ Note: The advertising clause in the license appearing on BSD Unix
+ files was officially rescinded by the Director of the Office of
+ Technology Licensing of the University of California on July 22
+ 1999. He states that clause 3 is "hereby deleted in its entirety."
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. All advertising materials mentioning features or use of this software
+    must display the following acknowledgement:
+      This product includes software developed by the University of
+      California, Berkeley and its contributors.
+ 4. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom
+ the Software is furnished to do so, subject to the following
+ conditions:
+ .
+ The above copyright notice and this permission notice shall
+ be included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+License: GPL-2
+ 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.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems the text of the GPL version 2 can be found in
+ /usr/share/common-licenses/GPL-2.
+
+License: GPL-2-with-Autoconf-exception
+ This file is free software, distributed under the terms of the GNU
+ General Public License.  As a special exception to the GNU General
+ Public License, this file may be distributed as part of a program
+ that contains a configuration script generated by Autoconf, under
+ the same distribution terms as the rest of that program.
+
+License: GPL-2+
+ 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; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems the text of the GPL version 2 can be found in
+ /usr/share/common-licenses/GPL-2.
+
+License: hetio-permissive
+ You may use this code as you wish, so long as the original author(s)
+ are attributed in any redistributions of the source code.
+ This code is 'as is' with no warranty.
+ This code may safely be consumed by a BSD or GPL license.
+
+License: LGPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems the text of the LGPL version 2 can be found in
+ /usr/share/common-licenses/LGPL-2..
+
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty.  In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+    claim that you wrote the original software. If you use this software
+    in a product, an acknowledgment in the product documentation would be
+    appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+    misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to