You are not logged in.

#1 2005-12-01 10:36:17

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

OpenOffice2 - the final attemp

Because there´s no option to use precompiled packages for our Arch64 port I will have to take the sources. There are packages from source out for Mandriva and Gentoo. The Mandriva one runs x86_64 too 8)

I will start with a pkgbuild for arch32. I´ve read there were some attemps before. But I cannot find any PKGBUILD to use. It would be nice if somebody could post here or send it to me. Even a non working one would be helpfull.

Then I´ll do the rest with maybe a little help.

Mandriva SPEC

Gentoo

But don´t expect a KISS compatible PKGBUILD  :?


AndyRTR
a former Mandriva Community packager

Offline

#2 2005-12-01 17:30:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: OpenOffice2 - the final attemp

AndyRTR wrote:

I will start with a pkgbuild for arch32. I´ve read there were some attemps before. But I cannot find any PKGBUILD to use. It would be nice if somebody could post here or send it to me. Even a non working one would be helpfull.

Check the CVS entries available by searching the front page and viewing versions, you may find previous stuff.

Thanks for attempting this, and good luck!! smile

Dusty

Offline

#3 2005-12-02 01:11:39

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

Re: OpenOffice2 - the final attemp

So here we go:

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

pkgname=openoffice-base
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenOffice"
url="http://www.openoffice.org"

#makedepends=('rpmextract')
makedepends=('j2sdk libgpcl glitz')

depends=('x-server' 'desktop-file-utils')

_patchlevel=OOO680
_oootagver=OOO_2_0_0
_ooobuildver=2.0.0

source=(http://www.go-ooo.org/packages/$_patchlevel/ooo-build-$_ooobuildver.tar.gz 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-core.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-lang.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-system.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/extras-2.tar.bz2 
    http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/ooo_crystal_images-6.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/mdbtools-0.6pre1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/glitz-0.4.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cairo-1.0.2.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell-1.0.8.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cli_types.dll
    http://www.go-ooo.org/packages/SRC680/cli_types_bridgetest.dll
    # for x86_64
    #openoffice.org2-java32_64.patch.bz2 
)
    
md5sums=('e12441b6fa94576760e7ef060530b475' '6a6b1dfa8fd068b1c5f9b341b35ab99d'
         '8aa0c6463dc517723f9f4d4a3f0191a0' 'a6f4b2ef7d1fae927cedbd45e6dd403d'
         '733051ebeffae5232a2eb760162da020' 'f34404f8dc6123aca156d203c37e3e5d'
         '586d0f26b3f79d89bbb5b25b874e3df6' '246e8f38b2a1af1bcff60ee0da59300b'
         '100c4272ad181dcd3b53f602cee3f189' 'd0b7111a14f90ec3afa777ec40c44984'
         '1a3d9746f169c2c535bb69f9f838f28b' '4cc68d37ed3a3191bb78a14630e14c64'
         '2aa6bb72a257abcd896014b08fa4e6f0' 'f06322e5157495c22ba77f310fa4a89b')

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


build() {
  cd $startdir/src/ooo-build-$_ooobuildver
  # for x86_64
  # patch -Np1 -i ../.java32_64 || return 1
  ./configure --prefix=/opt 
    --with-distro="Archlinux" 
    --with-srcdir=$startdir/src 
    --with-num-cpus=1 
    --with-lang=ALL 
    --with-binsuffix=2 
    --enable-gtk 
    --enable-kde 
    --enable-access 
    --with-system-mdbtools 
    --disable-mono 
    --enable-cairo 
    --with-system-cairo 
    --with-system-glitz 
    --enable-hunspell 
    --without-system-hunspell 
    --with-java 
    --disable-post-install-scripts 
    --mandir=/usr/man 
    --without-docdir
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

This breaks with a minor error message. Test it and fix it!

Please have a look at all these configure options. Feel free to complain abaut my selection. And I also have the feeling that the "with-system-..." feature is not used. Even though I´ve downoaded some additional pachages the package keeps complaining further.

AndyRTR

Offline

#4 2005-12-02 04:46:39

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

Re: OpenOffice2 - the final attemp

Update:

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

pkgname=openoffice-base
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenOffice"
url="http://www.openoffice.org"

#makedepends=('rpmextract')
makedepends=('j2sdk libgpcl glitz ccache tcsh')

depends=('x-server' 'desktop-file-utils')

_patchlevel=OOO680
_oootagver=OOO_2_0_0
_ooobuildver=2.0.0

source=(http://www.go-ooo.org/packages/$_patchlevel/ooo-build-$_ooobuildver.tar.gz 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-core.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-lang.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-system.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/extras-2.tar.bz2 
    http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/ooo_crystal_images-6.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/mdbtools-0.6pre1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/glitz-0.4.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cairo-1.0.2.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell-1.0.8.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cli_types.dll
    http://www.go-ooo.org/packages/SRC680/cli_types_bridgetest.dll
    # for x86_64
    #openoffice.org2-java32_64.patch.bz2 
)
    
md5sums=('e12441b6fa94576760e7ef060530b475' '6a6b1dfa8fd068b1c5f9b341b35ab99d'
         '8aa0c6463dc517723f9f4d4a3f0191a0' 'a6f4b2ef7d1fae927cedbd45e6dd403d'
         '733051ebeffae5232a2eb760162da020' 'f34404f8dc6123aca156d203c37e3e5d'
         '586d0f26b3f79d89bbb5b25b874e3df6' '246e8f38b2a1af1bcff60ee0da59300b'
         '100c4272ad181dcd3b53f602cee3f189' 'd0b7111a14f90ec3afa777ec40c44984'
         '1a3d9746f169c2c535bb69f9f838f28b' '4cc68d37ed3a3191bb78a14630e14c64'
         '2aa6bb72a257abcd896014b08fa4e6f0' 'f06322e5157495c22ba77f310fa4a89b')

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


build() {
  cd $startdir/src/ooo-build-$_ooobuildver
  # for x86_64
  # patch -Np1 -i ../.java32_64 || return 1
  ./configure --prefix=/opt 
    #--with-distro="Archlinux" 
    --with-srcdir=$startdir/src 
    --with-num-cpus=1 
    --with-lang=ALL 
    --with-binsuffix=2 
    --enable-gtk 
    --enable-kde 
    --enable-access 
    --with-system-mdbtools 
    --disable-mono 
    --enable-cairo 
    --with-system-cairo 
    --with-system-glitz 
    --enable-hunspell 
    --without-system-hunspell 
    --with-java 
    --disable-post-install-scripts 
    --mandir=/usr/man 
    --without-docdir 
    --with-jdk-home=/opt/java 
    --with-ant-home=/opt/java 
    --with-system-nas 
    --with-gcc-speedup=ccache
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}

Offline

#5 2005-12-02 19:36:24

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

Re: OpenOffice2 - the final attemp

So now I need some help :oops:

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

pkgname=openoffice-base
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenOffice"
url="http://www.openoffice.org"

#makedepends=('rpmextract')
makedepends=('j2sdk libgpcl glitz ccache tcsh')

depends=('x-server' 'desktop-file-utils')

_patchlevel=OOO680
_oootagver=OOO_2_0_0
_ooobuildver=2.0.0

source=(http://www.go-ooo.org/packages/$_patchlevel/ooo-build-$_ooobuildver.tar.gz 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-core.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-lang.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-system.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/extras-2.tar.bz2 
    http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/ooo_crystal_images-6.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/mdbtools-0.6pre1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/glitz-0.4.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cairo-1.0.2.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell-1.0.8.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cli_types.dll 
    http://www.go-ooo.org/packages/SRC680/cli_types_bridgetest.dll 
    # for x86_64 
    #openoffice.org2-java32_64.patch.bz2 
)
    
md5sums=('e12441b6fa94576760e7ef060530b475' '6a6b1dfa8fd068b1c5f9b341b35ab99d'
         '8aa0c6463dc517723f9f4d4a3f0191a0' 'a6f4b2ef7d1fae927cedbd45e6dd403d'
         '733051ebeffae5232a2eb760162da020' 'f34404f8dc6123aca156d203c37e3e5d'
         '586d0f26b3f79d89bbb5b25b874e3df6' '246e8f38b2a1af1bcff60ee0da59300b'
         '100c4272ad181dcd3b53f602cee3f189' 'd0b7111a14f90ec3afa777ec40c44984'
         '1a3d9746f169c2c535bb69f9f838f28b' '4cc68d37ed3a3191bb78a14630e14c64'
         '2aa6bb72a257abcd896014b08fa4e6f0' 'f06322e5157495c22ba77f310fa4a89b')

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


build() {
  cd $startdir/src/ooo-build-$_ooobuildver
  # for x86_64
  #patch -Np1 -i ../.java32_64 || return 1
  ./configure --prefix=/opt 
    #--with-distro="Archlinux" 
    --with-srcdir=$startdir/src 
    --with-num-cpus=1 
    --with-lang=ALL 
    --with-binsuffix=2 
    --enable-gtk 
    --enable-kde 
    --enable-access 
    --with-system-mdbtools 
    --disable-mono 
    --enable-cairo 
    --with-system-cairo 
    --with-system-glitz 
    --enable-hunspell 
    --without-system-hunspell 
    --with-java 
    --disable-post-install-scripts 
    --mandir=/usr/man 
    --without-docdir 
    --disable-java 
    #--with_jdk_home=/opt/java/bin 
    #--with-ant-home=/opt/java 
    #--with-system-nas 
    --with-gcc-speedup=ccache
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}

The configure process always stops with this message:

checking whether to build with Java support... yes
configure: error: /usr/lib/SunJava2-1.4.2/bin/java not found set with_jdk_home
make: *** [stamp/build] Fehler 1
==> ERROR: Build Failed.  Aborting...

It´s the same if I set "--with-java" or "--without-java". So I guess we will have to look for a patch.

Beside Mandriva and Gentoo I´ve found this website for Debian: http://openoffice.debian.net/patches.html#200-2

But I think they go without any java support. Do we need java support?

All the rest seems to be good so far.

AndyRTR

Offline

#6 2005-12-02 20:51:33

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

Re: OpenOffice2 - the final attemp

...testing a patch...

Offline

#7 2005-12-02 22:05:28

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: OpenOffice2 - the final attemp

I don't think Java support is necessary, but that error is looking for a 1.4.2 Java, and we use 1.5.0 at arch, that could have something to do with it. Sorry I can't test it, too busy. sad

Dusty

Offline

#8 2005-12-03 11:28:28

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

Re: OpenOffice2 - the final attemp

The pacht is this one:

http://www.go-oo.org/patches/src680/noj … param.diff

But at the moment it won´t be applied. Have to fix a little bit more.

Offline

#9 2005-12-03 15:02:09

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

Re: OpenOffice2 - the final attemp

next update:

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

pkgname=openoffice-base
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenOffice"
url="http://www.openoffice.org"

#makedepends=('rpmextract')
makedepends=('j2sdk libgpcl glitz ccache tcsh')

depends=('x-server' 'desktop-file-utils')

_patchlevel=OOO680
_oootagver=OOO_2_0_0
_ooobuildver=2.0.0

source=(http://www.go-ooo.org/packages/$_patchlevel/ooo-build-$_ooobuildver.tar.gz 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-core.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-lang.tar.bz2 
    http://www.go-ooo.org/packages/$_patchlevel/$_oootagver-system.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/extras-2.tar.bz2 
    http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/ooo_crystal_images-6.tar.bz2 
    http://www.go-ooo.org/packages/SRC680/mdbtools-0.6pre1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/glitz-0.4.3.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cairo-1.0.2.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell-1.0.8.tar.gz 
    http://www.go-ooo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz 
    http://www.go-ooo.org/packages/SRC680/cli_types.dll 
    http://www.go-ooo.org/packages/SRC680/cli_types_bridgetest.dll 
    # taken from http://www.go-oo.org/patches/
    # for x86_64 
    #openoffice.org2-java32_64.patch 
    nojava-fix-stringparam.diff 
)
    
md5sums=('e12441b6fa94576760e7ef060530b475' '6a6b1dfa8fd068b1c5f9b341b35ab99d'
         '8aa0c6463dc517723f9f4d4a3f0191a0' 'a6f4b2ef7d1fae927cedbd45e6dd403d'
         '733051ebeffae5232a2eb760162da020' 'f34404f8dc6123aca156d203c37e3e5d'
         '586d0f26b3f79d89bbb5b25b874e3df6' '246e8f38b2a1af1bcff60ee0da59300b'
         '100c4272ad181dcd3b53f602cee3f189' 'd0b7111a14f90ec3afa777ec40c44984'
         '1a3d9746f169c2c535bb69f9f838f28b' '4cc68d37ed3a3191bb78a14630e14c64'
         '2aa6bb72a257abcd896014b08fa4e6f0' 'f06322e5157495c22ba77f310fa4a89b'
         '48857c5a49d9f7a47d8e65cfdbfa2ae0')

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


build() {
  #cd $startdir/src/ooo-build-2.0.0/build/ooo680-m3
  cd $startdir/src/ooo680-m3
  cp -v $startdir/src/nojava-fix-stringparam.diff $startdir/src/ooo-build-2.0.0/patches/src680/
  patch --verbose -Np0 -i $startdir/src/ooo-build-$_ooobuildver/patches/src680/nojava-fix-stringparam.diff || return 1
  cd $startdir/src/ooo-build-$_ooobuildver
  # for x86_64
  #patch -Np1 -i ../openoffice.org2-java32_64.patch || return 1
  ./configure --prefix=/opt 
    #--with-distro="NLD" 
    --with-arch=x86 
    --with-srcdir=$startdir/src 
    #--with-num-cpus=1 
    --with-lang=ALL 
    --with-binsuffix=2 
    --enable-gtk 
    --enable-kde 
    --enable-access 
    --with-system-mdbtools 
    --disable-mono 
    --enable-cairo 
    --with-system-cairo 
    --with-system-glitz 
    --enable-hunspell 
    --with-system-hunspell 
    --disable-post-install-scripts 
    --mandir=/usr/man 
    --without-docdir 
    --without-java 
    #--with_jdk_home=/opt/java/bin 
    #--with-ant-home=/opt/java 
    #--with-system-nas 
    --with-gcc-speedup
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}
==> Starting build()...
,,/var/abs/local/oo/openoffice-base/src/nojava-fix-stringparam.diff" -> ,,/var/abs/local/oo/openoffice-base/src/ooo-build-2.0.0/patches/src680/nojava-fix-stringparam.diff"
patching file filter/source/config/fragments/makefile.mk
Hunk #1 FAILED at 147.
Hunk #2 FAILED at 191.
2 out of 2 hunks FAILED -- saving rejects to file filter/source/config/fragments/makefile.mk.rej
==> ERROR: Build Failed.  Aborting...

Hm. Maybe someone can have a look at it.

Offline

#10 2005-12-03 15:37:47

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

Re: OpenOffice2 - the final attemp

Maybe I will give the OOo 2.0.1RC2 a try later today where this is fixed.

Offline

#11 2005-12-03 16:33:12

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: OpenOffice2 - the final attemp

Thanks for trying all this! :-)

Dusty

Offline

#12 2005-12-07 20:53:19

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: OpenOffice2 - the final attemp

Will there be an option to cimpile Openoffice with KDE extensions?

This just rocks.. Keep up the great work!

Offline

#13 2005-12-07 22:50:42

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

Re: OpenOffice2 - the final attemp

First I want to get it build at all. Then we can discuss about all the features.

Offline

#14 2005-12-08 18:49:41

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: OpenOffice2 - the final attemp

AndyRTR wrote:

First I want to get it build at all. Then we can discuss about all the features.

Yea, I understand. Still, this rocks smile

Offline

#15 2005-12-08 23:56:41

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Re: OpenOffice2 - the final attemp

just curious, but why is the official arch package not compiled from source?

Offline

#16 2005-12-09 08:41:25

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: OpenOffice2 - the final attemp

jftaylor21 wrote:

just curious, but why is the official arch package not compiled from source?

Because it's not easy to build. Maybe the devs decided that using the precompiled package is better, because it guaranties  stability. Or maybe they were just plain lazy wink

Offline

#17 2005-12-09 09:04:42

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

Re: OpenOffice2 - the final attemp

Neuro wrote:

Because it's not easy to build....

I can tell you. But I go step by step further. Maybe one day it will compile to the end. 2.0.1RC2 version is not much better than 2.0.0 :?

:arrow: How do we set the "RC2" in the package following AUR guidelines?

Every build takes a long time because of the huge size. Now 10 minutes only for ./configure to see where it is broken :shock: Love to "sed" it tongue

I´ll keep you informed.

Offline

#18 2005-12-09 09:23:42

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: OpenOffice2 - the final attemp

AndyRTR wrote:
Neuro wrote:

Every build takes a long time because of the huge size. Now 10 minutes only for ./configure to see where it is broken :shock: Love to "sed" it tongue

I´ll keep you informed.

Great smile I'd love to compile it myslef. I would really like the KDE dialogs smile And possibly compile it against the shared version of Freetype 2, since the precompiled binary has it staticly build-in and doesn't use the bytecode interpreter.

Keep up the great work. Hope we'll have a PKGBUILD that compiles cleanly in the near future smile

Offline

#19 2005-12-09 16:05:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: OpenOffice2 - the final attemp

AndyRTR wrote:

:arrow: How do we set the "RC2" in the package following AUR guidelines?

Just use pkgver=2.0.1RC2

Offline

#20 2005-12-09 20:40:08

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

Re: OpenOffice2 - the final attemp

Ok. RC3 sources are out. Here is my latest pkgbuild:

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

pkgname=ooo-daily
pkgver=2.0.1RC3
pkgrel=1
pkgdesc="OpenOffice daily snapshot"
url="http://www.openoffice.org"

makedepends=('j2sdk libgpcl glitz ccache tcsh')

depends=('x-server' 'desktop-file-utils')

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

_patchlevel=OOO680
_oootagver=OOO_2_0_0
_ooobuildver=2.0.0.2
_build=SRC680
_buildtag=src680-m145
_snap=20051208

source=(http://www.go-ooo.org/packages/snap/ooo-build-ooo-build-2-0-$_ooobuildver-$_snap.tar.gz 
    http://www.go-ooo.org/packages/$_build/$_buildtag-core.tar.bz2 
    http://www.go-ooo.org/packages/$_build/$_buildtag-lang.tar.bz2 
    http://www.go-ooo.org/packages/$_build/$_buildtag-system.tar.bz2 
    http://www.go-ooo.org/packages/$_build/extras-2.tar.bz2 
    http://www.go-ooo.org/packages/$_build/ooo_crystal_images-6.tar.bz2 
    http://www.go-ooo.org/packages/$_build/ooo_custom_images-13.tar.bz2 
    http://go-ooo.org/packages/libwpd/libwpd-0.8.3.tar.gz)
    
md5sums=('6068af3039cafe6a136e2b5ab433b48b' '400c99049b4470b61eae3a8221bcbd6c'
         'd7aa58b174ff11d49f0ca87be5ca96a5' '71273a3077ea1a5601562ac6e0983c0e'
         '733051ebeffae5232a2eb760162da020' '586d0f26b3f79d89bbb5b25b874e3df6'
         '2480af7f890c8175c7f9e183a1b39ed2' 'f34404f8dc6123aca156d203c37e3e5d')

build() {
  mkdir -p $startdir/src/ooo-build-$_ooobuildver/build/$_oootagver/libwpd/download
  cp -fv $startdir/src/libwpd-0*.tar.gz $startdir/src/ooo-build-$_ooobuildver/build/$_oootagver/libwpd/download/
  cp -rv $startdir/src/ooo_custom_images $startdir/src/ooo-build-2.0.0.2/build/OOO_2_0_0/ooo_custom_images
  # link sources to the right place
  ln -sfv $startdir/src/* $startdir/src/ooo-build-$_ooobuildver/src/
  ln -sfv $startdir/src/$_buildtag-core.tar.bz2 $startdir/src/OOO_2_0_0-core.tar.bz2
  ln -sfv $startdir/src/$_buildtag-lang.tar.bz2 $startdir/src/OOO_2_0_0-lang.tar.bz2
  cd $startdir/src/ooo-build-$_ooobuildver
  ./configure --prefix=/opt 
    --with-arch="x86" 
    --with-srcdir=$startdir/src 
    --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-binsuffix=2 
    --enable-gtk 
    --enable-kde 
    --disable-access 
    --disable-mono 
    --disable-cairo 
    --disable-post-install-scripts 
    --mandir=/usr/man 
    --without-docdir 
    --with-java 
    --with-gcc-speedup=ccache
  # just to make sure all is at the right place - will be later removed
  ./download
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}

You should have about several GB space on your harddisc. Watch all the action on your hdd led or gkrellm. Here suddenly all work will stop with no break or output on the command line. Pressing STRG-C brings

/var/abs/local/oo201daily/src/ooo-build-2.0.0.2/bin/hicontrast-to-theme.sh /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/build/OOO_2_0_0/default_images /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/build/OOO_2_0_0/ooo_custom_images/hicontrast || echo "cannot create hicontrast icon theme"
/var/abs/local/oo201daily/src/ooo-build-2.0.0.2/bin/hicontrast-to-theme.sh: line 16: cd: /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/build/OOO_2_0_0/default_images: Datei oder Verzeichnis nicht gefunden
touch stamp/artwork.install
Testing patch recovery-report.diff failed. at /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/apply.pl line 54.
make: *** [stamp/patch.apply] Fehler 130

real    10m49.424s
user    3m1.143s
sys     1m11.444s
[andyrtr@workstation oo201daily]$

And now I need your help. There´s a patch called ($startdir/src/ooo-build-2.0.0.2/patches/src680/)recovery-report.diff that´s making me sick. I´ve tried a lot with sed and several patchutils to get it applied but with no success :-(

Could you all please have a look why that patch breaks it  :?:

recovery-report.diff: testing...( sed 's/^(@.*)r$/1/' | patch -l -p0  -d /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/build/OOO_2_0_0 --dry-run ) < /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/OOO_2_0/../src680/recovery-report.diff
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: svx/source/dialog/docrecovery.src
|===================================================================
|RCS file: /cvs/graphics/svx/source/dialog/docrecovery.src,v
|retrieving revision 1.3
|diff -u -r1.3 docrecovery.src
|--- svx/source/dialog/docrecovery.src  9 Dec 2004 16:44:31 -0000       1.3
|+++ svx/source/dialog/docrecovery.src  15 Dec 2004 17:43:32 -0000
--------------------------

I don´t know exactly what to try next :oops:

AndyRTR

Offline

#21 2005-12-09 21:39:30

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: OpenOffice2 - the final attemp

Did you try to use other -p options? Like instead of -p0, try -p1 or -p2 or ...

Offline

#22 2005-12-09 21:49:01

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

Re: OpenOffice2 - the final attemp

Yes. I´ve tried that from the command line but get no response:

[andyrtr@workstation src680-m145]$ patch -N -p0 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p1 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p2 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p3 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p4 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p5 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$ patch -N -p6 --verbose /var/abs/local/oo201daily/src/ooo-build-2.0.0.2/patches/src680/recovery-report.diff

[andyrtr@workstation src680-m145]$

I have to use STRG-C there to come back to the command line. But I´ve seen the patch sometimes applied in OOo 2.0.0 :?


I´ve still not found out how the patch set is called. So I cannot switch off that one. Our more skilled TURs should join now and play with it to see the files in reality.

Offline

#23 2005-12-11 22:34:04

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

Re: OpenOffice2 - the final attemp

I submitted a bugreport to Openoffice.org. Let´s see if they can help us.

http://qa.openoffice.org/issues/show_bug.cgi?id=59219

Offline

#24 2005-12-17 22:34:56

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: OpenOffice2 - the final attemp

Seems like the openoffice guys got no clue either.

Any progress on this one? Is the recovery-report patch really  needed?

I'm really interested in this PKGBUILD. Too bad I don't have the knowledge required to help. Still, I hope you didn't give up smile

Offline

#25 2005-12-17 22:56:00

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

Re: OpenOffice2 - the final attemp

The recovery-report.patch is from the OOo patchset. I don't know how to remove or fix it. I´ve still not found where they activate them. I guess it belong to the --with-distro="foo" option.

At the moment I can only wait.

Offline

Board footer

Powered by FluxBB