[oe] problem with modifications to base.bbclass
Koen Kooi
k.kooi at student.utwente.nl
Sun Apr 25 11:13:59 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I was about to send a mail saying "it looks better, but
libpam-base-files fails", but you hit the error sooner than me :)
regards,
Koen
On 25-04-10 01:54, David Hemmo wrote:
> Thank you Chris, things are going further.
>
> Unfortunately something else must be different. I have an error with the libpam-base-files.bb recipe
> As the base_do_unpack function is in the stack crawl, I guess it is related
>
> Here is the error I get
>
> NOTE: Unpacking recipes/pam/libpam-base-files/pam.d/*
> ERROR: Error in executing: /home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files.bb
> ERROR: Exception:<type 'exceptions.IOError'> Message:[Errno 2] No such file or directory: '/home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files/./pam.d/*'
> ERROR: Printing the environment of the function
> ERROR: Error in executing: /home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files.bb
> ERROR: Exception:<type 'exceptions.IOError'> Message:[Errno 2] No such file or directory: '/home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files/./pam.d/*'
> ERROR: Printing the environment of the function
> ERROR: Build of /home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files.bb do_unpack failed
> Traceback (most recent call last):
> File "/home/owner/dvt/oe/bitbake/bin/bitbake", line 143, in <module>
> main()
> File "/home/owner/dvt/oe/bitbake/bin/bitbake", line 140, in main
> cooker.cook()
> File "/home/owner/dvt/oe/bitbake/lib/bb/cooker.py", line 640, in cook
> return self.buildTargets(pkgs_to_build)
> File "/home/owner/dvt/oe/bitbake/lib/bb/cooker.py", line 547, in buildTargets
> failures = rq.execute_runqueue()
> File "/home/owner/dvt/oe/bitbake/lib/bb/runqueue.py", line 841, in execute_runqueue
> self.execute_runqueue_internal()
> File "/home/owner/dvt/oe/bitbake/lib/bb/runqueue.py", line 950, in execute_runqueue_internal
> self.cooker.tryBuild(fn)
> File "/home/owner/dvt/oe/bitbake/lib/bb/cooker.py", line 136, in tryBuild
> return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data)
> File "/home/owner/dvt/oe/bitbake/lib/bb/cooker.py", line 110, in tryBuildPackage
> bb.build.exec_task('do_%s' % task, the_data)
> File "/home/owner/dvt/oe/bitbake/lib/bb/build.py", line 283, in exec_task
> exec_func(task, localdata)
> File "/home/owner/dvt/oe/bitbake/lib/bb/build.py", line 120, in exec_func
> exec_func_python(func, d)
> File "/home/owner/dvt/oe/bitbake/lib/bb/build.py", line 141, in exec_func_python
> utils.better_exec(comp, g, tmp, bbfile)
> File "/home/owner/dvt/oe/bitbake/lib/bb/utils.py", line 185, in better_exec
> exec code in context
> File "do_unpack", line 4, in <module>
> File "do_unpack", line 2, in do_unpack
> File "/home/owner/dvt/oe/bitbake/lib/bb/build.py", line 120, in exec_func
> exec_func_python(func, d)
> File "/home/owner/dvt/oe/bitbake/lib/bb/build.py", line 141, in exec_func_python
> utils.better_exec(comp, g, tmp, bbfile)
> File "/home/owner/dvt/oe/bitbake/lib/bb/utils.py", line 185, in better_exec
> exec code in context
> File "base_do_unpack", line 36, in <module>
> File "base_do_unpack", line 34, in base_do_unpack
> File "<bb>", line 37, in oe_unpack_file
> File "/usr/lib64/python2.6/shutil.py", line 99, in copy2
> copyfile(src, dst)
> File "/usr/lib64/python2.6/shutil.py", line 52, in copyfile
> fsrc = open(src, 'rb')
> IOError: [Errno 2] No such file or directory: '/home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files/./pam.d/*'
> ERROR: Task 0 (/home/owner/dvt/oe/oe_shogo2test/recipes/pam/libpam-base-files.bb, do_unpack) failed
>
> I hope you will be again able to help
>
> Thanks,
>
> David Hemmo
>
> On Apr 24, 2010, at 6:53 PM, Chris Larson wrote:
>
>> Fixed. Sorry about that.
>>
>> On Sat, Apr 24, 2010 at 2:25 AM, David Hemmo <david.oe at pilsoft.com> wrote:
>>
>>> Hello,
>>>
>>> I am trying to build an image and I run in a python error that seems to be
>>> caused by the latest modifications to base.bbclase
>>>
>>> ERROR: Error in executing:
>>> /home/owner/dvt/oe/oe_shogo2test/recipes/stage-manager/
>>> stagemanager-native_0.0.1.bb
>>> ERROR: Exception:<type 'exceptions.TypeError'> Message:oe_unpack_file() got
>>> an unexpected keyword argument 'env'
>>> ERROR: Printing the environment of the function
>>> ERROR: 0030: destdir = os.path.join(workdir, *subdirs)
>>> ERROR: 0031: bb.mkdirhier(destdir)
>>> ERROR: 0032: else:
>>> ERROR: 0033: destdir = workdir
>>> ERROR: 0034: oe_unpack_file(local, destdir, env=env,
>>> **urldata.parm)
>>> ERROR: 0035:
>>> ERROR: Error in executing:
>>> /home/owner/dvt/oe/oe_shogo2test/recipes/stage-manager/
>>> stagemanager-native_0.0.1.bb
>>> ERROR: Exception:<type 'exceptions.TypeError'> Message:oe_unpack_file() got
>>> an unexpected keyword argument 'env'
>>> ERROR: Printing the environment of the function
>>> ERROR: Build of /home/owner/dvt/oe/oe_shogo2test/recipes/stage-manager/
>>> stagemanager-native_0.0.1.bb do_unpack failed
>>>
>>> it seems the parameters sent to oe_unpack_file are not what the function
>>> faits for
>>>
>>> def oe_unpack_file(file, data, url = None):
>>>
>>> I am too new to this project to propose a patch, but I hope someone will be
>>> able to help
>>>
>>> Thanks
>>>
>>> David Hemmo
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>
>>
>>
>>
>> --
>> Christopher Larson
>> clarson at kergoth dot com
>> Founder - BitBake, OpenEmbedded, OpenZaurus
>> Maintainer - Tslib
>> Senior Software Engineer, Mentor Graphics
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFL1CP3MkyGM64RGpERAiHGAKCyVd08geY3Q4pELev0JiHLBfArQgCcDCXV
1KJWZR7Agp7DOJtecLECVOw=
=ZgsL
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list