User:Benbois/Sandbox

From Wiki.ooo4kids.org
< User:Benbois
Revision as of 09:42, 12 October 2011 by Benbois (Talk | contribs)

Jump to: navigation, search

Contents

notes

todo

change/check icons
 sysui/desktop/icons/
from eric
les images a modifier, et qui sont utilisees dans l'installeur, se trouvent dans : instsetoo_native/inc_openoffice/windows/msi_templates/Binary
:images: OpenOffice.org

Désolé, mais j'ai oublié : + aussi dans setup_native/source/win32/nsis ( Banner2.bmp et Image2.bmp pour remplacer ooobitmap.bmp et ooobanner.bmp )

quick ubuntu jaunty environment setup

  • 1 line setup command: (20100219
sudo apt-get install autoconf libarchive-zip-perl gcc-4.4 g++-4.4 libpam0g-dev gperf python-dev curl libcurl4-gnutls-dev libxaw7-dev libxrandr-dev bison flex libgconf2-dev libgtk2.0-dev libcups2-dev subversion ccache autoconf dmake rpm librpm-dev zip unzip libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libxslt-dev libboost-dev libicu-dev dh-make
  • more packages for arm compilation (20110530
libxslt1-dev xsltproc libboost1.42-all-dev libneon27-dev ccache dmake
  • debian by Coolgeek
apt-get install subversion gcc make zip libarchive-zip-perl g++ libcups2-dev libpam0g-dev gperf libfreetype6-dev python-dev curl libcurl4-openssl-dev libx11-dev libxaw7-dev libfontconfig1-dev libxrandr-dev bison flex libgconf2-dev libgstreamer-plugins-base0.10-dev

compilation

quick howto memo for compilation

OLD synchro from OOo project

cd OOo4Kids_compilation
svn checkout svn://svn.services.openoffice.org/ooo/tags/DEV300_m57
  • copy all files from patch to the DEV folder
cd DEV300_m56
chmod ug+x extract_install.sh
./Extract_install.sh OOo4Kids_archive_09_09_04_ericb.tar.gz
./OOo_2_OOo4Kids.sh
patch --dry-run -p0 <  new_complete_OOo4Kids_0.5_DEV300_m60_09_09_24.diff
patch  -p0 <  new_complete_OOo4Kids_0.5_DEV300_m60_09_09_24.diff

NEW synchro from OOo4Kids repository

  • dev branch
svn checkout svn://svn.adullact.net/svnroot/ooo4kids1/trunk

or

svn co svn://svn.adullact.net/svnroot/ooo4kids1/trunk trunk
  • release branch
svn checkout svn://svn.adullact.net/svnroot/ooo4kids1/branches/1.0

or

svn co svn://svn.adullact.net/svnroot/ooo4kids1/branches/1.0 My_Sources

Compilation checklist

autoconf
export CC="ccache gcc" && export CXX="ccache g++"
./configure --with-lang=ALL --disable-neon --disable-crashdump --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm installed" --without-fonts
./configure --with-package-format="debian rpm"  --with-lang=ALL --with-OOo4Kids -without-fonts --disable-gnome-vfs --disable-gtk --with-system-icu  --with-system-libxml --with-system-boost --with-system-python --enable-opengl --enable-gstreamer
  • without opengl
./configure --with-package-format="debian rpm"  --with-lang=ALL --with-OOo4Kids -without-fonts --disable-gnome-vfs --disable-gtk --with-system-icu  --with-system-libxml --with-system-boost --with-system-python --enable-gstreamer
./bootstrap 
  • sourcing 64bit
source LinuxX86-64Env.Set.sh
  • sourcing 32bit
source LinuxX86Env.Set.sh
  • sourcing ARM
source LinuxARMEnv.Set.sh
set | grep OOo4Kids

-> doit retourner OOo4Kids=YES

cd instsetoo_native
  • linux 32b & 64b
time build --all -P2 -- -P2
  • linux ARM
time build --all -P1 -- -P1
cp ../../Package_maker.sh unxlngi6.pro/OOo4Kids/installed/install
cd unxlngi6.pro/OOo4Kids/installed/install
./Package_maker.sh 0.6 Linux_Intel_X86-32 benb

remove OOo4Kids DEBs

sudo dpkg -r ooo4kids-ure ooo4kids0.6-core01 ooo4kids0.6-dict-fr ooo4kids0.6 ooo4kids0.6-math  ooo4kids0.6-ooolinguistic ooo4kids0.6-calc  ooo4kids0.6-gnome-integration  ooo4kids0.6-writer  ooo4kids0.6-images  ooo4kids0.6-xsltfilter  ooo4kids0.6-fr  ooo4kids0.6-draw  ooo4kids0.6-pyuno  ooo4kids0.6-core06  ooo4kids0.6-core07  ooo4kids0.6-core04  ooo4kids0.6-core05  ooo4kids0.6-core02  ooo4kids0.6-core03  ooo4kids0.6-graphicfilter  ooo4kids0.6-ooofonts  ooo4kids0.6-impress ooo4kids0.6-fr-calc ooo4kids0.6-fr-draw ooo4kids0.6-fr-help ooo4kids0.6-fr-impress ooo4kids0.6-fr-math ooo4kids0.6-fr-res ooo4kids0.6-fr-writer


quick howto memo for module (re)compilation + (re)packaging

  • if computer was shut down before, in the root (DEVm..) folder:
source ../LinuxX86... .sh
  • in the module folder after modifications:
build && deliver
  • in instsetoo_navite folder
export PKGFORMAT=installed
build --all -P2 -- -P2

infos

  • compilation WITHOUT ccache:
export CC="gcc"
export CXX="g++"
  • languages list: solenv/inc/postset.mk

configure

  • with cairo
    • OOo4Kids
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-cairo --enable-presenter-extra-ui --with-package-format="deb rpm"
    • OOoLight
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOoLight --with-use-shell=bash --with-system-python --disable-gtk --enable-cairo --enable-presenter-extra-ui --with-package-format="deb rpm"

  • without cairo
    • OOo4Kids
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm"
    • OOoLight
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOoLight --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm"
  • without cairo & without fonts
    • OOo4Kids
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts
    • OOoLight
./configure --with-lang="ar de es fi fr it nl nb pt sl zh-CN zh-TW" --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOoLight --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts
  • WITH: --without-fonts | WITHOUT: --disable-fontconfig & --enable-cairo (20101101)
    • OOo4Kids
./configure --with-lang="ar de es fi fr it nb nl sl pt uk zh-CN zh-TW" --disable-neon --disable-crashdump --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts
    • OOoLight
./configure --with-lang="ar de es fi fr it nb nl sl pt uk zh-CN zh-TW" --disable-neon --disable-crashdump --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOoLight --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts
  • WITH: --without-fonts --with-lang=ALL | WITHOUT: --disable-fontconfig & --enable-cairo (20110118)
    • OOo4Kids
./configure --with-lang=ALL --disable-neon --disable-crashdump --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts
    • OOoLight
./configure --with-lang=ALL --disable-neon --disable-crashdump --with-epm=internal --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOoLight --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts

Mac OS X (both Intel and PowerPC) by eric
./configure --with-lang=fr --disable-cups --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gtk --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --enable-werror --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-vendor="Your Name" --with-OOo4Kids --with-use-shell=bash

linux PowerPC by eric
./configure --with-lang=fr --disable-cups --with-epm=internal --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --with-vendor="Your Name" --with-OOo4Kids --with-use-shell=bash --with-system-python

linux gentoo by pierre
./configure --with-lang=fr --disable-cups --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gtk --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --enable-werror --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash

linux ubuntu by bb
./configure --with-lang="fr de pt es" --disable-cups --disable-neon --disable-crashdump --disable-fontconfig --with-epm=internal --disable-gtk --disable-gnome-vfs --with-system-curl --with-stlport=no --disable-build-mozilla --disable-binfilter --disable-odk --disable-vba --disable-mozilla --with-java=no --enable-crashdump=no --with-OOo4Kids --with-use-shell=bash --with-system-python

build

time build --all -P2 -- -P2
export PKGFORMAT=installed
build

DEB construction

  • if NOT using --with-debian-build option:
cd sysui
mv unxlngi6.pro unxlngi6.pro_back
export DEBIAN_BUILD=YES
build && deliver
comment: es-VA
add: el
  • in source root (~/trunk), run the script: ./dpkgsh_deb_ooo4kids_15jan2011.sh
  • answer questions
  • check the .deb at the end
find instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install -name *.deb
  • create the structure in home:
cd ~/
mkdir dists/testing/main/binary-i386
  • move .deb files in the structure:
mv trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install/ar/ooo4kids-ar_1.2-1_i386.deb dists/testing/main/binary-i386/
  • create Packages.gz file
dpkg-scanpackages ./dists   /dev/null | gzip -9c > dists/Packages.gz
  • mv Packages.gz:
mv dists/Packages.gz dists/testing/main/binary-i386
  • move other files in the structure:
mv trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install/ar/ooo4kids-ar_1.2-1* dists/testing/main/binary-i386/
  • create Release file:
nano dists/testing/main/binary-i386/Release
Archive : testing
Version : 1.2
Component : main
Origin : EducOO
Label : OOo4Kids Repository
Architecture : i386
  • check files: ls -l
Packages.gz
Release
ooo4kids-ar_1.2-1.diff.gz
ooo4kids-ar_1.2-1.dsc
ooo4kids-ar_1.2-1_i386.changes
ooo4kids-ar_1.2-1_i386.deb
…
<ericb2>attention, le script flingue unxlngi6.pro dans instsetoo_native il faut donc tout refaire en cas de probleme
  • if NOT working the 1st time
export PKGFORMAT=installed
rm -rf instsetoo_native/unxlngi6.pro/OOo4Kids/installed/
cd instsetoo_native/
build
  • and again ./dpkgsh_deb_ooo4kids_15jan2011.sh

compression

cd OOo4Kids_compilation/DEV300_m55/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install
tar cvzf OOo4Kids_0.5_Linux_Intel_32bits_fr_benb.tar.gz fr
md5sum OOo4Kids_0.5_Linux_Intel_32bits_fr_benb.tar.gz > OOo4Kids_0.5_Linux_Intel_32bits_fr_benb.tar.gz.md5
tar cvzf OOo4Kids_0.5_Linux_Intel_32bits_en-US_benb.tar.gz en-US
md5sum OOo4Kids_0.5_Linux_Intel_32bits_en-US_benb.tar.gz > OOo4Kids_0.5_Linux_Intel_32bits_en-US_benb.tar.gz.md5
tar cvzf OOo4Kids_0.5_Linux_Intel_32bits_es_benb.tar.gz es
md5sum OOo4Kids_0.5_Linux_Intel_32bits_es_benb.tar.gz > OOo4Kids_0.5_Linux_Intel_32bits_es_benb.tar.gz.md5
tar cvzf OOo4Kids_0.5_Linux_Intel_32bits_pt_benb.tar.gz pt
md5sum OOo4Kids_0.5_Linux_Intel_32bits_pt_benb.tar.gz > OOo4Kids_0.5_Linux_Intel_32bits_pt_benb.tar.gz.md5

recompilation with new patch (same source)

  • copy/paste the files included in the path (replace the old)
  • remove the old patch
cd DEV300_m48
patch --dry-run -p0 -R < old_patch..diff

if it's ok..

patch -p0 -R < old_patch..diff
  • remove old patch
rm old_patch..diff
  • copy new patch
cp ../new_patch_folder/new.patch..diff .
  • patch with the new file
patch --dry-run -p0 < new_patch..diff

if it's ok..

patch -p0 < new_patch..diff
  • make some commands
autoconf
source LinuxX86Env.Set.sh
export PKGFORMAT=installed
  • test if ccache is used
 echo $CC $CXX

result:

ccache gcc ccache g++
  • clean up the source
dmake clean
  • to build
cd instsetoo_native
build --all -P2 -- -P2

partly recompilation with new images (same source)

  • copy images to default_images
  • go to packimages folder
cd packimages/
  • rename unxlngi6.pro
mv  unxlngi6.pro unxlngi6.pro_back
  • sourcing
source ../LinuxX86Env.Set.sh
  • building
build && deliver -force
  • renaming
cd ../instsetoo_native
mv unxlngi6.pro unxlngi6.pro_back
  • final building
build
  • and finally
export PKGFORMAT=installed
build

patching

  • save the diff patch in the folder sources
Index: sw/source/filter/ww8/wrtw8nds.cxx
===================================================================
--- sw/source/filter/ww8/wrtw8nds.cxx	(revision 273479)
+++ sw/source/filter/ww8/wrtw8nds.cxx	(working copy)
@@ -1080,6 +1080,12 @@
     case TOX_INDEX:
         if( rAttr.GetPrimaryKey().Len() )
         {
+            if ( rAttr.GetSecondaryKey( ).Len( ) )
+            {
+                sTxt.Insert( ':', 0 );
+                sTxt.Insert( rAttr.GetSecondaryKey(), 0 );
+            }
+
             sTxt.Insert( ':', 0 );
             sTxt.Insert( rAttr.GetPrimaryKey(), 0 );
         }
  • execute the command
patch -p0 < sw_m51_cedric_bosdonnat.diff

tips

  • clean svn
find . -type d -name "*.svn*" | xargs rm -rf {}\;

ncft upload

ncftpput -R -u {login} -p {password} download.ooolight.org 1.2/linux .

qemu-kvm

  • installation
 kvm -m 1500 -localtime -k fr -vga std -soundhw es1370 -net user -net nic,model=rtl8139 -hda VM/debian32.img -redir tcp:2222::22 -smp 2  -boot d -cdrom Downloads/debian-6.0.0-i386-netinst.iso 
  • usage
kvm -m 1500 -localtime -k fr -vga std -soundhw es1370 -net user -net nic,model=rtl8139 -hda VM/debian32.img -redir tcp:2222::22 -smp 2

color theme for Linux version

find . -name ooo4kidsrc.txt
chmod ug+w ooo4kidsrc.txt
selectBackground=230,255,0
selectForground=0,0,0
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox