[yocto] [Found Error] Re: License problems when switching form RPM to DEB - looking for a easy way to fix it

S.Jaritz at esa-grimma.de S.Jaritz at esa-grimma.de
Tue Jun 14 02:58:21 PDT 2016


Hej

I found the error at the QA check of the debian packages. The deb QA modul 
has problems resolving the links into the 
"sysroots/<machine>/pkgdata/runtime-resolve". This is because there is a 
lowcase conversation of the recipe name:

p.e.:

"helloMyWorld.bb"

the name of the link is "helloMyWorld"

the QA module is searching for: "hellomyworld"

by renaming the recipe to lowcase letters solves the error. Maybe someone 
can fix it.

Regards!

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz at esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.
----- Weitergeleitet von Stefan Jaritz/User/ESA-Grimma/DE am 14.06.2016 
11:50 -----

Von:    Stefan Jaritz/User/ESA-Grimma/DE
An:     "Burton, Ross" <ross.burton at intel.com>, 
roman.shaposhnikov at globallogic.com
Kopie:  "yocto at yoctoproject.org" <yocto at yoctoproject.org>
Datum:  13.06.2016 13:32
Betreff:        Antwort: Re: [yocto] License problems when switching form 
RPM to DEB - looking for a easy way to fix it


Hej

I deleted the tmp and rebuild it. But the error stays. I added a licence 
file to the repro and added the

LICENSE="ESA"
LIC_FILES_CHKSUM="files://ESAlicense.txt;md5=.."

What's the connection between the LICENSE and LIC_FILES_CHKSUM field?
How the license manifest is build?

I think the error is releated to the point, that there is possibly no 
LICENSE entry connected to "ESA" or "CLOSED".
Below the error print:
##############
ERROR: core-image-minimal-1.0-r0 do_rootfs: Error executing a python 
function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure 
was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:license_create_manifest(d)
     0003:
File: '/home/user/myTC/poky/meta/classes/license.bbclass', lineno: 48, 
function: license_create_manifest
     0044:    pkg_dic = {}
     0045:    for pkg in sorted(image_list_installed_packages(d)):
     0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
     0047:                                'runtime-reverse', pkg)
 *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0049:
     0050:        pkg_dic[pkg_name] = 
oe.packagedata.read_pkgdatafile(pkg_info)
     0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
     0052:            pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory: 
'/home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/pkgdata/runtime-reverse/mycontrol'

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: 
license_create_manifest
ERROR: Logfile of failure stored in: 
/home/user/myTC/poky/build/tmp/work/sama5d3xek-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.22140
ERROR: Task 9 
(/home/user/myTC/poky/meta/recipes-core/images/core-image-minimal.bb, 
do_rootfs) failed with exit code '1'
##############

Regards!

Stefan Jaritz


------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz at esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.



Von:    "Burton, Ross" <ross.burton at intel.com>
An:     S.Jaritz at esa-grimma.de
Kopie:  "yocto at yoctoproject.org" <yocto at yoctoproject.org>
Datum:  09.06.2016 18:21
Betreff:        Re: [yocto] License problems when switching form RPM to 
DEB - looking for a easy way to fix it




On 9 June 2016 at 15:52, <S.Jaritz at esa-grimma.de> wrote:
I switched from RPM to DEB because the board configuration should be 
handled by a package manager. By doing so I ran into a QA problem. All the 
software provided by my colleagues I maked with 

Note that deb is the least-tested package manager, we generally recommend 
rpm or opkg over deb.  If you switched to deb because of the size of the 
tools on the target compared to rpm (as smart pulls in Python, it's not 
small) then you'll really like opkg.
 
LICENSE = "CLOSED" 

because they do not provide a license file. This works fine with the rpm 
generator, but when I use the debian generator - the QA from the 
"do_rootfs" fails with: 
[snip]

Very interesting, and I have seen this occasionally.  Does deleting your 
tmp/ and rebuilding from sstate solve this?

Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160614/456d2768/attachment.html>


More information about the yocto mailing list