Only readelf and objdump are installed to the target, but they are
statically linked to the provided zlib and libiberty, latter of which
includes a confusing mix of LGPL, GPL, and exceptions unknown to SPDX.
In particular:

 - binutils/readelf.c, binutils/objdump.c: GPL-3.0-or-later
 - ./COPYING3: GPL-3.0 license text
 - libiberty/regex.c: LGPL-2.1-or-later
 - libiberty/COPYING.LIB: LGPL-2.1 license text
 - libiberty/snprintf.c: GPL-2.0-or-later with SPDX-unknown linking exception
 - ./COPYING: GPL-2.0 license text
 - zlib/README: Zlib license text

Reported-by: Felicitas Jung <[email protected]>
Signed-off-by: Roland Hieber <[email protected]>
---
PATCH v2:
 - use "custom-exception" instead of "unknown"
 - rebase to current master, review and adapt MD5 sums accordingly

PULL v1: 
https://lore.ptxdist.org/ptxdist/[email protected]
---
 rules/binutils.make | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/rules/binutils.make b/rules/binutils.make
index ca1080bc811d..b5dd820327d2 100644
--- a/rules/binutils.make
+++ b/rules/binutils.make
@@ -22,6 +22,17 @@ BINUTILS_SUFFIX              := tar.bz2
 BINUTILS_URL           := $(call ptx/mirror, GNU, 
binutils/$(BINUTILS).$(BINUTILS_SUFFIX))
 BINUTILS_SOURCE                := $(SRCDIR)/$(BINUTILS).$(BINUTILS_SUFFIX)
 BINUTILS_DIR           := $(BUILDDIR)/$(BINUTILS)
+BINUTILS_LICENSE       := GPL-3.0-or-later AND LGPL-2.0-or-later AND 
LGPL-2.1-or-later AND GPL-2.0-or-later WITH custom-exception AND Zlib
+# note: only readelf and objdump are installed to the target for now
+BINUTILS_LICENSE_FILES := \
+       
file://binutils/readelf.c;startline=2;endline=17;md5=64a1741cc837a4693ebc82cab284a8dd
 \
+       
file://binutils/objdump.c;startline=2;endline=14;md5=bbe991698d559a2ac1ac1232bf5e44dc
 \
+       file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
+       
file://libiberty/regex.c;startline=9;endline=22;md5=cf0f678ecac74768b21623c63522ac75
 \
+       file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7 \
+       
file://libiberty/snprintf.c;startline=5;endline=24;md5=f6842a5a6f45af438cd99132b4fcc9a5
 \
+       file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
+       
file://zlib/README;startline=92;endline=109;md5=5377232268e952e9ef63bc555f7aa6c0
 \
 
 # ----------------------------------------------------------------------------
 # Prepare
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to