[yocto] [denzil] Licenses, source distribution etc

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Tue May 8 03:29:18 PDT 2012


2012/5/8 Frans Meulenbroeks <fransmeulenbroeks at gmail.com>:
> 2012/5/8 Frans Meulenbroeks <fransmeulenbroeks at gmail.com>:
>> Dear all,
>>
>> A next question/issue wrt my denzil experiment:
>>
>> I wanted to know what licenses are used in my image.
>> I found tmp/deploy/licenses but this is package oriented and does not
>> really give a quick overview.
>>
>> The manual gave me this section:
>> http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#ref-classes-src-distribute
>>
>> I tried to inherit src_distribute and src_distribute_local, but to no avail
>> Running a find on the source tree did not reveal these classes:
>>
>> frans at frans-desktop:~/poky-denzil-7.0$ find | grep distribute
>> ./meta/classes/pkg_distribute.bbclass
>> frans at frans-desktop:~/poky-denzil-7.0$
>>
>> Something missing?
>> And what is the best way to find out what licenses are used?
>>
>> Thanks, (and keep up the good work!)
>> Frans.
>
> Googled a little bit further.
> Guess this is a documentation issue as the classes have been
> deliberatly removed.
> See http://patches.openembedded.org/patch/23171/
>
> Frans

One more thing:
I've added the archiver class. I also have rm_work (not sure if that is related)
Now when running a build I get errors like this:

NOTE: Running task 1029 of 1279 (ID: 1167,
/home/frans/poky-denzil-7.0/meta/recipes-core/gettext/gettext_0.18.1.1.bb,
do_package_write_rpm)
NOTE: package gettext-0.18.1.1-r11: task do_package_write_rpm: Started
ERROR: Error executing a python function in
/home/frans/poky-denzil-7.0/meta/recipes-core/gettext/gettext_0.18.1.1.bb:
AttributeError: 'NoneType' object has no attribute 'upper'

ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File "do_remove_tarball", line 14, in <module>
ERROR:
ERROR:   File "do_remove_tarball", line 3, in do_remove_tarball
ERROR:
ERROR: The code that was being executed was:
ERROR:      0010:		except (TypeError,OSError):
ERROR:      0011:				pass
ERROR:      0012:
ERROR:      0013:
ERROR:  *** 0014:do_remove_tarball(d)
ERROR:      0015:
ERROR: (file: 'do_remove_tarball', lineno: 14, function: <module>)
ERROR:      0001:
ERROR:      0002:def do_remove_tarball(d):
ERROR:  *** 0003:	if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE',
True).upper() == 'SRPM':
ERROR:      0004:		work_dir = d.getVar('WORKDIR', True)
ERROR:      0005:		try:
ERROR:      0006:			for file in os.listdir(os.getcwd()):
ERROR:      0007:				if file in get_package(d):
ERROR: (file: 'do_remove_tarball', lineno: 3, function: do_remove_tarball)
ERROR: Function failed: do_remove_tarball
ERROR: Logfile of failure stored in:
/home/frans/poky-denzil-7.0-build/tmp/work/ppce300c3-poky-linux-uclibc/gettext-0.18.1.1-r11/temp/log.do_package_write_rpm.11248
NOTE: package gettext-0.18.1.1-r11: task do_package_write_rpm: Failed
ERROR: Task 1167
(/home/frans/poky-denzil-7.0/meta/recipes-core/gettext/gettext_0.18.1.1.bb,
do_package_write_rpm) failed with exit code '1'

And still no deploy/sources dir

Best regards, Frans



More information about the yocto mailing list