User:De-boy

About me Full Name : Even de Boysson student at Epitech, currently in internship at LabFree.

Objective compiling and patching OOo4kids for OpenBSD

Diary

building ports (11/08/2010 to nowadays)  See Ports and the FreeBSD porting for details Here is a tutorial My OOo4kids port for a full step by step porting (underway).  compiling (10/14/2010 to 10/28/2010)  configure  when using the ./configure from Linux i encountered several problems, here are the package i needed. pkg_add -Ui gmake pkg_add -Ui gtar pkg_add -Ui p5-Archive-Zip pkg_add -Ui zip pkg_add -Ui unzip

lib's install : icu          (failed) zlib        (failed) expat       (failed) libjpeg     (failed) jpeg-8b found (seems to include libs) (fail confirmed by ./configure) freetype    (succeeded : 1.3.1) (unrecognized options: --with-system-freetype) db          (succeeded : 4.6.21) workaround ln -s /usr/local/include/db4 /usr/include/db4, error you need at least db 4.1 (???) boost       (succeeded : 1.42.0) (failed, unable to find shared_ptr.hpp,                                                   even after linking /usr/local/include/boost) redland     (succeeded : 1.0.8) curl        (succeeded : 7.21.2) neon        (succeeded : 0.28.6) libwpd      (succeeded : 0.8.9) libxml      (succeeded : 2.7.6) python      (succeeded : 2.6.6) ./configure --disable-odk \ --with-lang="fr" \ --disable-vba \ --disable-mozilla \ --with-system-python \ --with-system-libxml \ --with-system-zlib \ --with-system-stdlibs \ --with-system-curl \ --with-system-expat \ --with-system-neon \ --with-system-libwpd \ --with-system-openssl \ --with-epm=internal \ --with-alloc=system \ --enable-cups \ --disable-fontconfig \ --disable-gnome-vfs \ --with-use-shell=bash \ --with-java=no \ --with-OOo4Kids \ --disable-gtk \ --enable-presenter-extra-ui ./bootstrap
 * FIXME : cups workaround : ln -s /usr/local/include/cups /usr/include/cups
 * configure: (you'll need autoconf)

source OpenBSDEnv.Set.sh 

Build  using dmake: i am building and correcting:check Fixed Build Issues for details analysing openbsd.org(openoffice) for adaptation   done all build module (in build order):

solenv                 boost                   stlport                 soltools                external xml2cmp                sal                     salhelper               vos                     icu berkeleydb             lucene                  redland                 MathMLDTD               afms agg                    apple_remote            beanshell               bitstream_vera_fonts    cppunit testshl2               epm                     extras                  free_fonts              hsqldb hunspell               hyphen                  icc                     jpeg                    libtextcat libxmlsec              libxslt                 lpsolve                 np_sdk                  o3tl psprint_config         rhino                   sandbox                 sane                    stax saxon                  store                   registry                idlc                    udkapi offapi                 codemaker               offuh                   cppu                    cppuhelper rdbmaker               ucbhelper               comphelper              basegfx                 ridljar jurt                   jvmaccess               bridges                 cpputools               i18nutil jvmfwk                 stoc                    sax                     ucb                     animations io                     remotebridges           embedserv               eventattacher           hwpfilter oovbaapi               package                 regexp                  i18npool                tools unotools               transex3                l10n                    officecfg               setup_native sot                    xmlscript               cli_ure                 unoil                   javaunohelper qadevOOo               configmgr               fileaccess              rsc                     pyuno readlicense_oo         sysui                   UnoControls             bean                    dictionaries dtrans                 idl                     sccomp                  scp2                    testautomation testtools              unixODBC                unodevtools             unoxml                  ure vigra                  basebmp                 wizards                 x11_extensions          vcl toolkit                svtools                 goodies                 uui                     xmloff canvas                 connectivity            oox                     cppcanvas               fpicker framework              basic                   xmlhelp                 accessibility           automation embeddedobj            helpcontent2            padmin                  scaddins                shell sfx2                   avmedia                 linguistic              drawinglayer            svx dbaccess               formula                 writerfilter            basctl                  chart2 desktop                extensions              filter                  forms                   lingucomponent reportdesign           sc                      scripting               sd                      slideshow starmath               writerperfect           sw                      xmerge                  xmlsecurity postprocess            packimages              instsetoo_native   Patching (10/08/2010 to 10/13/2010)  patching  
 * patch :see ClassRooms/PatchBasics for more info
 * patch -C :Checks that the patch would apply cleanly, does not modify anything. You must check every patch before applying it! (-C on OpenBSD '--dry-run' otherwise)
 * svn diff path/to/the/File | patch -R -p0 : Will reverse the change made to file, you won't need to be connected (.svn subdir)

Example   patch -C < my_patch.diff  Hmm... Looks like a unified diff to me... The text leading up to this was: -- -- Patching file my_patch using Plan A... Hunk #1 succeeded at 1091 (offset 38 lines). Hunk #2 succeeded at 2356 with fuzz 1 (offset 1 line). Hunk #3 failed at 3928. Hunk #4 succeeded at 3896 (offset 7 lines). Hunk #5 succeeded at 4610 (offset -67 lines). Hunk #6 succeeded at 6390 (offset -67 lines). 1 out of 6 hunks failed--saving rejects to configure.in.rej done
 * $OpenBSD: my_patch,v 1.3 2010/06/26 15:48:11 robert Exp $
 * --- my_patch.orig.port    Wed May 26 20:21:11 2010
 * +++ my_patch      Fri Jun 25 23:57:08 2010
 * a fuzz :Is when a patch is applied but with one or more line (one here) between the 3 first/last corresponding line of the hunk, won't be bad to check.
 * Failed :Is when the patch could not be applied, the given line (3928) is where the error occurred on the patched file, the easiest way is probably to open both file (.diff and patched) and check what's wrong.
 * an offset :Is when the supposed hunk is staggered of XX lines.

 programing </li>

I have completed the patching of ooo4kids on OpenBSD: patch-epm_epm-3_7_patch.diff (all hunk failed)

those 3 finally worked: patch-scp2_source_ooo_file_library_ooo_scp.diff            patch-soltools_checkdll_makefile_mk.diff patch-set_soenv_in.diff (2 fuzz, first hunk) and those 2 have a fuzz (probably easy to correct): patch-filter_source_config_fragments_makefile_mk.diff      patch-desktop_scripts_soffice_sh.diff (2nd hunk) </ul> </ul> Subversion (10-05-2010 to 10-07-2010)  getting packages  i downloaded the source and finished this morning. i also downloaded the following package (the version below is only here as an example):

as "su -" (root with "-" option): pkg_add -Ui openoffice // V-3.2.1p3 pkg_add -Ui subversion // V-1.6.12p2 pkg_add -Ui python     // V-2.6.6 pkg_add -Ui bison      // V-2.3 pkg_add -Ui curl       // V-7.21.1 pkg_add -Ui cups       // V-1.4.4p2 pkg_add -Ui ccache     // V-2.4p0 pkg_add -Ui gcc        // V-3.3.6p17 pkg_add -Ui g++        // V-3.3.6p16 pkg_add -Ui gperf      // V-3.0.4 pkg_add -Ui gtk+2      // V-2.22.0 pkg_add -Ui gstreamer  // V-0.10.30p0 add openoffice first it will simplify everything! (most of the above package won't be useful)
 * option "-Ui" : the "-U" option Update dependencies, the "-i" is in case of ambiguities.
 * if a problem occurred during the download you'll probably have a partial-openoffice-3.2.1p3
 * just re-add it: partial-openoffice-3.2.1p3->openoffice-3.2.1p3: ok and check your packages for any partial ones(there useless)
 * pkg_info | grep "partial"

see EnvironmentSetup/OpenBSD for more details. </ul>

getting files  you will not need to be root, juste enter this line: svn checkout svn://svn.adullact.net/svnroot/ooo4kids1/trunk my_OOo4Kids once finished it should write: Checked out revision XXX.
 * It will take time! (depends on your bandwidth)

</ul> </ul> 09-20-2010 to 10-05-2010 Formally i was supposed to work on OOo4kids on GNU/Linux, but my computer have encountered several problems... i had to reinstall several times my O.S., and finally i end up on OpenBSD (V 4.8). (it was the sata ports of my motherboard which did not work properly!)