android-tools: drop GPL-2.0-only from LICENSE
PATCH 1/1 android-tools: drop GPL-2.0-only from LICENSE
From: Etienne Cordonnier <[email protected]>
The GPL-2.0 entry dates back to the first recipe (AOSP android-5.1.1_r37, 2016) and was carried over unchanged to the Debian android-platform-tools based 35.0.2 recipe.
In the android-5.1.1_r37 repos the recipe fetched, the only GPLv2 mentions are headers which are dual licensed "Apache 2.0 OR GPLv2" (system/core include/cutils/ashmem.h, include/utils/ashmem.h, include/log/logger.h), kernel headers in libion which are not built, and documentation templates. Apache-2.0 can be chosen for all of them.
The 35.0.2 sources come from Debian's android-platform-tools, whose debian/copyright lists no GPL license: the files are Apache-2.0, BSD, Expat, Khronos, PSF and public-domain, and a scan of the unpacked tarball finds no GPL licensed source files.
Remove GPL-2.0-only from LICENSE and LIC_FILES_CHKSUM so that the recipe is not wrongly treated as GPL by license based tooling (e.g. copyleft source archiving).
--- meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +1 -2
@@ -1,9 +1,8 @@ DESCRIPTION = "Various utilities from Android" SECTION = "console/utils" -LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only" +LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause" LIC_FILES_CHKSUM = " \ file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10 \ - file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6 \ file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f \ file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9 \ "
Signature · 1 line
2.43.0
Hi,
what is the status of this patch? It still applies on master-next. I double-checked again and Arch/nmeum list GPL/LGPL only because they also ship e2fsprogs/f2fs-tools and link libsepol into fastboot, none of which are in the Debian sources or selectable via TOOLS_TO_BUILD in meta-oe bitbake recipe.
Étienne
Quoted 55 lines · On Thu, Oct 22, 2026 at 4:24 PM <[email protected]> wrote:
From: Etienne Cordonnier <[email protected]>
The GPL-2.0 entry dates back to the first recipe (AOSP android-5.1.1_r37, 2016) and was carried over unchanged to the Debian android-platform-tools based 35.0.2 recipe.
In the android-5.1.1_r37 repos the recipe fetched, the only GPLv2 mentions are headers which are dual licensed "Apache 2.0 OR GPLv2" (system/core
include/cutils/ashmem.h,include/utils/ashmem.h,include/log/logger.h), kernel headers in libion which are not built, and documentation templates. Apache-2.0 can be chosen for all of them.The 35.0.2 sources come from Debian's android-platform-tools, whose debian/copyright lists no GPL license: the files are Apache-2.0, BSD, Expat, Khronos, PSF and public-domain, and a scan of the unpacked tarball finds no GPL licensed source files.
Remove GPL-2.0-only from LICENSE and
LIC_FILES_CHKSUMso that the recipe is not wrongly treated as GPL by license based tooling (e.g. copyleft source archiving).Signed-off-by Etienne Cordonnier <[email protected]>--- meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0android-tools_35.0.2.bb b/meta-oe/recipes-devtools/android-tools/ android-tools_35.0.2.bb
index65529c1b53..b7cb062410100644meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +1
-2@@ -1,9 +1,8 @@ DESCRIPTION = "Various utilities from Android" SECTION = "console/utils" -LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only" +LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause" LIC_FILES_CHKSUM = " \ file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10 \ -file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6 \
file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f
\file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9
\
"
--
2.43.0
Thanks, it fell through cracks. I have taken it
Quoted 78 lines · Etienne Cordonnier via openembedded-devel
Hi,
what is the status of this patch? It still applies on master-next. I double-checked again and Arch/nmeum list GPL/LGPL only because they also ship e2fsprogs/f2fs-tools and link libsepol into fastboot, none of which are in the Debian sources or selectable viaTOOLS_TO_BUILDin meta-oe bitbake recipe.Étienne
Quoted 46 lines · On Thu, Oct 22, 2026 at 4:24 PM <[email protected]> wrote:
From: Etienne Cordonnier <[email protected]>
The GPL-2.0 entry dates back to the first recipe (AOSP android-5.1.1_r37, 2016) and was carried over unchanged to the Debian android-platform-tools based 35.0.2 recipe.
In the android-5.1.1_r37 repos the recipe fetched, the only GPLv2 mentions are headers which are dual licensed "Apache 2.0 OR GPLv2" (system/core
include/cutils/ashmem.h,include/utils/ashmem.h,include/log/logger.h), kernel headers in libion which are not built, and documentation templates. Apache-2.0 can be chosen for all of them.The 35.0.2 sources come from Debian's android-platform-tools, whose debian/copyright lists no GPL license: the files are Apache-2.0, BSD, Expat, Khronos, PSF and public-domain, and a scan of the unpacked tarball finds no GPL licensed source files.
Remove GPL-2.0-only from LICENSE and
LIC_FILES_CHKSUMso that the recipe is
not wrongly treated as GPL by license based tooling (e.g. copyleft source archiving).Signed-off-by Etienne Cordonnier <[email protected]>--- meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0android-tools_35.0.2.bb b/meta-oe/recipes-devtools/android-tools/ android-tools_35.0.2.bb
index65529c1b53..b7cb062410100644meta-oe/recipes-devtools/android-tools/android-tools_35.0.2.bb +1
-2@@ -1,9 +1,8 @@ DESCRIPTION = "Various utilities from Android" SECTION = "console/utils" -LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only" +LICENSE = "Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause" LIC_FILES_CHKSUM = " \ file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10 \ -file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6 \
Quoted 10 lines
file://${COMMON_LICENSE_DIR}/BSD-2-Clause;md5=cb641bc04cda31daea161b1bc15da69f
\file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9
\
"
--
2.43.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#131733):
https://lists.openembedded.org/g/openembedded-devel/message/131733
Mute This Topic: https://lists.openembedded.org/mt/121884442/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-