<div dir="ltr">Hi,<div><br></div><div>I've created a test layer with a custom license and I got bitbake errors:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font size="1">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</font></div>
<div><font size="1">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</font></div></blockquote><div><br></div><div>Some logs:</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font size="1">do_populate_lic_setscene (15543): log.do_populate_lic_setscene.15543</font></div></div><div><div><font size="1">do_fetch (15555): log.do_fetch.15555</font></div>
</div><div><div><font size="1">do_unpack (15556): log.do_unpack.15556</font></div></div><div><div><font size="1">do_patch (15558): log.do_patch.15558</font></div></div><div><div><font size="1">do_configure (15560): log.do_configure.15560</font></div>
</div></blockquote><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font size="1"><br></font></div><div><div><font size="1">DEBUG: Executing python function do_populate_lic_setscene</font></div>
</div><div><div><font size="1">DEBUG: Executing shell function sstate_unpack_package</font></div></div><div><div><font size="1">license-destdir/</font></div></div><div><div><font size="1">license-destdir/test-license/</font></div>
</div><div><div><font size="1">license-destdir/test-license/generic_TESTLICENSE</font></div></div><div><div><font size="1">DEBUG: Shell function sstate_unpack_package finished</font></div></div><div><div><font size="1">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</font></div>
</div><div><div><font size="1">DEBUG: Python function do_populate_lic_setscene finished</font></div></div><div><font size="1"><br></font></div><div><div><font size="1">DEBUG: Executing python function do_fetch</font></div>
</div><div><div><font size="1">DEBUG: Executing python function base_do_fetch</font></div></div><div><div><font size="1">DEBUG: Python function base_do_fetch finished</font></div></div><div><div><font size="1">DEBUG: Python function do_fetch finished</font></div>
</div><div><font size="1"><br></font></div><div><div><font size="1">DEBUG: Executing python function sysroot_cleansstate</font></div></div><div><div><font size="1">DEBUG: Python function sysroot_cleansstate finished</font></div>
</div><div><div><font size="1">DEBUG: Executing shell function do_configure</font></div></div><div><div><font size="1">DEBUG: Shell function do_configure finished</font></div></div><div><div><font size="1">DEBUG: Executing python function do_qa_configure</font></div>
</div><div><div><font size="1">NOTE: Checking autotools environment for common misconfiguration</font></div></div><div><div><font size="1">DEBUG: Python function do_qa_configure finished</font></div></div><div><div><font size="1">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</font></div>
</div></blockquote></div><div><br></div><div>My layer:</div><div><div>meta-test-license</div><div>├── conf</div><div>│ └── layer.conf</div><div>├── recipes-test</div><div>│ └── test-license</div><div>│ └── <a href="http://test-license_2.3.bb">test-license_2.3.bb</a></div>
<div>└── TESTLICENSE</div></div><div><br></div><div>layer.conf:</div><div><div><font size="1"># We have a conf and classes directory, add to BBPATH</font></div><div><font size="1">BBPATH .= ":${LAYERDIR}"</font></div>
<div><font size="1"><br></font></div><div><font size="1"># We have recipes-* directories, add to BBFILES</font></div><div><font size="1">BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \</font></div><div><font size="1"><span class="" style="white-space:pre">        </span>${LAYERDIR}/recipes-*/*/*.bbappend"</font></div>
<div><font size="1"><br></font></div><div><font size="1">BBFILE_COLLECTIONS += "test-license"</font></div><div><font size="1">BBFILE_PATTERN_test-license = "^${LAYERDIR}/"</font></div><div><font size="1">BBFILE_PRIORITY_test-license= "6"</font></div>
<div><font size="1"><br></font></div><div><font size="1">#LICENSE_PATH := "${LAYERDIR}"</font></div></div><div><br></div><div><a href="http://test-license_2.3.bb">test-license_2.3.bb</a>:</div><div><div><font size="1">DESCRIPTION = "Test License"</font></div>
<div><font size="1"><br></font></div><div><font size="1">#LICENSE = "MIT"</font></div><div><font size="1">#LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"</font></div>
<div><font size="1"><br></font></div><div><font size="1">LICENSE = "TESTLICENSE"</font></div><div><font size="1">LIC_FILES_CHKSUM = "file://TESTLICENSE;md5=46311aae768cf83d79351d78701a6670"</font></div>
</div><div><br></div><div>It works fine for MIT license but not for test one. Is it a bug or I just missed something?</div><div><br></div><div>BTW to rebuild I call:</div><div><font size="1">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</font><br>
</div><div><br></div><div>But it is still not the same. The first time I got additionally:</div><div><span style="font-size:x-small">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'</span><br>
</div><div><span style="font-size:x-small"><br></span></div><div><span style="font-size:x-small">--</span></div><div><span style="font-size:x-small">Thanks</span></div><div><span style="font-size:x-small">Dobek</span></div>
</div>