Bug 1734

Summary: [Build Appliance] Create image with X and Pygtk support
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Edwin Zhai <edwin.zhai>
Component: meta-yoctoAssignee: Edwin Zhai <edwin.zhai>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Low CC: dexuan.cui, jiajun.xu, poky.bs.watcher, poky.watcher, sgw, shane.wang, song.liu
Version: unspecified   
Target Milestone: 1.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: (P1) (QA Testing Completed)(Done)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
remove minimal width limitation of hob main window none

Description Edwin Zhai 2011-11-04 03:50:04 UTC
Integrate hob in L1 target's build

we need do:
1. achieve minimal X system and required LIB to start terminal
2. add pygtk and integrate hob
Comment 1 Dexuan Cui 2011-12-11 22:09:24 UTC
(In reply to comment #0)
> Integrate hob in L1 target's build
> 
> we need do:
> 1. achieve minimal X system and required LIB to start terminal
> 2. add pygtk and integrate hob

Edwin has implemented this and is rebasing the patch.

Edwin, please update the Status field.
Comment 2 Edwin Zhai 2011-12-12 00:49:35 UTC
1. mini X
I created a batch of applications called "x11-mini", which can be included as IMAGE_FEATURE. And also a miniX session file is also created to start minimal environment: Xorg + matchbox-terminal.

Another issue is we need run appls on behalf of normal user instead of root. One possible solution is rootless X, which depends on KMS that required physical DRI, so only physical atompc support it, while qemu/vmware doesn't(chmod u+s /usr/bin/xinit can hack, but may introduce security hole).

I use another option: ask the normal user put some script into /etc/minix/session.d/, then mini X session will check and run them on behalf of script owner. It works well.
Comment 3 Edwin Zhai 2011-12-12 00:54:24 UTC
2. hob integration
There is no issue here, since X and pygtk already there. Just start hob inside bitbake directory works perfect.

One minor issue is the components in the hob main window has minimal width limitation, so that the whole window can't be decreased. We can use attached patch to remove such limitation, or change the resolution of emulated monitor in qemu/vmware.

Patch is out for review.
Comment 4 Edwin Zhai 2011-12-12 00:55:41 UTC
Created attachment 292 [details]
remove minimal width limitation of hob main window
Comment 5 Jiajun Xu 2012-01-18 17:11:01 UTC
I tested HOB in build appliance against 1.2 M2. It could work well.
Comment 6 Edwin Zhai 2012-02-05 17:59:24 UTC
Patch in.