You are not logged in.

#101 2006-04-26 12:27:26

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: OpenOffice2 - the final attemp

Hmm so which I should compile? Where is the newest PKGBUILD ?

EDIT:
I changed the PKGBUILD a little bit. Here it is: http://www.archlinux.pastebin.com/682868

EDIT_2:
I had to add:

  export PATH=/usr/lib/ccache/bin:${PATH}:/opt/java/bin

to because makepkg failed when trying to run javac and don't want to use ccache ( don't know why hmm )
PKGBUILD: http://www.archlinux.pastebin.com/682990
And compilation fails on this:
ERROR: http://www.archlinux.pastebin.com/683008

Offline

#102 2006-05-29 18:58:12

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

Can somebody try this?
get this source
http://ftp.linux.cz/pub/localization/Op … rce.tar.gz
untar it.
cd to it
Apply the following two patches

--- vcl/source/glyphs/gcach_ftyp.cxx.ark    2006-05-17 20:01:52.000000000 +0200
+++ vcl/source/glyphs/gcach_ftyp.cxx    2006-05-17 23:13:07.000000000 +0200
@@ -90,21 +90,25 @@
     #define strncasecmp strnicmp
 #endif
 
-#include "freetype/internal/ftobjs.h"
-#include "freetype/internal/sfnt.h"
-#include "freetype/internal/ftstream.h"
-
 #include <svapp>
 #include <settings>
 #include <i18npool>
 
-#if defined( FT_NEXT_SHORT ) && !defined( NEXT_Short )
-// Account for differing versions of freetype...
-#define NEXT_Short( x )  FT_NEXT_SHORT( x )
-#define NEXT_UShort( x ) FT_NEXT_USHORT( x )
-#define NEXT_Long( x )   FT_NEXT_LONG( x )
-#define NEXT_ULong( x )  FT_NEXT_ULONG( x )
-#endif
+#define NEXT_Short( x )                    
+    ( x += 2,                    
+      ( (short)( (signed   char)x[-2] << 8 ) |    
+                 (unsigned char)x[-1]        ) )
+
+#define NEXT_UShort( x ) ( (unsigned short)NEXT_Short( x ) )
+
+#define NEXT_Long( x )                    
+    ( x += 4,                    
+      ( ( (long)(signed   char)x[-4] << 24 ) |    
+        ( (long)(unsigned char)x[-3] << 16 ) |    
+        ( (long)(unsigned char)x[-2] <<8>= 2200
+#define FT_CONST const
+#else
+#define FT_CONST
+#endif
+static int FT_move_to( FT_Vector FT_CONST* p0, void* vpPolyArgs )
 {
     PolyArgs& rA = *reinterpret_cast<PolyArgs>(vpPolyArgs);
 
@@ -2085,14 +2098,14 @@
     return 0;
 }
 
-static int FT_line_to( FT_Vector* /*const*/ p1, void* vpPolyArgs )
+static int FT_line_to( FT_Vector FT_CONST* p1, void* vpPolyArgs )
 {
     PolyArgs& rA = *reinterpret_cast<PolyArgs>(vpPolyArgs);
     rA.AddPoint( p1->x, p1->y, POLY_NORMAL );
     return 0;
 }
 
-static int FT_conic_to( FT_Vector* /*const*/ p1, FT_Vector* /*const*/ p2, void* vpPolyArgs )
+static int FT_conic_to( FT_Vector FT_CONST* p1, FT_Vector FT_CONST* p2, void* vpPolyArgs )
 {
     PolyArgs& rA = *reinterpret_cast<PolyArgs>(vpPolyArgs);
 
@@ -2109,7 +2122,7 @@
     return 0;
 }
 
-static int FT_cubic_to( FT_Vector* /*const*/ p1, FT_Vector* /*const*/ p2, FT_Vector* /*const*/ p3, void* vpPolyArgs )
+static int FT_cubic_to( FT_Vector FT_CONST* p1, FT_Vector FT_CONST* p2, FT_Vector FT_CONST* p3, void* vpPolyArgs )
 {
     PolyArgs& rA = *reinterpret_cast<PolyArgs>(vpPolyArgs);
     rA.AddPoint( p1->x, p1->y, POLY_CONTROL );

and

--- scp2/source/ooo/file_ooo.scp.old    2006-05-22 15:23:18.000000000 +0200
+++ scp2/source/ooo/file_ooo.scp    2006-05-22 15:44:45.000000000 +0200
@@ -286,13 +286,6 @@
 
 #endif
 
-File gid_File_Rdb_Gengal
-    TXT_FILE_BODY;
-    Dir = gid_Dir_Program;
-    Styles = (PACKED, OVERWRITE);
-    Name = "gengal.rdb";
-End
-
 #if !defined(WITHOUT_MOZILLA) && defined(UNX)
 
 File gid_File_Bin_Pluginapp
--- svx/source/gengal/gengal.cxx.old    2006-05-22 15:23:18.000000000 +0200
+++ svx/source/gengal/gengal.cxx    2006-05-22 15:32:31.000000000 +0200
@@ -2,6 +2,11 @@
  *
  *  OpenOffice.org - a multi-platform office productivity suite
  *
+ *  $RCSfile: gengal-cleanup.diff,v $
+ *
+ *  $Revision: 1.1 $
+ *
+ *  last change: $Author: pmladek $ $Date: 2006/05/22 15:20:29 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -241,21 +246,6 @@
 
 void GalApp::Main()
 {
-#ifdef TOO_SIMPLE_BY_HALF
-    ::com::sun::star::uno::Reference<com>
-        xMSF = cppu::createRegistryServiceFactory(
-                rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "gengal.rdb" ) ), sal_True );
-    ::comphelper::setProcessServiceFactory( xMSF );
-
-    // Without this no file access works ...
-    ucb::ContentProviderDataList aData;
-    ucb::ContentProviderData aFileProvider(
-            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.FileContentProvider" ) ),
-            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "file" ) ),
-            rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "" ) ) );
-    aData.push_back( aFileProvider );
-    ucb::ContentBroker::initialize( xMSF, aData );
-#else
     Reference<XComponentContext> xComponentContext = ::cppu::defaultBootstrap_InitialComponentContext();
     Reference<XMultiServiceFactory> xMSF(xComponentContext->getServiceManager(), UNO_QUERY);
     if( !xMSF.is() )
@@ -273,10 +263,8 @@
     aArgs[4] <<= rtl::OUString::createFromAscii("PORTAL");
     aArgs[5] <<= aEmpty;
 
-    if (! ::ucb::ContentBroker::initialize( xMSF, aArgs ) )
-            fprintf( stderr, "Failed to init content brokern" );
-#endif
-
+    if (! ::ucb::ContentBroker::initialize( xMSF, aArgs ) )
+        fprintf( stderr, "Failed to init content brokern" );
 
     bool bHelp = false;
     rtl::OUString aPath, aDestDir;
--- svx/source/gengal/gengal.sh.old    2006-05-22 15:23:18.000000000 +0200
+++ svx/source/gengal/gengal.sh    2006-05-22 15:35:43.000000000 +0200
@@ -4,6 +4,14 @@
 #   The Contents of this file are made available subject to
 #   the terms of GNU Lesser General Public License Version 2.1.
 #
+#   $RCSfile: gengal-cleanup.diff,v $
+#
+#   $Revision: 1.1 $
+#
+#   last change: $Author: pmladek $ $Date: 2006/05/22 15:20:29 $
+#
+#   The Contents of this file are made available subject to
+#   the terms of GNU Lesser General Public License Version 2.1.
 #
 #     GNU Lesser General Public License Version 2.1
 #     =============================================
@@ -62,64 +70,34 @@
 sd_platform=`uname -s`
 case $sd_platform in
   AIX)
-    LIBPATH="$sd_prog":$LIBPATH
+    LIBPATH=${sd_prog}${LIBPATH+:${LIBPATH}}
     export LIBPATH
     ;;
 
   Darwin)
-    DYLD_LIBRARY_PATH="$sd_prog":$DYLD_LIBRARY_PATH
+    DYLD_LIBRARY_PATH=${sd_prog}${DYLD_LIBRARY_PATH+:${DYLD_LIBRARY_PATH}}
     export DYLD_LIBRARY_PATH
     ;;
 
   HP-UX)
-    SHLIB_PATH="$sd_prog":/usr/openwin/lib:$SHLIB_PATH
+    SHLIB_PATH=${sd_prog}:/usr/openwin/lib${SHLIB_PATH+:${SHLIB_PATH}}
     export SHLIB_PATH
     ;;
 
   IRIX*)
-    LD_LIBRARYN32_PATH=:"$sd_prog":$LD_LIBRARYN32_PATH
+    LD_LIBRARYN32_PATH=${sd_prog}${LD_LIBRARYN32_PATH+:${LD_LIBRARYN32_PATH}}
     export LD_LIBRARYN32_PATH
     ;;
 
   *)
-    LD_LIBRARY_PATH="$sd_prog":$LD_LIBRARY_PATH
+    LD_LIBRARY_PATH=${sd_prog}${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
     export LD_LIBRARY_PATH
     ;;
 esac
 
-# extend the ld_library_path for java: javaldx checks the sofficerc for us
-if [ -x "$sd_prog/javaldx" ] ; then
-    java_ld_library_path=`"$sd_prog/javaldx"`
-    if [ "$java_ld_library_path" != "" ] ; then
-        case $sd_platform in
-            AIX)
-                LIBPATH=${java_ld_library_path}:${LIBPATH}
-                ;;
-            Darwin)
-                DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
-                ;;
-            HP-UX)
-                SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
-                ;;
-            IRIX*)
-                LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
-                ;;
-            *)
-                LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
-                ;;
-        esac
-    fi
-fi
-
 # misc. environment variables
-OPENOFFICE_MOZILLA_FIVE_HOME="$sd_inst/program"
-export OPENOFFICE_MOZILLA_FIVE_HOME
-
 unset XENVIRONMENT
 
-# uncomment line below to disable anti aliasing of fonts
-# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE
-
 # set path so that other apps can be started just by name
 PATH="$sd_prog":$PATH
 export PATH
--- svx/source/gengal/makefile.mk.old    2006-05-22 15:23:18.000000000 +0200
+++ svx/source/gengal/makefile.mk    2006-05-22 15:42:43.000000000 +0200
@@ -58,7 +58,9 @@
 .ELSE            # .IF "$(GUI)"=="WNT"
 APP1TARGET= $(TARGET).bin
 .ENDIF            # .IF "$(GUI)"=="WNT"
-APP1OBJS=    $(OBJFILES)
+
+APP1OBJS=   $(OBJFILES)
+
 APP1STDLIBS=$(TOOLSLIB)         
             $(OSLLIB)            
             $(ONELIB)            
@@ -82,35 +84,18 @@
 APP1DEF=    $(MISC)$/$(TARGET).def
 .ENDIF
 
-
 .IF "$(COM)"=="GCC"
 ADDOPTFILES=$(OBJ)$/gengal.obj
 add_cflagscxx="-frtti -fexceptions"
 .ENDIF
 
-
 # --- Targets ------------------------------------------------------
 
 .INCLUDE :    target.mk
 
 ALLTAR : 
-    $(SCRIPTFILES) 
-    $(BIN)$/gengal.rdb 
+    $(SCRIPTFILES)
 
 $(SCRIPTFILES) : $$(@:f:+".sh")
     +@tr -d "15" <f> $@
 
-$(BIN)$/gengal.rdb : makefile.mk $(UNOUCRRDB)
-    rm -f $@
-    $(GNUCOPY) $(UNOUCRRDB) $@
-    +cd $(BIN) && 
-        regcomp -register -r gengal.rdb 
-            -c i18nsearch.uno$(DLLPOST) 
-            -c i18npool.uno$(DLLPOST) 
-            -c configmgr2.uno$(DLLPOST) 
-            -c servicemgr.uno$(DLLPOST) 
-            -c $(DLLPRE)fwl$(UPD)$(DLLPOSTFIX)$(DLLPOST) 
-            -c $(DLLPRE)ucpfile1$(DLLPOST) 
-            -c $(DLLPRE)fileacc$(DLLPOST) 
-            -c $(DLLPRE)ucb1$(DLLPOST)
-

cd config_office/

./configure --prefix=/home/<yourname>/myoo2 --disable-gnome-vfs --with-system-fonts --with-system-neon --enable-kde --with-jdk-home=/opt/java --with-java-home=/opt/java --with-system-python --with-system-xrender-headers --with-system-curl --with-lang=en-us --without-docdir --with-arch="x86" --with-system-sane-header --disable-mono --with-package-format=native --without-nas --disable-cairo --with-system-freetype

It will prompt for mozilla 1.7.5 source and another 3 files but it will tell you where to download it.

run the configure part again
then cd ..
then source LinuxIntelEnv.Set.sh
then ./bootstrap
then rehash
then dmake

It should compile successfully. ( m3 compiled for me ) but it won't package.
We still need to find a way to 'make install' or package a binary tarball.
any help is needed.

Edit:. package format should be native and lang=en-US not en_US

Offline

#103 2006-05-31 15:57:28

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

First, I had to install tcsh with your configure-settings to erase one error. The next error, I got was:

checking for perl... /usr/bin/perl
checking the Perl version... checked (perl 5)
checking for required Perl modules... Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
configure: error: Failed to find some modules

and I wasn't able to apply the patches correctly. I assume I had to do it via "patch -Np1 -i patch" while being in the dir that I untared?

Offline

#104 2006-05-31 16:04:23

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

go back to my earlier pkgbuilds. there you find a lot of dependencies you will have to add from AUR. perl-archive.zip is missing on your system.

Offline

#105 2006-05-31 17:53:20

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

Oh, I missed them. Seems to bee some work to get into your PKGBUILDS but they look very well worked out. Perhaps... anywhen I'm really going to have some time to dive into this smile

Offline

#106 2006-05-31 18:04:49

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

2.0.3-RC4 also compiled fine and I think I figured out how to package a tarball without any rpm/deb repacking tricks.
I will get a working PKGBUILD and post it here once I get download  2.0.3 RC5 and compile it tomorrow.

Offline

#107 2006-06-01 00:06:47

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

Hm, why not use AndyRTR's PKGBUILD? Ok updating some vars a bit but as it seems to compile succesfully (had an error at the license---aaaargh). you don't have to reinvent the wheel smile

Offline

#108 2006-06-01 11:03:50

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

Added xulrunner and imake as makedependencies and updated the PKGBUILD to 2.0.2 (current stable) version.

I also used $_relver for something else as Andy did, since it was never used in the PKGBUILD.

Additionally, I commented out "--with-lang=ALL" since it would be by far enough to have English in the first hopefully working version i think.

It's compiling since 20 mins now...we'll see smile

# $Id: PKGBUILD,v 1.13 2005/11/05 09:17:54 tpowa Exp $ 
# Maintainer: Tobias Powalowski <tpowa> 
# Contributor: Sarah Hay <sarah> 

pkgname=openoffice.org 
pkgver=2.0.2
pkgrel=1
pkgdesc="OpenOffice.org - a free office suite"
url="http://www.openoffice.org" 

#depends=('perl gtk2 gnome-vfs libxml2 libart-lgpl libsndfile startup-notification fontconfig libpng imagemagick flex mozilla-firefox nss neon>=0.24.0 zip unzip expat cups desktop-file-utils perl-archive-zip unixodbc x-server desktop-file-utils')
#bison

#makedepends=('j2sdk apache-ant libgpcl glitz cairo ccache tcsh findutils curl intltool tcsh gcc pam qt kdelibs evolution-data-server boost icu pam apache-ant pkgconfig xulrunner imake') 

#conflicts=('openoffice-spell-it') 
#install=(openoffice.install) 
#replaces=('openoffice-en') 

_relver=2.0.2.11
_oootagver=OOO_2_0_2
_build=oob680-m5
_BUILD=OOB680 
_snapshot=m156 
#_snapdate=20060202 
   
source=(http://go-ooo.org/packages/$_BUILD/ooo-build-$_relver.tar.gz 
   http://go-ooo.org/packages/$_BUILD/$_oootagver-core.tar.bz2 
   http://go-ooo.org/packages/$_BUILD/$_oootagver-lang.tar.bz2 
   http://go-ooo.org/packages/SRC680/extras-2.tar.bz2 
   http://go-ooo.org/packages/SRC680/ooo_crystal_images-1.tar.gz 
   #http://go-ooo.org/packages/$_BUILD/$_build-system.tar.bz2  
   #http://go-ooo.org/packages/$_BUILD/$_build-sdk_oo.tar.bz2  
   #http://go-ooo.org/packages/$_BUILD/$_build-binfilter.tar.bz2  
   #http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz  
   #http://go-ooo.org/packages/snap/ooo-build-ooo-build-2-0-$pkgver-$_snapdate.tar.gz for stable 
   #http://go-ooo.org/packages/snap/ooo-build-HEAD-$_build.154.0-20060202.tar.gz 
   #ftp://ftp.tu-chemnitz.de/pub/openoffice/developer/680_m155/OOo_2.0.155_src.tar.gz 
) 
  
NOEXTRACT=1

build() { 
  # fix for nss 
  ln -s /usr/lib/pkgconfig/mozilla-nss.pc $startdir/src/firefox-nss.pc
  PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$startdir/src
   
#  # Untar the ooo-build stuff 
#  tar -xvzf ooo-build-$pkgver.tar.gz || return 1 
#  tar -xvzf ooo-build-ooo-build-2-0-2.0.1.3-20060206.tar.gz || return 1 
#  tar -xvzf ooo-build-HEAD-$_build.154.0-20060202.tar.gz || return 1 
   tar -xzf ooo-build-$_relver.tar.gz || return 1
  
#  export MAKEFLAGS="-j 1" 
#  cp cws-ooo64bit02.2005-04-19.diff ooo-build-$pkgver/src/patches/64bit/cws-ooo64bit02.2005-04-19.diff 

  sed -i -e "s:xmlhelp-port-to-db-4.3.diff:# xmlhelp-port-to-db-4.3.diff:g" $startdir/src/ooo-build-$_relver/patches/src680/apply 
  #sed -i -e "s:config_office-system-neon-25.diff:# config_office-system-neon-25.diff:g" $startdir/src/ooo-build-$_relver/patches/src680/apply 
  #sed -i -e "s:config_office-system-neon-25.diff:# config_office-system-neon-25.diff:g" $startdir/src/ooo-build-$_relver/patches/src680/apply 
  sed -i -e "s:disable-neon.diff:# disable-neon.diff:g" $startdir/src/ooo-build-$_relver/patches/src680/apply

  # we don't have our own distro tag, let's borrow one :) 
  rm -f $startdir/src/ooo-build-$_relver/distro-configs/Ark.conf
  rm -f $startdir/src/ooo-build-$_relver/distro-configs/Ark.conf.in
  touch $startdir/src/ooo-build-$_relver/distro-configs/Ark.conf
  touch $startdir/src/ooo-build-$_relver/distro-configs/Ark.conf.in
  echo "removed old Ark preconfig"
  
  
  #cd $startdir/src/ooo-build-$pkgver 
  cd $startdir/src/ooo-build-$_relver
  ./configure --prefix=/opt/openoffice 
   --with-arch="x86" 
   --with-srcdir=$startdir/src 
   --with-binsuffix=2 
   --disable-access 
   --disable-mono 
   --disable-cairo 
   --without-firefox-nss 
   --with-mozilla-nss 
   --disable-post-install-scripts 
   --mandir=/usr/man 
   --without-docdir 
   --with-java=no 
   --with-hunspell 
   --with-system-fonts 
   --with-system-gpc 
   --with-distro=Ark 
   --with-xulrunner 
   --with-system-curl 
   --with-system-expat 
   --with-system-odbc-headers 
   --with-system-xrender-headers 
   --with-system-sane-header 
   --with-system-sndfile 
   --with-system-db 
   --with-system-neon 
   --disable-gnome-vfs 
   --enable-pam-link 
   --enable-xrender-link 
   --enable-vba 
   #--with-ant-home=/usr
   #--with-system-agg 
   #--with-system-libwpd 
   #--with-java=gij
   #--enable-gtk 
   #--enable-kde 
   #--with-jdk-home=/opt/java 
   #--with-gcc-speedup=ccache 
   #--with-lang="en-US af ar ca cs cy da de el en-GB es et eu fi fr he hi hu it ja ko nb nl nn pl pt pt-BR ru sk sl sv ta tr zh-TW zh-CN zu" 
   #--with-lang=ALL 

  # just to test if we have all needed sources 
  ./download

  # multiprocessing tends to break the build 
  make -j1 || return 1
  make DESTDIR=$startdir/pkg install || return 1

#  # Create i18n tarballs. 
#  mkdir $startdir/openoffice.org-i18n 
#  cd $startdir/pkg/opt/openoffice/lib/ooo-2.0/program/resource 
#  for lang in `ls *.res|sed 's/.*680(.*).res/1/'|sort|uniq` 
#  do 
#   if [ "$lang" != "en-US" ]; then 
#      tar cvjf openoffice.org-i18n-$lang-$pkgver.tar.bz2 `ls *680$lang.res` 
#      mv openoffice.org-i18n-$lang-$pkgver.tar.bz2 $startdir/openoffice.org-i18n/ 
#      rm *680$lang.res 
#   fi 
#  done 
}

Offline

#109 2006-06-01 16:48:38

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

jakob wrote:

Hm, why not use AndyRTR's PKGBUILD? Ok updating some vars a bit but as it seems to compile succesfully (had an error at the license---aaaargh). you don't have to reinvent the wheel smile

Because when you use the go-ooo sources, you have to tell it -with-distro=Ark, and I'm using Archlinux and not Arklinux.
I shouldn't have to pretend I use Ark or frugalware to be able to compile on Archlinux.

Offline

#110 2006-06-01 16:58:40

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

Hey. Nobody needs to use a predefined patchset ;-)

    # we don't have our own distro tag, let's borrow one :)
    rm -f $startdir/src/ooo-build/distro-configs/Mandriva64.conf
    rm -f $startdir/src/ooo-build/distro-configs/Mandriva64.conf.in
    touch $startdir/src/ooo-build/distro-configs/Mandriva64.conf
    touch $startdir/src/ooo-build/distro-configs/Mandriva64.conf.in

    # create our own patchset
    sed -i -e 58d /var/abs/local/openoffice-devel/src/ooo-build/patches/src680/apply
    sed -i -e 57a'Mandriva64: LinuxCommon NotDebian BerkeleyDB43 AtkBridge CalcSolver SystemJavaBitsWorkaround 64bit' 
        $startdir/src/ooo-build/patches/src680/apply

Play with that :!:

Offline

#111 2006-06-01 17:14:39

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

I have no problem pretending to use Ark when it's finally working. This does not hold me back, especially when I don't have to manually copy some files around and may gain a working package in the end.

The problem I have with your patch (the first one posted on this page) is:

patching file gcach_ftyp.cxx
patch: **** malformed patch at line 40:      PolyArgs& rA = *reinterpret_cast<PolyArgs>(vpPolyArgs); 

Offline

#112 2006-06-01 19:48:49

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

Offline

#113 2006-06-01 21:25:32

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

A better solution than pretending to use another distribution is to make a patch set for Archlinux and submit it to openoffice.org

Offline

#114 2006-06-01 21:28:21

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

AndyRTR wrote:

That's pretty similar to what I'm doing.

Offline

#115 2006-06-01 21:55:11

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

hussam wrote:

A better solution than pretending to use another distribution is to make a patch set for Archlinux and submit it to openoffice.org

That will be a task for the future official package maintainer.

Offline

#116 2006-06-02 10:36:47

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

Package maintainers include a distribution specific patchset and some basic configure switches to the go-ooo.org/Ximian sources. That makes it easier to package OOo.

CVS sources have no patchsets included.

Any switch you will give to the configure call will overwrite the distribution presets.

Offline

#117 2006-06-02 10:45:39

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: OpenOffice2 - the final attemp

I wonder if there will be ever a working build for amd64. I tried the packages from arch64.org which are based on some rpms from RedHat. OK OOo starts but it crashes so often that it is unusable. How must the source of OOo look like if it is that hard to compile?

Offline

#118 2006-06-02 18:50:00

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

this is my pkgbuild so far

# Maintainer: Hussam Al-Tayeb <ht990332>

pkgname=openoffice.org-cvs
pkgver=2.0.3
OO_milestone=OOC680_m5
pkgrel=1.${OO_milestone}
pkgdesc="OpenOffice.org - a free office suite"
url="http://www.openoffice.org"

depends=('bison cups desktop-file-utils expat fontconfig>=2.2 flex gtk2 imagemagick libxml2 libart-lgpl libsndfile libpng neon>=0.25.0 perl perl-archive-zip unzip x-server zip')

makedepends=('apache-ant cairo curl findutils gawk gcc j2sdk kdelibs pam pkgconfig qt tcsh libidl2')

conflicts=('openoffice-spell-it openoffice-base openoffice-spell-en openoffice-spell-de openoffice-spell-es openoffice-spell-fr openoffice-spell-nl openoffice-spell-pt openoffice-spell-ru openoffice-spell-sv')
replaces=('openoffice-spell-it openoffice-base openoffice-spell-en openoffice-spell-de openoffice-spell-es openoffice-spell-fr openoffice-spell-nl openoffice-spell-pt openoffice-spell-ru openoffice-spell-sv')

source=( http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/build/Sources/OOo_${OO_milestone}_source.tar.gz ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.gz gengal-cleanup.diff vcl-freetype-2.2.x.diff )

md5sums=('c66031ca1f3a0d5f150bad416d54c975' 'd3f3528b6c5eade402ed058207cffa14'
         'a04e3e0793c7cf3caf9b40259b25b4ac' '6ed878f2b31c52f06fd8d268c81ecdc4')

NOEXTRACT=1

build() {
cd $startdir/src
tar -zxvf OOo_${OO_milestone}_source.tar.gz
mv ooo_${OO_milestone}_src OOo2
mv mozilla-source-1.7.5.tar.gz OOo2/moz/download
mv gengal-cleanup.diff OOo2
mv vcl-freetype-2.2.x.diff OOo2
cd OOo2

# ugly patch to make it compile
patch -p0 < gengal-cleanup.diff

# patch to make it use freetype 2.2.x
patch -p0 < vcl-freetype-2.2.x.diff

cd config_office/

# configuring
./configure --disable-gnome-vfs --with-system-fonts --with-system-neon --enable-kde --with-jdk-home=/opt/java --with-java-home=/opt/java --with-system-python --with-system-xrender-headers --with-system-curl --without-docdir --with-arch="x86" --with-system-sane-header --disable-mono --with-package-format=native --without-nas --disable-cairo --with-system-freetype --with-system-jpeg --with-system-zlib --with-system-libxml --enable-build-mozilla --with-system-expat --with-system-libsndfile
# we prefer to use some libraries from tarball since some newer archlinux libraries like db will give errors

# compling
cd ..
./bootstrap
source LinuxIntelEnv.Set.sh
dmake

# install binaries
cp -R instsetoo_native/unxlngi6.pro/OpenOffice/native/install/en-US/linux-2.6-intel/buildroot/* $startdir/pkg/

# prepare filesystem entries
mkdir $startdir/pkg/usr
mkdir $startdir/pkg/usr/bin
mkdir $startdir/pkg/usr/share
mkdir $startdir/pkg/usr/share/applications
mkdir $startdir/pkg/usr/share/icons
mkdir $startdir/pkg/usr/share/icons/HighContrast
mkdir $startdir/pkg/usr/share/icons/hicolor
mkdir $startdir/pkg/usr/share/icons/locolor

# make symlinks
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice.org2.0/program/soffice soffice
ln -s ../../opt/openoffice.org2.0/program/spadmin spadmin

# install shortcuts
cp $startdir/pkg/opt/openoffice.org2.0/share/xdg  $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice.org2.0/program/soffice|g' *.desktop
sed -i -e 's|Exec=/opt/openoffice.org2.0/program/soffice-printeradmin|Exec=/opt/openoffice.org2.0/program/spadmin|g' printeradmin.desktop
chmod +rX -R $startdir/pkg/usr

# install icons
cd $startdir/src/OOo2/sysui/desktop/icons
cp -a -v HighContrast/*x* $startdir/pkg/usr/share/icons/HighContrast
cp -a -v hicolor/*x* $startdir/pkg/usr/share/icons/hicolor
cp -a -v locolor/*x* $startdir/pkg/usr/share/icons/locolor
}

Edit:. fixed file system entries.

Offline

#119 2006-06-03 19:07:01

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: OpenOffice2 - the final attemp

How is it going?

I wiped Arch from the disk, have to use Windows for 1 week, after that I'm going back to Arch smile

Offline

#120 2006-06-05 14:39:18

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

/var/abs/local/openoffice/src/ooo_OOC680_m5_src/canvas/source/null/null_spritecanvas.hxx:102:   instantiated from 'canvas::CanvasBase<Base>::CanvasBase() [with Base = nullcanvas::SpriteCanvasBaseSpriteSurface_Base, CanvasHelper = nullcanvas::SpriteCanvasHelper, Mutex = osl::Guard<osl>, UnambiguousBase = cppu::OWeakObject]'
../../inc/canvas/base/bitmapcanvasbase.hxx:84:   instantiated from 'canvas::SpriteCanvasBase<Base>::SpriteCanvasBase() [with Base = nullcanvas::SpriteCanvasBaseSpriteSurface_Base, CanvasHelper = nullcanvas::SpriteCanvasHelper, Mutex = osl::Guard<osl>, UnambiguousBase = cppu::OWeakObject]'
/var/abs/local/openoffice/src/ooo_OOC680_m5_src/canvas/source/null/null_spritecanvas.cxx:82:   instantiated from here
/var/abs/local/openoffice/src/ooo_OOC680_m5_src/solver/680/unxlngx6.pro/inc/boost/function/function_template.hpp:134: error: '* f' cannot be used as a function
distcc[25457] ERROR: compile /var/abs/local/openoffice/src/ooo_OOC680_m5_src/canvas/source/null/null_spritecanvas.cxx on localhost failed
dmake:  Error code 1, while making '../../unxlngx6.pro/slo/null_spritecanvas.obj'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /var/abs/local/openoffice/src/ooo_OOC680_m5_src/canvas/source/null
dmake:  Error code 1, while making 'build_instsetoo_native'
'---* *---'

this is wheere it breaks at the moment on x86_64. I can't find a solution. Even not which configure switch may help.

Any idea?

Offline

#121 2006-06-05 14:51:20

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

AndyRTR, this is caused by canvas.
Add --disable-canvas and --with-system-freetype

BTW, I also modified my PKGBUILD
edit:. Moved to aur.

Offline

#122 2006-06-05 17:33:49

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

hussam wrote:

AndyRTR, this is caused by canvas.
Add --disable-canvas and --with-system-freetype

Both are in and it still fails. But I cannot find a similar error message via google. Maybe one of our affected 64bit packages is a bit broken.

Btw: This is my pkgbuild. Maybe you can merge some parts. You should use urls for the patches!

# $Id: PKGBUILD,v 1.13 2005/11/05 09:17:54 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa>
# Contributor: Sarah Hay <sarah>

pkgname=openoffice.org
pkgver=2.0.3rc5
_milestone=m5
pkgrel=1
pkgdesc="OpenOffice.org"
url="http://www.openoffice.org"

#depends=('perl gtk2 gnome-vfs libxml2 libart-lgpl libsndfile startup-notification fontconfig libpng imagemagick flex mozilla-firefox nss neon>=0.24.0 #bison zip unzip expat cups desktop-file-utils perl-archive-zip unixodbc x-server desktop-file-utils')

#makedepends=('j2sdk apache-ant libgpcl glitz cairo ccache tcsh findutils curl intltool tcsh gcc pam qt kdelibs evolution-data-server boost icu pam ttf-khmer sed')

#conflicts=('openoffice-spell-it')
#install=(openoffice.install)
#replaces=('openoffice-en')

source=(http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/OOC680_m5/Build-1/build/Sources/OOo_OOC680_m5_source.tar.gz
    http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/OOC680_m5/Build-1/build/Sources/mozilla-source-1.7.5.tar.gz
    http://go-ooo.org/patches/src680/vcl-freetype-2.2.x.diff
    http://go-ooo.org/patches/src680/gengal-cleanup.diff
    http://www.linuxfromscratch.org/patches/blfs/svn/OOo_2.0.2-xauth-1.patch)

NOEXTRACT=1

build() {
    export MAKEFLAGS="-j 1"

    cd $startdir/src/
    tar -xzf OOo_OOC680_m5_source.tar.gz

    mkdir -p $startdir/src/ooo_OOC680_m5_src/moz/download/
    cp $startdir/src/mozilla-source-1.7.5.tar.gz $startdir/src/ooo_OOC680_m5_src/moz/download/

    cd $startdir/src/ooo_OOC680_m5_src/
    patch -Np0 -i ../vcl-freetype-2.2.x.diff || return 1
    patch -Np0 -i ../gengal-cleanup.diff || return 1
    patch -Np1 -i ../OOo_2.0.2-xauth-1.patch || return 1

    cd $startdir/src/ooo_OOC680_m5_src/config_office
    autoreconf &&
    ./configure --prefix=/opt/openoffice-devel 
      --with-arch="x86_64" 
      --with-srcdir=$startdir/src 
      --with-binsuffix=2 
      --with-tag=ooc680-$_milestone-$date 
       --with-build-version=Arch64 
      --disable-access 
      --disable-mono 
      --disable-cairo 
      --without-firefox-nss 
      --with-mozilla-nss 
      --disable-post-install-scripts 
      --mandir=/usr/man 
      --without-docdir 
      --with-hunspell=no 
      --with-system-fonts 
      --with-system-gpc 
      --with-xulrunner 
      --with-lang="en-US de" 
      --with-dict="en-US de" 
      --with-jdk-home=/opt/java 
      --with-java-home=/opt/java 
      --disable-vba 
      --with-gcc-speedup=ccache 
      --with-package-format=native 
      --enable-gtk 
      --enable-kde 
      --enable-libsn 
      --enable-libart 
      --disable-fontooo 
      --disable-gnome-vfs 
      --without-fonts 
      --with-system-stdlibs 
      --with-system-freetype 
      --with-system-expat 
      --with-system-libxml 
      --with-system-zlib 
      --disable-binfilter 
      --with-system-neon 
      --with-system-python 
      --with-system-xrender-headers 
      --with-system-curl 
      --with-system-sane-header 
      --enable-build-mozilla 
      --disable-canvas

#      --with-ant-home=/usr 
      #--with-java=no 
      #--with-lang=ALL 
      #--with-lang="en-US af ar ca cs cy da de el en-GB es et eu fi fr he hi hu it ja ko nb nl nn pl pt pt-BR ru sk sl sv ta tr zh-TW zh-CN zu" 

    cd ..
    ./bootstrap &&
    source LinuxX86-64Env.Set.sh
    dmake
    cp -R instsetoo_native/unxlngi6.pro/OpenOffice/native/install/en-US/linux-2.6-intel/buildroot/* $startdir/pkg/
    cp -R instsetoo_native/unxlngi6.pro/OpenOffice/native/install/de/linux-2.6-intel/buildroot/* $startdir/pkg/
    # multiprocessing tends to break the build
    #make || return 1
    #make DESTDIR=$startdir/pkg install || return 1

}

Offline

#123 2006-06-05 21:53:07

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

Then something else other than freetype is still linking against canvas.

Offline

#124 2006-06-05 22:22:42

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: OpenOffice2 - the final attemp

--with-system-boost solved it smile

but then i got a java reg error. so now i disabled java at all. let's see if i come further that way.

Offline

#125 2006-06-05 23:04:47

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: OpenOffice2 - the final attemp

I think that's because you have 32 bit java. Isn't there a 64bit jdk?

Offline

Board footer

Powered by FluxBB