Bug 15168

Summary: elfutils: wrong license
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nick Owens <nick.owens>
Component: devtools / tool chainAssignee: William Lyu <william.lyu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 5.0   
Hardware: x86   
OS: Multiple   
Whiteboard: NIR 10/20, NIR 10/27, NIR 11/03
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Nick Owens 2023-07-22 04:53:31 UTC
elfutils is currently marked as

    LICENSE = "GPL-2.0-only & GPL-2.0-or-later & LGPL-3.0-or-later & GPL-3.0-or-later"

which i believe to be incorrect.

upstream https://sourceware.org/elfutils/ says:

    License. The libraries and backends are dual GPLv2+/LGPLv3+. The utilities are GPLv3+.

which i believe can be interpreted as giving the user a choice of license, and the source code (e.g. https://sourceware.org/git/?p=elfutils.git;a=blob;f=libelf/common.h;h=9b2a856d118a55c0977bbc8d9978d8f6b42f18b3;hb=HEAD#l6) says the same.

gentoo also agrees with me, and their ebuild uses `||` which implies user choice of license: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/elfutils/elfutils-0.189-r3.ebuild?id=0c64ab06a4ba2c73f3840be7aa49e34f42c13696#n14

    LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"

i would like to see the yocto metadata updated to match the upstream license.
Comment 1 Randy MacLeod 2023-07-27 14:39:39 UTC
Thanks Nick,
Are you about to send a patch to the list?
Randy for the YP bug triage.
Comment 2 Randy MacLeod 2023-10-05 14:56:22 UTC
Nick, please let me know if you can send a patch?
Comment 3 Randy MacLeod 2023-11-09 16:00:28 UTC
A good intro do licensing for William.
Comment 4 William Lyu 2024-01-02 16:59:09 UTC
A patch is submitted to the openembedded-core upstream. Waiting for review.
Comment 5 William Lyu 2024-01-10 20:42:44 UTC
A patch is accepted by the upstream:

https://git.openembedded.org/openembedded-core/commit/?id=c0728805f24cbd6a788871ae54af4ec8307e40d4