Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo apt-get install \
rpm \
autoconf \
libarchive-zip-perl \
g++ \
libcups2-dev \
libpam-dev \
openjdk-6-jdk \
gperf \
libfreetype6-dev \
libgtk2.0-dev \
libxaw7-dev \
bison \
flex \
libgconf2-dev \
libgnomevfs2-dev \
libdbus-glib-1-dev \
libgstreamer-plugins-base0.10-dev \
mesa-common-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
ant \
junit4 \
libidl-dev

Solaris

I (Mouette Yang) build in the platform Solaris 10 u10 8/11 x86, and use SolarisStudio12.3 Compiler: http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.htmlImage Added
Some need build environment tools is placed here: http://www.openfoundry.org/of/download_path/osscd/3.4.0m1_Rev1227012/BuildAOO-Env-GNUtools_solaris_i86pc.pkgImage Added
And need subverion can be download in here: http://www.blastwave.org/Image Added

Env variables is set:

Code Block

export CC=/opt/solarisstudio12.3/bin/cc
export CXX=/opt/solarisstudio12.3/bin/CXX
export LD_LIBRARY_PATH=/opt/solarisstudio12.3/lib:/usr/sfw/lib
export PATH=/usr/gnu/bin/:$PATH:/usr/sfw/bin

And my configure options are:

Code Block

./configure \
--disable-mozilla \
--disable-cups \
--with-system-python \
--enable-presenter-console \
--enable-wiki-publisher \
--enable-minimizer \
--with-lang=[lang options...] \
--with-junit=[junit.jar's path] \
--with-build-version=[Date and revision]

And other need package and developer snapshot's modify, i write a script, can auto deal with these thing until build finish:

Code Block

#!/usr/bin/tclsh8.5
package require platform
set confarea "/DocumentArea/scripts"
#Write a file "AOO-LANG", place it in $confarea , it define language list, it will modify language list 
#in file "main/instsetoo_native/util/pack.lst" and configure's parametre "--with-lang"

set buildarea "/BuildArea/ooo"
#Define AOO source place.

set os [platform::identify]
set buildbin "main/solenv/bin/build.pl"
set svnrev [lindex [lindex [split [exec /opt/csw/bin/svn info $buildarea] \n] 9]
 end ]
set builddate [clock format [clock seconds] -format "%Y-%m-%d %H:%M:%S"]
set dev_parametre ""

#=======Define AOO Build Type====================
#option :normal,devsnap
# "normal" is normal installation sets
# "devsnap" is Developer Snapshots

set buildtype "devsnap"
#================================================

#=======Define Special Platform Parametres=======
set solaris10_special "--disable-mozilla --disable-cups --with-system-python --e
nable-presenter-console --enable-wiki-publisher --enable-minimizer"
set solaris11_special ""
set linux_special ""
#================================================
if {$os=="solaris2.10-ix86"} { set os_parametre $solaris10_special }
if {$os=="solaris2.11-ix86"} { set os_parametre $solaris11_special }

#=======Define Compiler and System Env===========
if {$os=="solaris2.10-ix86" || $os=="solaris2.11-ix86"} {
  set CC "/opt/solarisstudio12.3/bin/cc"
  set CXX "/opt/solarisstudio12.3/bin/CC"
  set PATH "/usr/gnu/bin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin"
  set LD_LIBRARY_PATH "/opt/solarisstudio12.3/lib:/usr/sfw/lib"
  set platenv "SolarisX86Env.Set.sh"
}
#================================================

#=======Define Language==========================
set lf [open "$confarea/AOO-LANG" r]
set langlist [lrange [split [read $lf] \n] 0 end-1]
close $lf
set lang_parametre "\"$langlist\""
foreach i $langlist {
  append lanlist1 "$i,"
  append lanlist2 "$i|"
}
set lanlist1 [string range $lanlist1 0 end-1]
set lanlist2 [string range $lanlist2 0 end-1]
#================================================

#===========Autres===============================
set autre_parametre "--with-junit=/BuildArea/junit.jar "
#Add other need parametres,ex junit's place
#================================================

#===========Define Build Type====================
if {$buildtype=="normal"} {
  set buildwork "cd $buildarea/main/instsetoo_native\n"
 $buildarea/$buildbin --all"
  append buildwork "LD_LIBRARY_PATH=$LD_LIBRARY_PATH $buildarea/$buildbin --all"
}

if {$buildtype=="devsnap"} {
  set buildwork "cd $buildarea/main/instsetoo_native\n"
  set utilpath	"$buildarea/main/instsetoo_native/util/"
  file copy -force $utilpath/makefile.mk $utilpath/makefile.mk-bak
  file copy -force $utilpath/pack.lst $utilpath/pack.lst-bak
  set fm [open $utilpath/makefile.mk r]
  set pakmk [split [read $fm] \n]
  close $fm
  set fm [open $utilpath/makefile.mk w]
  foreach i $pakmk {
    if {$i=="ALLTAR : openoffice sdkoo_en-US ure_en-US"} {
      puts $fm "ALLTAR : updatepack"
    } else {
      puts $fm $i
    }
  }
  close $fm

  set fp [open $utilpath/pack.lst w]
  puts $fp "OpenOffice_Dev_multilang	unxlngi6.pro,unxlngx6.pro,unxmacxi.pro,unxsoli4.pro,unxsols4.pro,wntmsci12.pro	 $lanlist1   openofficedev"
  puts $fp "OpenOffice_Dev_SDK	  unxlngi6.pro,unxlngx6.pro,unxmacxi.pro,unxsoli4.pro,unxsols4.pro,wntmsci12.pro   en-US    sdkoodev"
  puts $fp "OpenOfficeDevLanguagepack   unxlngi6.pro,unxlngx6.pro,unxmacxi.pro,unxsoli4.pro,unxsols4.pro,wntmsci12.pro	  $lanlist2   ooodevlanguagepack"
  close $fp

#  append buildwork "CC=$CC CXX=$CXX PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH
 $buildarea/$buildbin --all"
  append buildwork "LD_LIBRARY_PATH=$LD_LIBRARY_PATH $buildarea/$buildbin --all"

}
#================================================

#=======Generate Build Script====================
set f [open $buildarea/buildaoo.sh w]
puts $f "#!/usr/bin/bash"
puts $f "cd $buildarea/main"
#puts $f "wget http://people.apache.org/~arielch/patches/aoo-dev-pack.lst"
puts $f "CC=$CC CXX=$CXX PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH $buildarea/
main/configure $os_parametre --with-lang=$lang_parametre $autre_parametre $dev_p
arametre --with-build-version=\"$builddate - Rev.$svnrev\""
puts $f "sed 's/sh/bash/' $buildarea/main/fetch_tarballs.sh > tmp"
puts $f "cat tmp > $buildarea/main/fetch_tarballs.sh"
puts $f "bash $buildarea/main/bootstrap"
puts $f ". $buildarea/main/$platenv"
puts $f $buildwork
close $f
#================================================

#============Start Build=========================
set mf [open /tmp/mstat w]
puts $mf "Building AOO ..."
close $mf
cd $buildarea/main/instsetoo_native
exec -ignorestderr sh $buildarea/buildaoo.sh > $buildarea/buildlog
set mf [open /tmp/mstat w]
puts $mf "Idle"
close $mf
#================================================

Define language list in this file "/DocumentArea/scripts/AOO-LANG" (if $confarea is /DocumentArea/scripts):

Code Block

en-US
de
es
fr
ru
pt-BR
zh-CN
zh-TW
ja
it
nl