From: S.Jaritz@esa-grimma.de
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: License problems when switching form RPM to DEB - looking for a easy way to fix it
Date: Thu, 9 Jun 2016 16:52:35 +0200 [thread overview]
Message-ID: <OF23BF867D.425FC638-ONC1257FCD.004F586E-C1257FCD.0051B840@esa-grimma.de> (raw)
[-- 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 --]
next reply other threads:[~2016-06-09 14:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 14:52 S.Jaritz [this message]
2016-06-09 16:03 ` License problems when switching form RPM to DEB - looking for a easy way to fix it Roman Shaposhnikov
2016-06-09 16:20 ` Burton, Ross
2016-06-13 11:32 ` Antwort: " S.Jaritz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF23BF867D.425FC638-ONC1257FCD.004F586E-C1257FCD.0051B840@esa-grimma.de \
--to=s.jaritz@esa-grimma.de \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.