libeigen: Remove LGPL code

Since libeigen is a header-only library, LGPL effectively has the same
properties as GPL when it comes to affecting the licensing of the code
that uses libeigen. To avoid the problem, backport a patch to remove all
LGPL-2.1 code from the library.

Switch to using "Minpack" rather than "MINPACK" as license since the
former is the official SPDX name.

Also correct the licenses for ${PN}, ${PN}-dbg and ${PN}-dev to reflect
that they do not contain any GPL code (the GPL code is only used for
benchmark tests and does not affect what is installed).

License-Update: Correct the license information
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Kjellerstedt 2025-02-03 21:08:22 +01:00 committed by Khem Raj
parent ae7556a737
commit 0063cf8aee
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 1047 additions and 2 deletions

View File

@ -1,15 +1,20 @@
DESCRIPTION = "Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms."
HOMEPAGE = "http://eigen.tuxfamily.org/"
LICENSE = "MPL-2.0 & Apache-2.0 & BSD-3-Clause & GPL-2.0-only & LGPL-2.1-only & MINPACK"
LICENSE = "MPL-2.0 & Apache-2.0 & BSD-3-Clause & GPL-2.0-only & Minpack"
# The GPL code is only used for benchmark tests and does not affect what is installed.
LICENSE:${PN} = "MPL-2.0 & Apache-2.0 & BSD-3-Clause & Minpack"
LICENSE:${PN}-dbg = "MPL-2.0 & Apache-2.0 & BSD-3-Clause & Minpack"
LICENSE:${PN}-dev = "MPL-2.0 & Apache-2.0 & BSD-3-Clause & Minpack"
LIC_FILES_CHKSUM = "file://COPYING.MPL2;md5=815ca599c9df247a0c7f619bab123dad \
file://COPYING.APACHE;md5=8de23b8e93c63005353056b2475e9aa5 \
file://COPYING.BSD;md5=2dd0510ee95e59ca28834b875bc96596 \
file://COPYING.GPL;md5=d32239bcb673463ab874e80d47fae504 \
file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \
file://COPYING.MINPACK;md5=71d91b0f75ce79a75d3108a72bef8116 \
"
SRC_URI = "git://gitlab.com/libeigen/eigen.git;protocol=http;branch=3.4 \
file://0001-Default-eigen_packet_wrapper-constructor.patch \
file://0002-Remove-LGPL-Code-and-references.patch \
"
SRCREV = "3147391d946bb4b6c68edd901f2add6ac1f31f8c"