Getting It de

From Apache OpenOffice Wiki
Revision as of 12:37, 28 March 2010 by B michaelsen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Quelltext

Der Quelltext kann als Tarball-Archiv herunter geladen werden, z.B. hier für OOo2.2.1. Falls ein neueres Release oder Snapshots für Entwickler da sind, schauen Sie bitte in den Abschnitt Development von Download Central. Die Quellen sind sehr groß, weshalb sie in mehrere Dateien aufgesplittet sind. Für neuere Release als OOo2.1 ersetzen Sie OOo_2.1.0_ entsprechend:

  • OOo_2.1.0_src_core.tar.bz2 - der unerläßliche Teil für jedes Build; die anderen Tarballs benötigen diesen.
  • OOo_2.1.0_src_binfilter.tar.bz2 - die Filter für die alten Binary-StarOffice-Formate.
  • OOo_2.1.0_src_l10n.tar.bz2 - Übersetzung in andere Sprachen also Englisch und Deutsch.
  • OOo_2.1.0_src_sdk.tar.bz2 - OOo SDK (Software Development Kit).
  • OOo_2.1.0_src_system.tar.bz2 - Bibliotheken, die üblicherweise auf einem Standard-Linuxsystem vorhanden sind, weshalb es nicht erforderlich ist, eigene Versionen auf Linux zu erstellen. Für eine Windows-Build wird dieses Paket üblicherweise benötigt.

Für ein komplettes Build brauchen Sie sie alle. Für Entwicklung ist src_core gewöhnlich alles, was Sie brauchen.

Laden Sie sie in ein Verzeichnis herunter und entpacken sie. Informationen, wie man aus dem CVS auscheckt, folgen.

Vanilla up-stream

Sie werden insbesondere an dem Abschnitt Get the source code in dem Build-Handbuchsection interessiert sein (für Linux, aber ziemlich ähnlich für alle anderen Plattformen).

export 'CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs'
cvs login
(CVS password: anoncvs)
cvs co -r <milestone> OpenOffice2

Das Werkzeug, um das Projekt source code online zu durchsuchen, hat einige ergänzende Hinweise.

Falls Sie nur ein Entwickler-Releas testen wollen, können Sie ein bereits kompiliertes Build von [1] herunterladen. Auflistungen von verfügbaren Mac-Builds finden Sie unter Mac OS X Development Builds.

ooo-build

Es gibt eine Menge von Versionen von OO.o und mehrere Auswahlen von Zweigen (branch) mit mehreren besonderen Patch-Sätzen. Ich empfehle Ihnen, aus einem Up-Stream-CVS-HEAD-Milestones (SRC680 milestones) zu erstellen, mit Patch-Sätzen, um das Erstellen einfacher zu machen, von [2]

Das letzte ooo-build (ein kleiner ~1.5Mb-Build-Wrapper) kann folgendermaßen aus dem SVN erhalten werden:

svn co http://svn.gnome.org/svn/ooo-build/trunk ooo-build

Beachten Sie: Sie werden ergänzende ~150Mb komprimierte Quellen herunter laden müssen und werden ~3Gb Platz zum Entpacken und Builden der Quellen benötigen.

Checking out a CWS through CVS

This section is a draft!

First, find the CWS name such as picom. Then, lookup the CWS name in EIS (e.g., picom). Notice "Milestone (current)" is m222 (in this example as of time of writing): that is the base milestone. Then, notice the affected modules listed under "Modules & Files."

You will checkout the base milestone from CVS. The convention for base milestone is SRC680_m### (later DEV300_m###?). Then in each affected module (where a module is basically a directory), you will update the module with CVS. The convention for the revision tag for the CWS is cws_src680_####.

Here is a script.

[bash,N]

  1. !/bin/bash
  2. configure these variables according to the particular CWS

AFFECTED_MODULES="basebmp basegfx canvas comphelper cppcanvas \

        desktop filter goodies offapi offuh psprint sal  \
        slideshow solenv testshl2 tools unotools vcl xpdf"

BASE_MILESTONE_TAG=SRC680_m222 CWS_TAG=cws_src680_picom

export CVSROOT=':pserver:anoncvs@anoncvs.services.openoffice.org:/cvs' echo 'Enter the password is anoncvs' cvs login cvs co -r $BASE_MILESTONE_TAG OpenOffice2 for d in $AFFECTED_MODULES do

       echo "updating module $d"
       pushd $d
       cvs up -dP -r $CWS_TAG
       popd

done

If you have a working ~/.cwsrc configuration file setup and the SOLARENV environment variable is set to an already existing solenv directory of a previously checked out OOo tree, e.g. export SOLARENV="$HOME/ooo/SRC680/src.m222/solenv", and PATH contains the solenv/bin directory, e.g. export PATH="$SOLARENV/bin:$PATH", then the list of affected modules may be automatically obtained using [bash,N] AFFECTED_MODULES="$(cwsquery -m src680 -c picom modules)"

You also may use cwsquery to obtain the current milestone of the CWS with [bash,N] BASE_MILESTONE_TAG="SRC680_$(cwsquery -m src680 -c picom current)"

When scripting this it is a good idea to check the exit code of cwsquery commands in case your ~/.cwsrc is broken or the environment prerequisites aren't met or the EIS database isn't reachable, so add the following after each cwsquery command: [bash,N] if [ $? -ne 0 ]; then

   echo 'cwsquery unsuccessful.'
   exit 1

fi

If you already have ~/.cwsrc working and a milestone master build ready and want to work on a CWS based on that milestone see Tuning in to a CWS, which offers a method that does not require to rebuild the entire tree.

See also

Languages:

Personal tools