[bitbake-devel] Custom license fails

Dobekp dobekp at wp.pl
Mon Jul 28 04:07:57 UTC 2014


Hi,

I've created a test layer with a custom license and I got bitbake errors:

ERROR: Function failed: test-license: LIC_FILES_CHKSUM points to an invalid
file:
/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0/test-license-2.3/TESTLICENSE
ERROR: Logfile of failure stored in:
/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0/temp/log.do_configure.15560


Some logs:

do_populate_lic_setscene (15543): log.do_populate_lic_setscene.15543
do_fetch (15555): log.do_fetch.15555
do_unpack (15556): log.do_unpack.15556
do_patch (15558): log.do_patch.15558
do_configure (15560): log.do_configure.15560


DEBUG: Executing python function do_populate_lic_setscene
DEBUG: Executing shell function sstate_unpack_package
license-destdir/
license-destdir/test-license/
license-destdir/test-license/generic_TESTLICENSE
DEBUG: Shell function sstate_unpack_package finished
DEBUG: Staging files from
/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0/license-destdir
to /home/dobek/code/poky/build/tmp/deploy/licenses
DEBUG: Python function do_populate_lic_setscene finished

DEBUG: Executing python function do_fetch
DEBUG: Executing python function base_do_fetch
DEBUG: Python function base_do_fetch finished
DEBUG: Python function do_fetch finished

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: test-license: LIC_FILES_CHKSUM points to an invalid
file:
/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0/test-license-2.3/TESTLICENSE


My layer:
meta-test-license
├── conf
│   └── layer.conf
├── recipes-test
│   └── test-license
│       └── test-license_2.3.bb
└── TESTLICENSE

layer.conf:
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "test-license"
BBFILE_PATTERN_test-license = "^${LAYERDIR}/"
BBFILE_PRIORITY_test-license= "6"

#LICENSE_PATH := "${LAYERDIR}"

test-license_2.3.bb:
DESCRIPTION = "Test License"

#LICENSE = "MIT"
#LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

LICENSE = "TESTLICENSE"
LIC_FILES_CHKSUM = "file://TESTLICENSE;md5=46311aae768cf83d79351d78701a6670"

It works fine for MIT license but not for test one. Is it a bug or I just
missed something?

BTW to rebuild I call:
rm -fr
/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0
; bitbake test-license -c clean ; bitbake test-license -f

But it is still not the same. The first time I got additionally:
WARNING: Could not copy license file TESTLICENSE: [Errno 2] No such file or
directory:
'/home/dobek/code/poky/build/tmp/work/core2-64-poky-linux/test-license/2.3-r0/test-license-2.3/TESTLICENSE'

--
Thanks
Dobek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20140727/92621dde/attachment-0002.html>


More information about the bitbake-devel mailing list