All of lore.kernel.org
 help / color / mirror / Atom feed
* License problems when switching form RPM to DEB - looking for a easy way to fix it
@ 2016-06-09 14:52 S.Jaritz
  2016-06-09 16:03 ` Roman Shaposhnikov
  2016-06-09 16:20 ` Burton, Ross
  0 siblings, 2 replies; 4+ messages in thread
From: S.Jaritz @ 2016-06-09 14:52 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3882 bytes --]

Hej

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 

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:
########################
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.69642
ERROR: Task 9 
(/home/user/myTC/poky/meta/recipes-core/images/core-image-minimal.bb, 
do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2383 tasks of which 2382 didn't need to be 
rerun and 1 failed.
No currently running tasks (2012 of 2388)
########################

Is there a way to avoid that or do I have to provide for every recipe a 
license file?

I found a contribution about that: 
https://www.yoctoproject.org/blogs/khem/2014/suppliment-common-licenses-yocto-project

But ${LAYERDIR} seem not to be set. Maybe a small example can explain my 
problem in a good way. I have a layer with the following struct and 
modifications:

meta-myLayer
|- licenses
|    -> myLicense
|- recipes-my
|    -> myrecipe.bb

@meta-myLayer:
LICENSE_PATH += "${LAYERDIR}/licenses"

@myrecipe.bb
LICENSE = "myLicense"

Where is my error/what do I have to do for avoiding to add for every 
recipe a license file?

Regards!

Stefan Jaritz
Entwickler

------------------------------------------------------------
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ä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.

[-- Attachment #2: Type: text/html, Size: 6561 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: License problems when switching form RPM to DEB - looking for a easy way to fix it
  2016-06-09 14:52 License problems when switching form RPM to DEB - looking for a easy way to fix it S.Jaritz
@ 2016-06-09 16:03 ` Roman Shaposhnikov
  2016-06-09 16:20 ` Burton, Ross
  1 sibling, 0 replies; 4+ messages in thread
From: Roman Shaposhnikov @ 2016-06-09 16:03 UTC (permalink / raw)
  To: S.Jaritz; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4781 bytes --]

Hi Stefan,

Looks like this is not a license issue. There is no
'runtime-reverse/mycontrol' link and it's not depend from license
information.
So, just a guess, is this package generated as RPROVIDES?

On Thu, Jun 9, 2016 at 5:52 PM, <S.Jaritz@esa-grimma.de> wrote:

> Hej
>
> 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
>
> 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:
> ########################
> 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.69642
> ERROR: Task 9 (/home/user/myTC/poky/meta/recipes-core/images/
> core-image-minimal.bb, do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 2383 tasks of which 2382 didn't need to be
> rerun and 1 failed.
> No currently running tasks (2012 of 2388)
> ########################
>
> Is there a way to avoid that or do I have to provide for every recipe a
> license file?
>
> I found a contribution about that:
> https://www.yoctoproject.org/blogs/khem/2014/suppliment-common-licenses-yocto-project
>
> But ${LAYERDIR} seem not to be set. Maybe a small example can explain my
> problem in a good way. I have a layer with the following struct and
> modifications:
>
> meta-myLayer
> |- licenses
> |    -> myLicense
> |- recipes-my
> |    -> myrecipe.bb
>
> @meta-myLayer:
> LICENSE_PATH += "${LAYERDIR}/licenses"
>
> @myrecipe.bb
> LICENSE = "myLicense"
>
> Where is my error/what do I have to do for avoiding to add for every
> recipe a license file?
>
> Regards!
>
> Stefan Jaritz
> Entwickler
>
> ------------------------------------------------------------
> 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ä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.
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 

Roman Shaposhnikov | Lead Software Engineer | GlobalLogic Inc.

Leaders in Software R&D Services

ARGENTINA | CHINA | INDIA | ISRAEL | UKRAINE | UK | USA

Mobile +380-97-977-7722

www.globallogic.com

Disclaimer: http://www.globallogic.com/email_disclaimer.txt

[-- Attachment #2: Type: text/html, Size: 9440 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: License problems when switching form RPM to DEB - looking for a easy way to fix it
  2016-06-09 14:52 License problems when switching form RPM to DEB - looking for a easy way to fix it S.Jaritz
  2016-06-09 16:03 ` Roman Shaposhnikov
@ 2016-06-09 16:20 ` Burton, Ross
  2016-06-13 11:32   ` Antwort: " S.Jaritz
  1 sibling, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-06-09 16:20 UTC (permalink / raw)
  To: S.Jaritz; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 864 bytes --]

On 9 June 2016 at 15:52, <S.Jaritz@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

[-- Attachment #2: Type: text/html, Size: 1596 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Antwort: Re: License problems when switching form RPM to DEB - looking for a easy way to fix it
  2016-06-09 16:20 ` Burton, Ross
@ 2016-06-13 11:32   ` S.Jaritz
  0 siblings, 0 replies; 4+ messages in thread
From: S.Jaritz @ 2016-06-13 11:32 UTC (permalink / raw)
  To: Burton, Ross, roman.shaposhnikov; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4242 bytes --]

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@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@intel.com>
An:     S.Jaritz@esa-grimma.de
Kopie:  "yocto@yoctoproject.org" <yocto@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@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


[-- Attachment #2: Type: text/html, Size: 7445 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-13 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-09 14:52 License problems when switching form RPM to DEB - looking for a easy way to fix it S.Jaritz
2016-06-09 16:03 ` Roman Shaposhnikov
2016-06-09 16:20 ` Burton, Ross
2016-06-13 11:32   ` Antwort: " S.Jaritz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.