FS#71332 - [riscv64-linux-gnu-binutils] Incorrect and incomplete licence information for *-binutils
Attached to Project:
Community Packages
Opened by Repentinus (Repentinus) - Tuesday, 22 June 2021, 07:16 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Opened by Repentinus (Repentinus) - Tuesday, 22 June 2021, 07:16 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
|
Details
# Description
All binutils packages declare themselves to be under the GPL-2.0-or-later ('GPL' in the PKGBUILD). This is incorrect as all the binaries in these package identify their licenses as the GPL-3.0-or-later ('GPL3'). This is also incomplete for all these packages as * all the documentation appears to be licensed under the GFDL-1.3-no-invariants-or-later ('FDL1.3'); * and a bunch of script files in all the packages are licensed under an old version of the [FSF All Permissive License](https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html) without a warranty disclaimer. So the proper array would be `license=('GPL3' 'FDL1.3' 'custom: FSFAP-no-warranty-disclaimer')`. The affected packages are: * aarch64-linux-gnu-binutils-2.36.1-1 * arm-none-eabi-binutils-2.36.1-2 * avr-binutils-2.36.1-2 * lm32-elf-binutils-2.36.1-2 * mingw-w64-binutils-2.36.1-1 * nds32le-elf-binutils-2.36.1-2 * or1k-elf-binutils-2.36.1-2 * ppc64le-elf-binutils-2.36.1-2 * riscv32-elf-binutils-2.36.1-2 * riscv64-elf-binutils-2.36.1-2 * riscv64-linux-gnu-binutils-2.36.1-1 * sh2-elf-binutils-2.36.1-2 * sh4-elf-binutils-2.36.1-2 The FSF All Permissive License can be extracted in `build()` like this: ``` # Extract the FSF All Permissive License # <https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html> # used for some linker scripts. tail -n 5 ./ld/scripttempl/README > FSFAP-no-warranty-disclaimer ``` In `package()` it can then be installed like this: ``` install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" FSFAP-no-warranty-disclaimer ``` # Steps to reproduce * Run all the binaries as `./binary --version` to confirm they are licensed under the GPL-3.0-or-later. * Inspect man and info pages in `usr/share/{man,info}/` to confirm these are licensed under the GFDL-1.3-no-invariants-or-later. * Inspect anything in `usr/gnu_triplet/lib/ldscripts/` to verify they are licensed under the GNU All Permissive License. The attached `collect.sh` takes the package archive as its sole argument, untars it, collects the relevant copyright statements to "$1.copyrights", and removes the unpacked `usr/` tree. Output for all the packages is attached to the bug report. Variations in structure mean that 'avr-binutils-2.36.1-2' and 'mingw-w64-binutils-2.36.1-1' require manual inspection of the package contents to confirm my claims. # Additional information binutils in core is [also affected](https://bugs.archlinux.org/task/71331), but the license array for that package should have more entries than here. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/riscv64-linux-gnu-binu tils/issues/1
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/riscv64-linux-gnu-binu tils/issues/1
sh4-elf-binutils-2.36.1-2-x86... (22.2 KiB)
sh2-elf-binutils-2.36.1-2-x86... (22.2 KiB)
riscv64-linux-gnu-binutils-2.... (90 KiB)
riscv32-elf-binutils-2.36.1-2... (21.6 KiB)
ppc64le-elf-binutils-2.36.1-2... (60.8 KiB)
or1k-elf-binutils-2.36.1-2-x8... (12.9 KiB)
mingw-w64-binutils-2.36.1-1-x... (18 KiB)
nds32le-elf-binutils-2.36.1-2... (17 KiB)
lm32-elf-binutils-2.36.1-2-x8... (19.1 KiB)
aarch64-linux-gnu-binutils-2.... (88.1 KiB)
arm-none-eabi-binutils-2.36.1... (16.7 KiB)
avr-binutils-2.36.1-2-x86_64.... (11.1 KiB)