Hi,

I am happy to announce that I did setup initial midbrowser branches
based on the firefox 2.0 branch. Its not yet packaged, but you can get
the latest 'upstream' source from my people.ubuntu.com account.

For now its basically firefox, but its build with
--enable-application=midbrowser instead of
--enable-application=browser (see the mozconfig
file in 'How to build' section below).

This will allow us to do all kind of things we want in a way that will
be suitable for inclusion into mozilla tree at some point. For example,
it allows us to setup optimization options and refer to the
MOZ_MIDBROWSER AC_DEFINE in build-system/code et al.

ATM, I maintain *two* repositories: git and bzr (experimental);
I will try to keep these in sync for some time. Both are in my
people.ubuntu.com account until I find a better place to host them.

git mobile.browser.1.8 branch
==============================

 # git clone http://people.ubuntu.com/~asac/git-repo/mobile.browser.1.8.git

( I will rebase this branch against
  http://people.ubuntu.com/~asac/git-repo/mobile.browser.1.8.git which
  will track upstream development on 1.8 branch)


bzr repo
=========

The bzr repo is currently here:
http://people.ubuntu.com/~asac/bzr-repo/

The bzr repository layout is experimental and is planned to comprise
multiple branches that allow us to maintain our feature branches for a
more or less long period. For now it just has the mobile.infrastructure
branch. Ideas on how the layout should look like when we have more
than just one feature branch are welcome.

  browser1.8 - the branch that tracks upstream development
     |
     -- mobile.infrastructure - a feature branch that contains
                                infrastructure changes (currently the
                                only topic branch) ... other feature
                                branches should probably be branched
                                on top of this.              

(The mobile.intrastructure branch is what you want for now).

How to build
=============

In order to build midbrowser, just get the branch
mobile.browser.1.8.git branch or the mobile.infrastructure branch and
add your .mozconfig file into the top-level directory. For your
convenience I provide an example file:

  cd mobile.release/
  wget -O .mozconfig http://people.ubuntu.com/~asac/mobile.mozconfig

and build like:
  make -f client.mk build

(  make -f client.mk clean
   make -f client.mk distclean )

In case you miss some build-depends. Its easiest to just install current
firefox build depends, like:

  sudo apt-get build-dep firefox


Patches
========

For those who just want to look at the current (infrastructure)
patches, look in: http://people.ubuntu.com/~asac/mobile-patches/. Just
ignore the 0003* patch ... as its just an autoconf update.

Performance (git vs. bzr)
=========================

Bzr still comes with a huge performance penalty, though the gap has
definitly narrowed. However we are still not where we need to be imo.

Attached two log files: git.timing and bzr.timing ... which shows the
difference of similar actions of git and bzr.


If there are questions, feel free to ask.

 - Alexander

[EMAIL PROTECTED]:~/mozilla/mobile/mozilla$ time git diff

real    0m0.373s
user    0m0.004s
sys     0m0.006s
[EMAIL PROTECTED]:~/mozilla/mobile/mozilla$ vi client.mk 
[EMAIL PROTECTED]:~/mozilla/mobile/mozilla$ time git commit -m "test checkin" 
client.mk 
Created commit 2e64bd2: test checkin
 1 files changed, 1 insertions(+), 0 deletions(-)

real    0m4.781s
user    0m4.078s
sys     0m0.478s
[EMAIL PROTECTED]:~/mozilla/mobile/mozilla$ time git reset HEAD^
client.mk: needs update

real    0m2.964s
user    0m2.642s
sys     0m0.310s
[EMAIL PROTECTED]:~/mozilla/mobile/mozilla$ time git checkout -f

real    0m3.060s
user    0m2.788s
sys     0m0.237s

[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ time bzr diff

real    0m3.035s
user    0m2.474s
sys     0m0.546s
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ vi client.mk
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ time bzr commit -m "a newline on 
top"
modified client.mk                                                              
                     
Committed revision 5.                                                           
                     
                                                                                
                     
real    0m24.375s
user    0m22.372s
sys     0m1.827s
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ echo damn
damn
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ time bzr uncommit
    5 Alexander Sack    2007-07-04
      a newline on top

The above revision(s) will be removed.
Are you sure [y/N]? y

real    0m11.101s
user    0m9.230s
sys     0m0.486s
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ time bzr revert
 M  client.mk                                                                   
                     

real    0m19.957s
user    0m18.802s
sys     0m1.087s
[EMAIL PROTECTED]:~/mozilla/mobile/browser1.8$ 

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to