Monday, February 28, 2011

LibreOffice Tinderbox moved

If you have read my previous blog about LibreOffice Tinderbox, this is a small update:

  • We have moved the tinbuild script to a separate repository, so that the tinbuild can potentially switch branches as necessary.
  • Thorsten has also improved the script so that you can send the mails via SSL or TLS thanks to using sendEmail by Brandon Zehm.

If you are still using the old tinbuild, you are encouraged to upgrade :-) The most recent installation instructions are part of the repository now, read them here.

Friday, February 18, 2011

LibreOffice Tinderbox

You probably know what is LibreOffice, but might be in doubt, what is a tinderbox. It is easy - it is a script that builds a software project over and over again, and reports success or problems to a central place.

Until recently, we had the first part, a script that builds LibreOffice several times a day, and when a build problem appears, it mails the error to all the committers since the last successful build. We also had the second part, the central place for reporting the problems, Christian Lohmaier's great tinderbox on go-oo. But what we were missing was the connection of those two. I fixed that just recently by extending the nagging script to send the build logs there too.

The interesting outcome is that setting up your own tinderbox is incredibly easy now :-) What to do:

 $ git clone git://anongit.freedesktop.org/libreoffice/bootstrap tinderbox $ cd tinderbox $ ./autogen.sh [params] [make sure that you fulfill all the configure needs] $ make [make sure that you get at least one successful build, for sanity check] $ screen bin/tinbuild [params] [and now let that box do the work :-)] 

Should you have trouble with the autogen.sh and make part, consult the great documentation here. If you want to learn more about the bin/tinbuild, have a look at tinbuild --help. The setup I am using is:

 screen bin/tinbuild -n -i -m kendy@suse.cz -w $((15*60)) -s relayhost -t "SLED11 (x86-64)" 

You of course want to change the -m parameter (email address of the tinderbox owner), -s parameter (SMTP host), and -t (description of the host, ideally in the form "Operating system (arch)"). Please also note:

  • The box should run 24/7.
  • It is a good practice to have a separate user account for the tinderbox, that does nothing else than the building.
  • You need --disable-dependency-tracking among the ./autogen.sh parameters so that the build stops immediately after the error.
  • It is also preferable to force --with-num-cpus=1, from the same reason.

I believe with the recent updates, tinbuild is reasonably cross-platform (it uses Bash and Perl's Net::SMTP and MIME::Lite modules to send mails), so you should be able to deploy it on your favorite platform pretty easily. Actually - do so! :-) That way you can be sure that LibreOffice will be buildable on your platform most of the time. Drop a note to our development mailing list if you are interested.

And future plans? Extend tinbuild even more, to be able to upload the resulting binaries to Norbert Thiebaud's daily builds :-)

Tuesday, October 5, 2010

LibreOffice on CIA.vc

Yesterday I have added LibreOffice as a project to the CIA.vc tracking site; and guess what, it was among the most active projects yesterday, and it has quite some nice progress today too :-)

Big 'Thank you!' to everyone who make this happen!

Wednesday, July 29, 2009

Pro Git

I've just learned about the Git book - Pro Git. I've read just small parts of that, but looks really great :-) You can buy a printed version of that too.

Wednesday, July 8, 2009

Split build

Split build is an effort to provide OpenOffice.org buildable by pieces; and additionally the way you can see with all the free software projects that use autotools - just ./configure ; make ; sudo make install.

But what I mean by 'building by pieces'? Imagine you are completely new to OOo development, and notice a tiny misbehavior in Calc. What do you have to do now? Download all the giant monolithic sources, guess the right configure switches, install all the dependencies, learn the OOo build system, and do the build. If you did not get demotivated by now, you might try to fix the original problem.

ooo-build makes it a bit easier - it has default settings for lots of the distros out there, and automates the download of the sources. But the ultimate answer is the split build :-)

With the split build [when finished, of course ;-)], all you'll have to do is install the OpenOffice.org-*-devel packages using the way usual for your distro (in openSUSE, it will mean zypper source-install -d OpenOffice_org-calc, in Debian apt-get build-dep packagename), clone the Calc tree, and do ./configure (or ./autogen.sh to generate the autotools stuff) ; make .

At the moment, it is work in progress, taking place in the ooo-build git repositories. So far, bootstrap (the common build pieces), ure (UNO Runtime Environment), libs-extern (3rd party libraries), and libs-extern-sys (3rd party libraries, usually available in recent Linux system) are in usable shape, more to come soon.

Oh yes, and for those who still want to build everything, there will be a possibility to do make world in bootstrap that will build everything from the beginning to the end :-)

Monday, June 15, 2009

OOo KDE4 Integration

Thanks to the heroic efforts of Éric Bischoff, Bernhard Rosenkränzer, and Roman Shtylman, the OpenOffice.org KDE Integration has been ported to KDE4. It still has some rough edges (currently the detection does not work out of the box—you have to export OOO_FORCE_DESKTOP=kde4 to get it), but it is safe because it co-exists nicely with the existing KDE3 integration; so if you are not satisfied, you are able just swich back to KDE3 (export OOO_FORCE_DESKTOP=kde).

For KDE4, Roman is also changing the out-of-process implementation of the KDE file picker to an in-process implementation, so you'll probably notice some performance improvement of the KDE file dialog launch too :-)

Guys, thank you!

Monday, June 8, 2009

Yet another SVN to git conversion tool

Recently I needed to convert the ooo-build repository from the Gnome SVN to git, and also create a regularly updated git mirror of the OpenOffice.org SVN repository. Unfortunately I did not find a tool that would suffice my needs - git-svn was unable to handle more branches, and svn-all-fast-export had a Qt4 dependency that made it problematic to even compile, not to mention the syntax of the repository description file(s) that I did not really understand - so I decided to create a new tool based on svn-fast-export.c:

http://cgit.freedesktop.org/ooo-build/contrib/svn-to-git

I made it for our needs, so there is just a simple Makefile, the code might be hacky here and there [and is C++ ;-)], but it seems to work really well - at least for us :-)

Features:

  • perfect import of trunk (master), branches and tags
    even when you svn cp things around like svn cp branches/blah/bleh trunk/foo/bar
    when there are commits to the tags
  • change login names to real names and email addresses
  • converts ChangeLog-like commit messages to git-like
    (optionally)
  • allows you to split one SVN tree to multiple git trees
    (based on regexps)
  • allows you to convert leading tabs to spaces in files you choose
    (fixes a terrible pain in the OOo sources where tab is set to 4 spaces, and leading tabs and spaces are combined in nearly every source file!)
  • allows you to ignore broken tags/commits
  • and is really fast
    the OOo SVN with ~270000 commits in < 1hr on the right H/W ;-)

Documentation is a bit lacking, but basically you need to create one file containing the description of the repositories, and one with the names/emails of the svn login names, and you are ready to start ./svn-to-git.sh. Description files I used for the ooo-build and OOo conversions are included.

So - if you are interested, and have a SVN repository to convert, give it a try. And if you have patches, please send them to me :-)