[yocto] License information of tasks

Markus Hubig mhubig at imko.de
Fri Aug 24 03:05:41 PDT 2012


Hi @all,

I'm building a layer to provide a customized image. Now I'm struggling
a bit by the license informations one have to provide for a task.

First: tasks are packages without content.

| rpm -qpl task-core-boot-1.0-r9.stamp9g20.rpm
| (contains no files)

... so why do they need some license information in the first place?

Second: OK if there are some reasons to provide license informations,
how do I include them?

In task-core-boot there are included like this:

| LICENSE = "MIT"
| LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

No I wanna do the same, but of course relative to the base dir of my layer. But
I don't find a way of doing this ... 

| LICENSE = "LGPL-3.0"
| LIC_FILES_CHKSUM = "file://${LAYERDIR}/LICENSE;md5=5b241fa147528c635da6d1598c4a4056 \
|                     file://${LAYERDIR}/COPYING;md5=c79ff39f19dfec6d293b95dea7b07891 \
|                     file://${LAYERDIR}/COPYING.LESSER;md5=bfccfe952269fff2b407dd11f2f3083b"

... which looks good but don't work (I'm on 1.3_M3).

%  ERROR: Function failed: task-imko-python: LIC_FILES_CHKSUM points to an invalid file:
%   ...task-imko-python-1.0-r1/task-imko-python-1.0/${LAYERDIR}/LICENSE
%  ERROR: Logfile of failure stored in:
%   .../task-imko-python-1.0-r1/temp/log.do_configure.1179
%  Log data follows:
%  | DEBUG: Executing python function sysroot_cleansstate
%  | DEBUG: Python function sysroot_cleansstate finished
%  | DEBUG: Executing shell function do_configure
%  | DEBUG: Shell function do_configure finished
%  | DEBUG: Executing python function do_qa_configure
%  | NOTE: Checking autotools environment for common misconfiguration
%  | DEBUG: Python function do_qa_configure finished
%  | ERROR: Function failed: task-imko-python: LIC_FILES_CHKSUM points to an invalid file:
%   .../task-imko-python-1.0-r1/task-imko-python-1.0/${LAYERDIR}/LICENSE
%  NOTE: package task-imko-python-1.0-r1: task do_configure: Failed

Any ideas?

Cheers, Markus

-- 
Human beings were created by water to transport it uphill.



More information about the yocto mailing list