From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2001DE00E79; Mon, 13 Jun 2016 04:32:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from gse01.esa-grimma.de (gse01.esa-grimma.de [62.41.26.213]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B047FE00CD8 for ; Mon, 13 Jun 2016 04:32:55 -0700 (PDT) In-Reply-To: References: To: "Burton, Ross" , roman.shaposhnikov@globallogic.com MIME-Version: 1.0 X-KeepSent: E7968315:7F280FEA-C1257FD1:003E59A2; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0 March 08, 2013 Message-ID: From: S.Jaritz@esa-grimma.de Date: Mon, 13 Jun 2016 13:32:51 +0200 X-MIMETrack: Serialize by Router on GSE01/Server/ESA-Grimma/DE(Release 9.0.1FP3 HF42|February 03, 2015) at 13.06.2016 13:32:55, Serialize complete at 13.06.2016 13:32:55 Cc: "yocto@yoctoproject.org" Subject: Antwort: Re: License problems when switching form RPM to DEB - looking for a easy way to fix it X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 11:32:59 -0000 Content-Type: multipart/alternative; boundary="=_alternative 003F6ED3C1257FD1_=" --=_alternative 003F6ED3C1257FD1_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hej I deleted the tmp and rebuild it. But the error stays. I added a licence=20 file to the repro and added the LICENSE=3D"ESA" LIC=5FFILES=5FCHKSUM=3D"files://ESAlicense.txt;md5=3D.." What's the connection between the LICENSE and LIC=5FFILES=5FCHKSUM field? How the license manifest is build? I think the error is releated to the point, that there is possibly no=20 LICENSE entry connected to "ESA" or "CLOSED". Below the error print: ############## ERROR: core-image-minimal-1.0-r0 do=5Frootfs: Error executing a python=20 function in exec=5Fpython=5Ffunc() autogenerated: The stack trace of python calls that resulted in this exception/failure=20 was: File: 'exec=5Fpython=5Ffunc() autogenerated', lineno: 2, function: 0001: *** 0002:license=5Fcreate=5Fmanifest(d) 0003: File: '/home/user/myTC/poky/meta/classes/license.bbclass', lineno: 48,=20 function: license=5Fcreate=5Fmanifest 0044: pkg=5Fdic =3D {} 0045: for pkg in sorted(image=5Flist=5Finstalled=5Fpackages(d)): 0046: pkg=5Finfo =3D os.path.join(d.getVar('PKGDATA=5FDIR', Tru= e), 0047: 'runtime-reverse', pkg) *** 0048: pkg=5Fname =3D os.path.basename(os.readlink(pkg=5Finfo)) 0049: 0050: pkg=5Fdic[pkg=5Fname] =3D=20 oe.packagedata.read=5Fpkgdatafile(pkg=5Finfo) 0051: if not "LICENSE" in pkg=5Fdic[pkg=5Fname].keys(): 0052: pkg=5Flic=5Fname =3D "LICENSE=5F" + pkg=5Fname Exception: OSError: [Errno 2] No such file or directory:=20 '/home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/pkgdata/runtime-reverse= /mycontrol' ERROR: core-image-minimal-1.0-r0 do=5Frootfs: Function failed:=20 license=5Fcreate=5Fmanifest ERROR: Logfile of failure stored in:=20 /home/user/myTC/poky/build/tmp/work/sama5d3xek-poky-linux-gnueabi/core-imag= e-minimal/1.0-r0/temp/log.do=5Frootfs.22140 ERROR: Task 9=20 (/home/user/myTC/poky/meta/recipes-core/images/core-image-minimal.bb,=20 do=5Frootfs) 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@esa-grimma.de Internet: www.esa-grimma.de Gesch=E4ftsf=FChrer: Dipl.-Ing. J=F6rg Gaitzsch J=F6rg Reinker Sitz der Gesellschaft: Grimma Ust.-ID: DE 141784437 Amtsgericht: Leipzig, HRB 5159 Steuernummer: 238/108/00755 Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte=20 Informationen.=20 Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich=20 erhalten=20 haben, informieren Sie bitte sofort den Absender und l=F6schen Sie diese=20 Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser=20 Mail=20 ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you = are=20 not the intended recipient (or have received this e-mail in error) please=20 notify the sender immediately and destroy this e-mail. Any unauthorized=20 copying, disclosure or distribution of the material in this e-mail is=20 strictly=20 forbidden. Von: "Burton, Ross" An: S.Jaritz@esa-grimma.de Kopie: "yocto@yoctoproject.org" Datum: 09.06.2016 18:21 Betreff: Re: [yocto] License problems when switching form RPM to=20 DEB - looking for a easy way to fix it On 9 June 2016 at 15:52, wrote: I switched from RPM to DEB because the board configuration should be=20 handled by a package manager. By doing so I ran into a QA problem. All the = software provided by my colleagues I maked with=20 Note that deb is the least-tested package manager, we generally recommend=20 rpm or opkg over deb. If you switched to deb because of the size of the=20 tools on the target compared to rpm (as smart pulls in Python, it's not=20 small) then you'll really like opkg. =20 LICENSE =3D "CLOSED"=20 because they do not provide a license file. This works fine with the rpm=20 generator, but when I use the debian generator - the QA from the=20 "do=5Frootfs" fails with:=20 [snip] Very interesting, and I have seen this occasionally. Does deleting your=20 tmp/ and rebuilding from sstate solve this? Ross --=_alternative 003F6ED3C1257FD1_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hej

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

LICENSE=3D"ESA"
LIC=5FFILES=5FCHKSUM=3D"files:/= /ESAlicense.txt;md5=3D.."

What's the connection between the LI= CENSE and LIC=5FFILES=5FCHKSUM 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= =5Frootfs: Error executing a python function in exec=5Fpython=5Ffunc() autogenerated:<= /font>

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec=5Fpython=5Ffunc() autoge= nerated', lineno: 2, function: <module>
     0001:
 *** 0002:license=5Fcreate=5Fma= nifest(d)
     0003:
File: '/home/user/myTC/poky/meta/cla= sses/license.bbclass', lineno: 48, function: license=5Fcreate=5Fmanifest
     0044:   &nb= sp;pkg=5Fdic =3D {}
     0045:   &nb= sp;for pkg in sorted(image=5Flist=5Finstalled=5Fpackages(d)):
     0046:   &nb= sp;    pkg=5Finfo =3D os.path.join(d.getVar('PKGDATA=5FDIR', True),
     0047:   &nb= sp;                            'runtime-reverse', pkg)
 *** 0048:        pkg=5Fname =3D os.path.basename(os.readlink(pkg=5Finfo))
     0049:
     0050:   &nb= sp;    pkg=5Fdic[pkg=5Fname] =3D oe.packagedata.read=5Fpkgdatafile(pk= g=5Finfo)
     0051:   &nb= sp;    if not "LICENSE" in pkg=5Fdic[pkg=5Fname].keys():
     0052:   &nb= sp;        pkg=5Flic=5Fname =3D "LICENSE=5F" + pk= g=5Fname
Exception: OSError: [Errno 2] No such file or directory: '/home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/pkgd= ata/runtime-reverse/mycontrol'

ERROR: core-image-minimal-1.0-r0 do= =5Frootfs: Function failed: license=5Fcreate=5Fmanifest
ERROR: Logfile of failure stored in: /home/user/myTC/poky/build/tmp/work/sama5d3xek-poky-linux-gnueabi/core-imag= e-minimal/1.0-r0/temp/log.do=5Frootfs.22140
ERROR: Task 9 (/home/user/myTC/poky/= meta/recipes-core/images/core-image-minimal.bb, do=5Frootfs) 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@esa-grimma.de
Internet:
www.esa-grimma.de


Gesch=E4ftsf=FChrer:
Dipl.-Ing. J=F6rg Gaitzsch
J=F6rg Reinker

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


Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte Informa= tionen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich erhalten
haben, informieren Sie bitte sofort den Absender und l=F6schen 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 stric= tly
forbidden.




Von:     &= nbsp;  "Burton, Ross" <ross.burton@intel.com>
An:     &n= bsp;  S.Jaritz@esa-grimma.de
Kopie:    =    "yocto@yoctoproject.or= g" <yocto@yoctoproject.org>
Datum:    =    09.06.2016 18:21
Betreff:   &nbs= p;    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.Ja= ritz@esa-grimma.de> wrote:
I switched from RPM to DEB because t= he 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 =3D "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= =5Frootfs" fails with:

[snip]

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

Ross

--=_alternative 003F6ED3C1257FD1_=--