All of lore.kernel.org
 help / color / mirror / Atom feed
* Whitelist gdbserver
@ 2018-09-13 15:42 Jeremy Overesch
  2018-09-13 21:51 ` Andre McCurdy
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Overesch @ 2018-09-13 15:42 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3212 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 6604 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Whitelist gdbserver
  2018-09-13 15:42 Whitelist gdbserver Jeremy Overesch
@ 2018-09-13 21:51 ` Andre McCurdy
  2018-09-14 12:49   ` Jeremy Overesch
  0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2018-09-13 21:51 UTC (permalink / raw)
  To: Jeremy Overesch; +Cc: yocto

On Thu, Sep 13, 2018 at 8:42 AM, Jeremy Overesch
<Jeremy.Overesch@millerwelds.com> wrote:
> 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:

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"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Whitelist gdbserver
  2018-09-13 21:51 ` Andre McCurdy
@ 2018-09-14 12:49   ` Jeremy Overesch
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremy Overesch @ 2018-09-14 12:49 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: yocto

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 <armccurdy@gmail.com>
Sent: Thursday, September 13, 2018 4:51 PM
To: Jeremy Overesch <Jeremy.Overesch@millerwelds.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Whitelist gdbserver

On Thu, Sep 13, 2018 at 8:42 AM, Jeremy Overesch
<Jeremy.Overesch@millerwelds.com> wrote:
> 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:

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-14 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 15:42 Whitelist gdbserver Jeremy Overesch
2018-09-13 21:51 ` Andre McCurdy
2018-09-14 12:49   ` Jeremy Overesch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.