User:Benbois/Sandbox

=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= 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 libxslt1-dev xsltproc libboost1.42-all-dev libneon27-dev ccache dmake 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
 * 1 line setup command: (20100219
 * more packages for arm compilation (20110530
 * debian by Coolgeek

=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
svn checkout svn://svn.adullact.net/svnroot/ooo4kids1/trunk or svn co svn://svn.adullact.net/svnroot/ooo4kids1/trunk trunk 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
 * dev branch
 * release branch

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

./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
 * without opengl

./configure --with-package-format="debian" --with-lang="fr" --with-OOoLight -without-fonts --disable-gnome-vfs --disable-gtk --with-system-icu  --with-system-libxml --with-system-boost --with-system-python --enable-gstreamer
 * OOoLight without opengl, fr only

./bootstrap

source LinuxX86-64Env.Set.sh source LinuxX86Env.Set.sh source LinuxARMEnv.Set.sh
 * sourcing 64bit
 * sourcing 32bit
 * sourcing ARM

set | grep OOo4Kids -> doit retourner OOo4Kids=YES

cd instsetoo_native

time build --all -P2 -- -P2 time build --all -P1 -- -P1
 * linux 32b & 64b
 * linux ARM

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
source ../LinuxX86... .sh build && deliver export PKGFORMAT=installed build --all -P2 -- -P2
 * if computer was shut down before, in the root (DEVm..) folder:
 * in the module folder after modifications:
 * in instsetoo_navite folder

infos
export CC="gcc"
 * compilation WITHOUT ccache:

export CXX="g++"


 * languages list: solenv/inc/postset.mk

configure
./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" ./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" ./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" ./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"
 * with cairo
 * OOo4Kids
 * OOoLight
 * without cairo
 * OOo4Kids
 * 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-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts ./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
 * without cairo & without fonts
 * OOo4Kids
 * 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-OOo4Kids --with-use-shell=bash --with-system-python --disable-gtk --enable-presenter-extra-ui --with-package-format="deb rpm" --without-fonts ./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 ./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 ./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
 * WITH: --without-fonts | WITHOUT: --disable-fontconfig & --enable-cairo (20101101)
 * OOo4Kids
 * OOoLight
 * WITH: --without-fonts --with-lang=ALL | WITHOUT: --disable-fontconfig & --enable-cairo (20110118)
 * OOo4Kids
 * OOoLight

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
cd sysui mv unxlngi6.pro unxlngi6.pro_back export DEBIAN_BUILD=YES build && deliver comment: es-VA add: el find instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install -name *.deb cd ~/ mkdir dists/testing/main/binary-i386 mv trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install/ar/ooo4kids-ar_1.2-1_i386.deb dists/testing/main/binary-i386/ dpkg-scanpackages ./dists  /dev/null | gzip -9c > dists/Packages.gz mv dists/Packages.gz dists/testing/main/binary-i386 mv trunk/instsetoo_native/unxlngi6.pro/OOo4Kids/installed/install/ar/ooo4kids-ar_1.2-1* dists/testing/main/binary-i386/ nano dists/testing/main/binary-i386/Release Archive : testing Version : 1.2 Component : main Origin : EducOO Label : OOo4Kids Repository Architecture : i386 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 …
 * if NOT using --with-debian-build option:
 * install dh-make, fakeroot et sudo
 * download script: wget http://eric.bachard.free.fr/dpkgsh_deb_ooo4kids_15jan2011.sh
 * chmod ug+x dpkgsh_deb_ooo4kids_15jan2011.sh
 * modify the list in the file:
 * in source root (~/trunk), run the script: ./dpkgsh_deb_ooo4kids_15jan2011.sh
 * answer questions
 * check the .deb at the end
 * create the structure in home:
 * move .deb files in the structure:
 * create Packages.gz file
 * mv Packages.gz:
 * move other files in the structure:
 * create Release file:
 * check files: ls -l

attention, le script flingue unxlngi6.pro dans instsetoo_native il faut donc tout refaire en cas de probleme

export PKGFORMAT=installed rm -rf instsetoo_native/unxlngi6.pro/OOo4Kids/installed/ cd instsetoo_native/ build
 * if NOT working the 1st time
 * 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)
cd DEV300_m48 patch --dry-run -p0 -R < old_patch..diff if it's ok.. patch -p0 -R < old_patch..diff rm old_patch..diff cp ../new_patch_folder/new.patch..diff. patch --dry-run -p0 < new_patch..diff if it's ok.. patch -p0 < new_patch..diff autoconf source LinuxX86Env.Set.sh export PKGFORMAT=installed echo $CC $CXX result: ccache gcc ccache g++ dmake clean cd instsetoo_native build --all -P2 -- -P2
 * copy/paste the files included in the path (replace the old)
 * remove the old patch
 * remove old patch
 * copy new patch
 * patch with the new file
 * make some commands
 * test if ccache is used
 * clean up the source
 * to build

partly recompilation with new images (same source)
cd packimages/ mv unxlngi6.pro unxlngi6.pro_back source ../LinuxX86Env.Set.sh build && deliver -force cd ../instsetoo_native mv unxlngi6.pro unxlngi6.pro_back build export PKGFORMAT=installed build
 * copy images to default_images
 * go to packimages folder
 * rename unxlngi6.pro
 * sourcing
 * building
 * renaming
 * final building
 * and finally

patching
Index: sw/source/filter/ww8/wrtw8nds.cxx
 * save the diff patch in the folder sources

=
====================================================== --- 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 ); } patch -p0 < sw_m51_cedric_bosdonnat.diff
 * execute the command

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

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

qemu-kvm
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 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
 * installation
 * usage

=color theme for Linux version=

find. -name ooo4kidsrc.txt

chmod ug+w ooo4kidsrc.txt

selectBackground=230,255,0 selectForground=0,0,0