Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. Something in the pipeline is eating patches. I'll send them as replies to this message. Joshua -- Joshua Lock Yocto Project Build Monkey Intel Open Source Technology Centre ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
From 1618318f0a30847b08c158e7ac82f9043126144e Mon Sep 17 00:00:00 2001 From: Joshua Lock j...@linux.intel.com Date: Fri, 27 May 2011 13:04:44 -0700 Subject: [PATCH 2/2] uievent: fix queueing of events for xmlrpc before UI has loaded The change to Queue up events before the UI is spawned broke the xmlrpc server because the uievent implementation of BBUIEventQueue expects pickled strings for its queue_event() method. This is because the RPC exposed event.send() method must accept pickled strings, but for xmlrpc event.send() is just mapped to queue_event(). Work around this by adding a send_event method which unpickles strings and hands them off to queue_event() which can then be used for the remapping. Signed-off-by: Joshua Lock j...@linux.intel.com --- lib/bb/ui/uievent.py |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/bb/ui/uievent.py b/lib/bb/ui/uievent.py index b404805..2fef4e4 100644 --- a/lib/bb/ui/uievent.py +++ b/lib/bb/ui/uievent.py @@ -63,17 +63,20 @@ class BBUIEventQueue: def queue_event(self, event): self.eventQueueLock.acquire() -self.eventQueue.append(pickle.loads(event)) +self.eventQueue.append(event) self.eventQueueNotify.set() self.eventQueueLock.release() +def send_event(self, event): +self.queue_event(pickle.loads(event)) + def startCallbackHandler(self): server = UIXMLRPCServer() self.host, self.port = server.socket.getsockname() server.register_function( self.system_quit, event.quit ) -server.register_function( self.queue_event, event.send ) +server.register_function( self.send_event, event.send ) server.socket.settimeout(1) self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port) -- 1.7.5.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On May 27, 2011, at 2:00 PM, Joshua Lock j...@linux.intel.com wrote: On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. Something in the pipeline is eating patches. I'll send them as replies to this message. I think it's the mailing list setup. When I attach a patch it never goes through Inlining the patch does go through Joshua -- Joshua Lock Yocto Project Build Monkey Intel Open Source Technology Centre ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On Fri, 2011-05-27 at 14:01 -0700, Khem Raj wrote: On May 27, 2011, at 2:00 PM, Joshua Lock j...@linux.intel.com wrote: On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. Something in the pipeline is eating patches. I'll send them as replies to this message. I think it's the mailing list setup. When I attach a patch it never goes through Inlining the patch does go through Yeah. It seems to be the oe-core list mangling patches. The attachments made it to bitbake-devel fine. Cheers, Joshua -- Joshua Lock Yocto Project Build Monkey Intel Open Source Technology Centre ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. There have been API changes in upstream which mean this code will fail to work with bitbake itself although it will work with the pr server. I've merged the patches as a bandaid to allow things to work but we've now got two different server backends using different server APIs. I really just want to highlight I'm aware of this and it will get addressed next week. Its been on my todo list and is way overdue. The main priority is to get people's builds with OE-Core working again. Cheers, Richard ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On Fri, May 27, 2011 at 6:02 PM, Khem Raj raj.k...@gmail.com wrote: On Fri, May 27, 2011 at 3:09 PM, Richard Purdie richard.pur...@linuxfoundation.org wrote: On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. There have been API changes in upstream which mean this code will fail to work with bitbake itself although it will work with the pr server. I've merged the patches as a bandaid to allow things to work but we've now got two different server backends using different server APIs. I really just want to highlight I'm aware of this and it will get addressed next week. Its been on my todo list and is way overdue. The main priority is to get people's builds with OE-Core working again. btw. I am at 6c412f009e33e77cbcb5d4881c110e6bdda05282 of bitbake I still see the problem here is the error NOTE: Running task 919 of 925 (ID: 9, /home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb, do_package) NOTE: package uclibc-0.9.31+0.9.32rc3-r2.2: task do_package: Started ERROR: Connecting to PR service None:None failed: int() argument must be a string or a number, not 'NoneType' ERROR: Function 'package_get_auto_pr' failed ERROR: Logfile of failure stored in: /home/kraj/work/angstrom/build/tmp-angstrom_2010_x-uclibc/work/efikamx-angstrom-linux-uclibceabi/uclibc-0.9.31+0.9.32rc3-r2.2/temp/log.do_package.5207 Log data follows: | ERROR: Connecting to PR service None:None failed: int() argument must be a string or a number, not 'NoneType' | ERROR: Function 'package_get_auto_pr' failed NOTE: package uclibc-0.9.31+0.9.32rc3-r2.2: task do_package: Failed ERROR: Task 9 (/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb, do_package) failed with exit code '1' ERROR: '/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb' failed Cheers, Richard ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [bitbake-devel] [PATCH 00/11] Add PR service and integrate PKGV/PKGR from OE
On Fri, May 27, 2011 at 6:05 PM, Khem Raj raj.k...@gmail.com wrote: On Fri, May 27, 2011 at 6:02 PM, Khem Raj raj.k...@gmail.com wrote: On Fri, May 27, 2011 at 3:09 PM, Richard Purdie richard.pur...@linuxfoundation.org wrote: On Fri, 2011-05-27 at 13:09 -0700, Joshua Lock wrote: Upstream BitBake still has the xmlrpc server removed. The version in Poky's BitBake is functional (I use it daily). Attached are two patches against BitBake master to add back the xmlrpc server (copied from Poky's tree) and fix the uievent. There have been API changes in upstream which mean this code will fail to work with bitbake itself although it will work with the pr server. I've merged the patches as a bandaid to allow things to work but we've now got two different server backends using different server APIs. I really just want to highlight I'm aware of this and it will get addressed next week. Its been on my todo list and is way overdue. The main priority is to get people's builds with OE-Core working again. btw. I am at 6c412f009e33e77cbcb5d4881c110e6bdda05282 of bitbake I still see the problem here is the error NOTE: Running task 919 of 925 (ID: 9, /home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb, do_package) NOTE: package uclibc-0.9.31+0.9.32rc3-r2.2: task do_package: Started ERROR: Connecting to PR service None:None failed: int() argument must be a string or a number, not 'NoneType' ERROR: Function 'package_get_auto_pr' failed ERROR: Logfile of failure stored in: /home/kraj/work/angstrom/build/tmp-angstrom_2010_x-uclibc/work/efikamx-angstrom-linux-uclibceabi/uclibc-0.9.31+0.9.32rc3-r2.2/temp/log.do_package.5207 Log data follows: | ERROR: Connecting to PR service None:None failed: int() argument must be a string or a number, not 'NoneType' | ERROR: Function 'package_get_auto_pr' failed NOTE: package uclibc-0.9.31+0.9.32rc3-r2.2: task do_package: Failed ERROR: Task 9 (/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb, do_package) failed with exit code '1' ERROR: '/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb' failed this patch seems to fix it. http://patches.openembedded.org/patch/4941/ Cheers, Richard ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core