Whitelist gdbserver
HI all,
I'm attempting to whitelist gdbserver just for SDK purposes, while keeping all other GPLv3 code as incompatible (therefore unbuilt). However, everything I've tried still results in gdbserver being removed from my SDK and therefore failing to build.
In my local.conf, I have the following line:
INCOMPATIBLE_LICENSE = "GPLv3 LGPLv3 AGPLv3"
Through the yocto documentation (https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#license-flag-matching), it appears that adding the following *should* work, yet it doesn't:
LICENSE_FLAGS_WHITELIST = "GPLv3_gdbserver"
I've also tried the following lines individually:LICENSE_FLAGS_WHITELIST = "GPLv3_gdbserver LGPLv3_gdbserver" INCOMPATIBLE_LICENSE_gdbserver = ""
But none of these seem to work.
When I build, I get the following:
---- snip ----
vagrant@buildPC:~/newroot/build$ bitbake -c populate_sdk thing4-fullImage WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution. NOTE: /home/vagrant/newroot/sources/poky/meta/recipes-extended/libidn/libidn_0.6.14.bb: INCLUDING libidn as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted NOTE: /home/vagrant/newroot/sources/poky/meta/recipes-extended/libidn/libidn_1.32.bb: INCLUDING libidn as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted Parsing recipes: 100% |########################################################################################| Time: 00:00:12 Parsing of 2143 .bb files complete (0 cached, 2143 parsed). 2714 targets, 582 skipped, 1 masked, 0 errors. NOTE: Resolving any missing task queue dependencies ERROR: Nothing RPROVIDES 'gdbserver' (but /home/vagrant/newroot/sources/poky/../meta-qt5/recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'gdbserver' is unbuildable, removing... Missing or unbuildable dependency chain was: ['gdbserver'] NOTE: Runtime target 'packagegroup-qt5-qtcreator-debug' is unbuildable, removing... Missing or unbuildable dependency chain was: ['packagegroup-qt5-qtcreator-debug', 'gdbserver'] ERROR: Required build target 'thing4-fullImage' has no buildable providers. Missing or unbuildable dependency chain was: ['thing4-fullImage', 'packagegroup-qt5-qtcreator-debug', 'gdbserver']
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ---- snip ----
Is there a way to figure out what magic line I need?
Thanks in advance for any help you can give.
-Jeremy
________________________________
This message (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. If you are not the intended recipient of this message, you are hereby notified that you must delete the message without disseminating, copying or taking any action in reliance upon it. If you have received this message in error, please notify the sender via return e-mail. Thank you.
Quoted 7 lines · Jeremy Overesch
HI all,
I’m attempting to whitelist gdbserver just for SDK purposes, while keeping all other GPLv3 code as incompatible (therefore unbuilt). However, everything I’ve tried still results in gdbserver being removed from my SDK and therefore failing to build.
Quoted 7 lines
In my local.conf, I have the following line:
INCOMPATIBLE_LICENSE= "GPLv3 LGPLv3 AGPLv3"Through the yocto documentation
(https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#license-flag-matching),
it appears that adding the following *should* work, yet it doesn’t:
I think you are mixing up "LICENSE" and "LICENSE_FLAGS". The two don't really work together. It's partly explained in:
https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#var-LICENSE_FLAGS
See the LICENSE_FLAGS comment which says "This value is independent of LICENSE and is typically used to mark recipes that might require additional licenses in order to be used in a commercial product. For more information, see the "Enabling Commercially Licensed Recipes" section."
To whitelist a recipe which is being excluded due to INCOMPATIBLE_LICENSE, use WHITELIST_GPL-3.0. For example for gdbserver, try the following:
WHITELIST_GPL-3.0 += "gdbserver"
Thanks!
I searched for "whitelist" in the documentation, but it didn't list anything about whitelisting a package even though I knew it was possible. (libidn was being whitelisted.) Also, it turns out I had to whitelist "gdb" not just "gdbserver", because gdbserver is part of the gdb recipe.
Thanks again,
Jeremy
-----Original Message-----
From: Andre McCurdy <[email protected]>
Sent: Thursday, September 13, 2018 4:51 PM
To: Jeremy Overesch <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] Whitelist gdbserver
Quoted 7 lines · Jeremy Overesch
HI all,
I’m attempting to whitelist gdbserver just for SDK purposes, while keeping all other GPLv3 code as incompatible (therefore unbuilt). However, everything I’ve tried still results in gdbserver being removed from my SDK and therefore failing to build.
Quoted 7 lines
In my local.conf, I have the following line:
INCOMPATIBLE_LICENSE= "GPLv3 LGPLv3 AGPLv3"Through the yocto documentation
(https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#license-flag-matching),
it appears that adding the following *should* work, yet it doesn’t:
I think you are mixing up "LICENSE" and "LICENSE_FLAGS". The two don't really work together. It's partly explained in:
https://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#var-LICENSE_FLAGS
See the LICENSE_FLAGS comment which says "This value is independent of LICENSE and is typically used to mark recipes that might require additional licenses in order to be used in a commercial product. For more information, see the "Enabling Commercially Licensed Recipes" section."
To whitelist a recipe which is being excluded due to INCOMPATIBLE_LICENSE, use WHITELIST_GPL-3.0. For example for gdbserver, try the following:
WHITELIST_GPL-3.0 += "gdbserver"
________________________________
This message (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. If you are not the intended recipient of this message, you are hereby notified that you must delete the message without disseminating, copying or taking any action in reliance upon it. If you have received this message in error, please notify the sender via return e-mail. Thank you.