[OE-core] Getting rid of "The license listed internal was not in the licenses collected" warnings?
Mike Looijmans
mike.looijmans at topic.nl
Tue Sep 8 10:19:51 UTC 2015
On 08-09-15 10:44, Jussi Kukkonen wrote:
> On 7 September 2015 at 19:38, Mike Looijmans <mike.looijmans at topic.nl
> <mailto:mike.looijmans at topic.nl>> wrote:
>
> On 07-09-15 13:56, Jussi Kukkonen wrote:
>
> On 7 September 2015 at 13:14, Mike Looijmans <mike.looijmans at topic.nl
> <mailto:mike.looijmans at topic.nl>
> <mailto:mike.looijmans at topic.nl <mailto:mike.looijmans at topic.nl>>> wrote:
>
> Just sped another hour or so trying to pinpoint this, but I cannot
> wrap my head around it. What do I have to do to add a license to a
> layer without these annoying warnings?
>
>
> I just tried this (with master branch) and it seems to work fine
> here... Are you using master or something older?
>
>
> Did you try that in a separate, empty layer? I suspect I'm missing a
> variable or directive of some kind which cause it to miss the license file.
>
>
> I have layer with literally only:
> * conf/layer.conf file with just LICENSE_PATH += "${LAYERDIR}/licenses"
> * licenses/internal file
> This layer is added to BBLAYERS. After this a recipe from another layer seems
> to be able to use the "internal" license...
The warning doesn't appear until you actually build a rootfs with that package
in it.
>
> Do you not get a "${DEPLOY_DIR}/licenses/${BPN}/generic_internal" file
> when you build the recipe for BPN?
>
>
> Nope.
Ah, wait, on closer inspection it actually exists, but it's a symlink to some
none-existing location. Apparently, to save some diskspace and reduce
maintenance on text files I linked a few files together. Somehow, the link got
copied instead of the file contents.
I un-symlinked the "internal" file, and (together with some forced rebuilds)
that finally made the warning go away.
Thanks!
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
More information about the Openembedded-core
mailing list