Package: util-linux
Version: 2.36.1-7

1. The copyright file has a License paragraph with `License: BSD-2-Clause`
at line 402,
with a license paragraph which is not the license text for `BSD-2-Clause`
(https://spdx.org/licenses/BSD-2-Clause.html), but only the 2 clauses
(mentioning the disclaimer) without the disclaimer.
The text in the copyright file is:

```
License: BSD-2-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.

```

2. The files refer to the license `License: BSD-2-clause` in the Files
Paragraph, are:
- `text-utils/pg.c`
- `login-utils/last-deprecated.c`
- `login-utils/login.c`

But, they have different licenses in them, which is not consistent with
what is reported
in the copyright file. The license text in the file `text-utils/pg.c` is
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. [deleted]
 * 4. Neither the name of Gunnar Ritter nor the names of his contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY GUNNAR RITTER 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 GUNNAR RITTER 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.
```

The license text in the file `login-utils/login.c` is
https://scancode-licensedb.aboutcode.org/bsla.html:
```
 * Redistribution and use in source and binary forms are permitted
 * provided that the above copyright notice and this paragraph are
 * duplicated in all such forms and that any documentation,
 * advertising materials, and other materials related to such
 * distribution and use acknowledge that the software was developed
 * by the University of California, Berkeley.  The name of the
 * University may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
```

The file `login-utils/last-deprecated.c` is not present anywhere, and the
`login-utils/last.c`
has a `gpl-2.0-plus` license text:

```
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
```

These should be reported correctly in the copyright file. I'm interested in
creating a patch for the same.

This is also applicable to all the copyright files of the individual
packages util-linux
depends on (`libblkid1`, `libsmartcols1`, `bsdutils`, `mount`, `libuuid1`,
`libmount1`.),
since they have the same copyright file.
https://metadata.ftp-master.debian.org/changelogs//main/u/util-linux/util-linux_2.36.1-7_copyright

This was discovered here
https://github.com/nexB/scancode-toolkit/issues/2555 while working
on improving license detection in debian copyright files. See also
https://github.com/nexB/scancode.io/issues/103. This affects license
reporting for all debian-based containers.

Reply via email to