You are not logged in.
I'd like to get everyone's opinion on this PKGBUILD before I upload. For me, 2.0.3 doesn't work, and 2.0.4 works but I get some nasty terminal output when I close the app, and the KCrash Handler pops up in KDE too. Please test and post back here. We may have to stop relying on these precompiled builds soon
# $Id: PKGBUILD,v 1.22 2006/10/18 05:19:59 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa>
# Contributor: Sarah Hay <sarah>
pkgname=openoffice-base
pkgver=2.0.4
pkgrel=1
pkgdesc="OpenOffice base package"
arch=(i686 x86_64)
url="http://www.openoffice.org"
makedepends=('rpmextract')
depends=('desktop-file-utils')
source=(ftp://ftp.leo.org/mirrors/openoffice/stable/$pkgver/OOo_2.0.4_LinuxIntel_install.tar.gz
template.desktop libfreetype.so.6.bz2)
[ "$CARCH" = "x86_64" ] && source=(http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/2.0.4-RC3/OOo_OOD680_m5_LinuxX86-64_install_en-US_rpm.tar.gz template.desktop libfreetype.so.6.bz2)
conflicts=('openoffice-spell-it')
install=(openoffice.install)
replaces=('openoffice-en')
md5sums=('736a546f2a2518e49c94f6c7995dc055' '41da27b9a6ce761de5d30e51fd0fe799'
'0e11044d6b2ada49819ea4077a9ce14e')
[ "$CARCH" = "x86_64" ] && md5sums=('c3fe8e1680dfc2f494e72d9aa79187d1' '41da27b9a6ce761de5d30e51fd0fe799'
'0e11044d6b2ada49819ea4077a9ce14e')
build() {
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS
fi
# change rpms to tar.gz
for i in *.rpm
do
rpmextract.sh $i
done
# install openoffice files
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS/opt
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS/opt
fi
mkdir -p $startdir/pkg/opt
mv openoffice.org2.0 $startdir/pkg/opt/openoffice
chown root -R $startdir/pkg/opt/openoffice
chgrp root -R $startdir/pkg/opt/openoffice
# install desktop stuff
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS/desktop-integration
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS/desktop-integration
fi
rpmextract.sh *freedesktop*.rpm
cp -r usr/ $startdir/pkg/
cd $startdir/pkg/usr/share
# rm -r applnk-redhat
rm applications/*
cp $startdir/pkg/opt/openoffice/share/xdg/* $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr
rm -r bin/
# fix the .desktop files and gnome registry
# cd $startdir/pkg/usr/share/application-registry
# sed -i -e 's|command=openoffice.org-2.0|command=/opt/openoffice2/program/soffice|g' *.applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
# fix printeradmin desktop file
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix permissions of files
chmod +rX -R $startdir/pkg/usr
# make symlink to /usr/bin
mkdir -p $startdir/pkg/usr/bin
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# add template desktop file
install -D -m644 $startdir/src/template.desktop $startdir/pkg/usr/share/applications/template.desktop
# fix freetype hinting bug, fixed in 2.1
install -m644 $startdir/src/libfreetype.so.6 $startdir/pkg/opt/openoffice/program/libfreetype.so.6
}
You can get libfreetype.so.6.bz2 and other files from 32bit abs or from here http://cvs.archlinux.org/cgi-bin/viewcv … ag=CURRENT
Offline
Hi!
What's going on with OpenOffice? It was marked for update yesterday, but not downloadable. And today it disappeared...
I really need the newest version since there's a stupid bug in 2.0.3
BTW: To me the PKGBUILD for Openoffice in the AUR seems to work a lot better than the official ones. Maybe one of the maintainers can take a look at it: http://aur.archlinux.org/packages/openo … e/PKGBUILD
Maybe we can finally use a self build OpenOffice with this PKGBUILD instead of using a pre-compiled rpm package???
I'm not that good in building PKGBUILDs but the one in AUR looks way more clear to me. Maybe somebody more advanced can port it to x86_64.
Offline
I tried the PKGBUILD from AUR, but it seems broken; compiling stops after a few seconds.
I really do not know why they made it that difficult to build oo.
Offline
Well, I think it doesn't compile while it's not completely compatible to x86_64. But I think it's way more clean, than the current PKGBUILDs, so maybe the people responsible for the packages, can start working together instead of creating ten different packages for the same app. :shock:
Offline
the PKGBUILD you posted up there is working i build my openoffice out of it. And its working.
Greeting
eSpo
Offline
Well, the PKGBUILD is working, but it also crashes after closing OpenOffice as you described.....
Offline
Why are you using 32-bit-freetype? Isn`t this a native 64-bit-oo?
I hope KOffice will get more support in future. OO seems just broken.
Offline
Pierre: good call.. just rename /usr/lib/libfreetype.so.6 to x86_64-libfreetype.so.6 and compress to .bz2. here's the modified PKGBUILD. it still crashes obnoxiously though.
# $Id: PKGBUILD,v 1.22 2006/10/18 05:19:59 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa>
# Contributor: Sarah Hay <sarah>
pkgname=openoffice-base
pkgver=2.0.4
pkgrel=1
pkgdesc="OpenOffice base package"
arch=(i686 x86_64)
url="http://www.openoffice.org"
makedepends=('rpmextract')
depends=('desktop-file-utils')
source=(ftp://ftp.leo.org/mirrors/openoffice/stable/$pkgver/OOo_2.0.4_LinuxIntel_install.tar.gz
template.desktop libfreetype.so.6.bz2)
[ "$CARCH" = "x86_64" ] && source=(http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/2.0.4-RC3/OOo_OOD680_m5_LinuxX86-64_install_en-US_rpm.tar.gz template.desktop libfreetype.so.6.bz2 x86_64-libfreetype.so.6.bz2)
conflicts=('openoffice-spell-it')
install=(openoffice.install)
replaces=('openoffice-en')
md5sums=('736a546f2a2518e49c94f6c7995dc055' '41da27b9a6ce761de5d30e51fd0fe799'
'0e11044d6b2ada49819ea4077a9ce14e')
[ "$CARCH" = "x86_64" ] && md5sums=('c3fe8e1680dfc2f494e72d9aa79187d1' '41da27b9a6ce761de5d30e51fd0fe799'
'0e11044d6b2ada49819ea4077a9ce14e' 'b74a60ed24c5cf7ae7afc167fe594111')
build() {
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS
fi
# change rpms to tar.gz
for i in *.rpm
do
rpmextract.sh $i
done
# install openoffice files
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS/opt
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS/opt
fi
mkdir -p $startdir/pkg/opt
mv openoffice.org2.0 $startdir/pkg/opt/openoffice
chown root -R $startdir/pkg/opt/openoffice
chgrp root -R $startdir/pkg/opt/openoffice
# install desktop stuff
if [ "$CARCH" = "x86_64" ]; then
cd $startdir/src/RPMS/desktop-integration
else cd $startdir/src/OOD680_m5_native_packed-1_en-US.9073/RPMS/desktop-integration
fi
rpmextract.sh *freedesktop*.rpm
cp -r usr/ $startdir/pkg/
cd $startdir/pkg/usr/share
# rm -r applnk-redhat
rm applications/*
cp $startdir/pkg/opt/openoffice/share/xdg/* $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr
rm -r bin/
# fix the .desktop files and gnome registry
# cd $startdir/pkg/usr/share/application-registry
# sed -i -e 's|command=openoffice.org-2.0|command=/opt/openoffice2/program/soffice|g' *.applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
# fix printeradmin desktop file
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix permissions of files
chmod +rX -R $startdir/pkg/usr
# make symlink to /usr/bin
mkdir -p $startdir/pkg/usr/bin
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# add template desktop file
install -D -m644 $startdir/src/template.desktop $startdir/pkg/usr/share/applications/template.desktop
# fix freetype hinting bug, fixed in 2.1
if [ "$CARCH" = "x86_64" ]; then
install -m644 $startdir/src/x86_64-libfreetype.so.6 $startdir/pkg/opt/openoffice/program/libfreetype.so.6
else install -m644 $startdir/src/libfreetype.so.6 $startdir/pkg/opt/openoffice/program/libfreetype.so.6
fi
}
Offline
After checking out the current version povided by the PKGBUILD, I have some serious bug. Whenever I want to print something OpenOffice crashes...
So it's absolutely impossible to print something.
This only happens in OpenOffice, other apps are working.....
Maybe it is definitely the better way to switch away from precompiled packages.....
Offline
Ive started building openoffice from source, using blackdown java. According to porting.openoffice.org gcj java or blackdown is known to work, so im not even going to waste time trying sun java. I can only fix one build error a day though, cause i leave it to compile overnight. :-)
Offline
How long does a compile take? Perhaps you could share your PKGBUILD and we could increase our bugfixing-rate. ;-)
PS: Can`t we use ccache to decrease compile-time?
PPS: Are you sure that OO does not work better with sun`s sdk? It is Sun who mainly develop OO.
Offline
Yup im going to post the PKGBUILD today as soon as i get home.. Ill appreciate all the help i can get. Yeah ccache can be used to reduce compile time, but i didnt want to install it on my build system initially cause it interferes with my udev and klibc-udev builds. Ill build with ccache on another partition today and let you know.
Offline
im trying this PKGBUILD right now
# Maintainer: Hussam Al-Tayeb <ht990332>
pkgname=openoffice
pkgver=2.0.4
OO_milestone=OOD680_m5
pkgrel=3
pkgdesc="OpenOffice.org - a free office suite"
url="http://www.openoffice.org"
depends=('cups' 'curl' 'desktop-file-utils' 'expat' 'fontconfig' 'freetype2' 'gtk2' 'hunspell' 'imagemagick' 'libxaw' 'libxml2' 'libart-lgpl' 'libsndfile' 'libstdc++5' 'libpng' 'neon' 'nss' 'perl' 'perl-archive-zip' 'python' 'sane' 'unzip' 'libwpd' 'xmlsec' 'xorg-server' 'xulrunner' 'zip')
makedepends=('apache-ant' 'bison' 'ccache' 'cairo' 'curl' 'findutils' 'flex' 'gawk' 'gcc' 'pam' 'perl-archive-zip' 'pkgconfig' 'tcsh' 'libidl2')
replaces=('openoffice-base' 'openoffice-cvs')
conflicts=('openoffice-base' 'openoffice-cvs')
provides=('openoffice-base' 'openoffice-cvs')
source=(http://ftp-1.gwdg.de/pub/$pkgname/stable/$pkgver/OOo_${pkgver}_src.tar.gz
intros-config_office.diff intro.bmp system-xmlsec.diff readlicense_oo-xml-apis.diff nomozplug.diff session-management.diff leak-sal-file.diff gui-insensitive.diff check-buttons-rendering-fix.diff fontconfig-substitute.diff vcl-gnome-screensaver-poke.diff default-no-registration.diff framework-layered-accelerators.diff fpicker-common-scp2.diff fpicker-kde-dialog.diff about-build-ver-readability.diff default-system-fpicker.diff soffice-detect-mozilla-certificates.diff size-vcl-fontcfg.diff sc-default-color-modify.diff)
build() {
# Some workarounds
unset LS_COLORS
#unset MAKEFLAGS ## Temp workaround
export MAKEFLAGS="-j 1"
[ -r /etc/profile.d/qt.sh ] && . /etc/profile.d/qt.sh ## Workaround for people with Qt3 and Qt4 installed. We need to use Qt3 by default if we are going to build with --enable -kde
cd $startdir/src
mv $OO_milestone OOo2
cd OOo2
chmod +wX -R ./svx
# Apply patches
patch -p0 < ../intros-config_office.diff || return 1
patch -p0 < ../system-xmlsec.diff || return 1
patch -p0 < ../readlicense_oo-xml-apis.diff || return 1
patch -p0 < ../nomozplug.diff || return 1
patch -p0 < ../session-management.diff || return 1
patch -p0 < ../leak-sal-file.diff || return 1 # remove this patch in 2.1.0
patch -p0 < ../gui-insensitive.diff || return 1
patch -p0 < ../check-buttons-rendering-fix.diff || return 1
patch -p0 < ../fontconfig-substitute.diff || return 1
patch -p0 < ../vcl-gnome-screensaver-poke.diff || return 1
patch -p0 < ../default-no-registration.diff || return 1
patch -p0 < ../framework-layered-accelerators.diff || return 1
patch -p0 < ../fpicker-common-scp2.diff || return 1
patch -p0 < ../fpicker-kde-dialog.diff || return 1
patch -p0 < ../about-build-ver-readability.diff || return 1
patch -p0 < ../default-system-fpicker.diff || return 1
patch -p0 < ../soffice-detect-mozilla-certificates.diff || return 1
patch -p0 < ../size-vcl-fontcfg.diff || return 1
patch -p0 < ../sc-default-color-modify.diff || return 1
# Enter config dir
cd config_office/
# Need to recreate the configure script because of patches
autoconf
# ccache
export CCACHE_HARDLINK=1
export CC="ccache gcc"
export CXX="ccache g++"
export CPP="ccache cpp"
# Configuring
./configure --disable-gnome-vfs --with-system-fonts --with-system-neon --with-jdk-home=/opt/j2sdk1.4.2 --with-java-home=/opt/j2re1.4.2 --with-system-python --with-system-xrender-headers --with-system-curl --without-docdir --with-arch="x86_64" --with-system-sane-header --disable-mono --with-package-format=native --without-nas --with-system-freetype --with-system-jpeg --with-system-zlib --with-system-libxml --with-xulrunner --with-system-mozilla --with-system-expat --with-system-sndfile --with-vendor="Archlinux Community" --disable-qadevooo --with-system-stdlibs --disable-odk --with-system-libwpd --with-system-xmlsec --without-myspell-dicts --enable-hunspell --with-system-hunspell --with-build-version="2.0.4 Archlinux build-3" --enable-cairo --with-system-cairo --enable-evolution2 --disable-canvas --with-system-boost --with-gcc-speedup=ccache
## NOTES
# 1. We need java bindings for db if we are to use --with-system-db so we don't.
# Compiling
cd ..
./bootstrap || return 1
source LinuxX86-64Env.Set.sh
export EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
dmake || return 1
# install binaries
cp -R instsetoo_native/unxlngi6.pro/OpenOffice/native/install/en-US/linux-2.6-intel/buildroot/* $startdir/pkg/
cd $startdir/pkg/opt
mv openoffice.org2.0 openoffice
# replace original splash intro screen with one provided by shastry
rm -rf $startdir/pkg/opt/openoffice/program/intro.bmp
install -D -m644 cp $startdir/src/intro.bmp $startdir/pkg/opt/openoffice/program/
# prepare filesystem entries
mkdir -p $startdir/pkg/usr/{bin,share/applications}
mkdir -p $startdir/pkg/usr/share/icons/{HighContrast,hicolor,locolor}
# make symlinks
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# install shortcuts
cp $startdir/pkg/opt/openoffice/share/xdg/*.desktop $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix icons in shortcuts
sed -i -e 's|Icon=openofficeorg-20-base|Icon=base|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-calc|Icon=ooocalc|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-draw|Icon=draw|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-impress|Icon=impress|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-math|Icon=math|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-writer|Icon=writer|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-printeradmin.png|Icon=printeradmin|g' *.desktop
# 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
rm -rf $startdir/pkg/usr/share/icons/*/*/CVS
rm -rf $startdir/pkg/usr/share/icons/*/*/*/CVS
## just in case icon calc is used by calculator :)
find $startdir/pkg/usr/share/icons -type d -name apps -exec mv {}/calc.png {}/ooocalc.png ;
# fix ownership and permissions
chown root.root -R $startdir/pkg/
chmod +rX -R $startdir/pkg/usr
}
Offline
btw, I had to
ln -s /usr/lib/libjpeg.so /usr/lib64
to get it to compile beyond a certain stage. The last PKGBUILD i tried broke here ..
-----------------------------
Making: ../../../unxlngx6.pro/lib/libspell680lx.so
ccache g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared -Wl,-O1 -Wl,--version-script ../../../unxlngx6.pro/misc/spell_spell680lx.map -L../../../unxlngx6.pro/lib -L../lib -L/home/openoffice/src/OOo2/solenv/unxlngx6/lib -L/home/openoffice/src/OOo2/solver/680/unxlngx6.pro/lib -L/home/openoffice/src/OOo2/solenv/unxlngx6/lib -L/opt/j2sdk1.4.2/lib64 -L/opt/j2sdk1.4.2/jre/lib/amd64 -L/opt/j2sdk1.4.2/jre/lib/amd64/server -L/opt/j2sdk1.4.2/jre/lib/amd64/native_threads -L/usr/lib64 -L/opt/mozilla/lib/xulrunner ../../../unxlngx6.pro/slo/spell_dflt_version.o ../../../unxlngx6.pro/slo/spell_dflt_description.o -o ../../../unxlngx6.pro/lib/libspell680lx.so ../../../unxlngx6.pro/slo/sprophelp.o ../../../unxlngx6.pro/slo/sreg.o ../../../unxlngx6.pro/slo/sspellimp.o -luno_cppu -luno_cppuhelpergcc3 -lvos3gcc3 -ltl680lx -lsvt680lx -lsvl680lx -lvcl680lx -luno_sal -lucbhelper3gcc3 -lutl680lx -llng680lx -lhunspell -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib/libhunspell.a(dictmgr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib/libhunspell.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
dmake: Error code 1, while making '../../../unxlngx6.pro/lib/libspell680lx.so'
'---* tg_merge.mk *---'
Offline
latest PKGBUILD
# Maintainer: Hussam Al-Tayeb <ht990332>
pkgname=openoffice
pkgver=2.0.4
OO_milestone=OOD680_m5
pkgrel=3
pkgdesc="OpenOffice.org - a free office suite"
url="http://www.openoffice.org"
depends=('cups' 'curl' 'desktop-file-utils' 'expat' 'fontconfig' 'freetype2' 'gtk2' 'hunspell' 'imagemagick' 'libxaw' 'libxml2' 'libart-lgpl' 'libsndfile' 'libstdc++5' 'libpng' 'neon' 'nss' 'perl' 'perl-archive-zip' 'python' 'sane' 'unzip' 'libwpd' 'xmlsec' 'xorg-server' 'xulrunner' 'zip')
makedepends=('apache-ant' 'bison' 'ccache' 'cairo' 'curl' 'findutils' 'flex' 'gawk' 'gcc' 'pam' 'perl-archive-zip' 'pkgconfig' 'tcsh' 'libidl2')
replaces=('openoffice-base' 'openoffice-cvs')
conflicts=('openoffice-base' 'openoffice-cvs')
provides=('openoffice-base' 'openoffice-cvs')
source=(http://ftp-1.gwdg.de/pub/$pkgname/stable/$pkgver/OOo_${pkgver}_src.tar.gz intros-config_office.diff intro.bmp system-xmlsec.diff readlicense_oo-xml-apis.diff nomozplug.diff session-management.diff leak-sal-file.diff gui-insensitive.diff check-buttons-rendering-fix.diff fontconfig-substitute.diff vcl-gnome-screensaver-poke.diff default-no-registration.diff framework-layered-accelerators.diff fpicker-common-scp2.diff fpicker-kde-dialog.diff about-build-ver-readability.diff default-system-fpicker.diff soffice-detect-mozilla-certificates.diff size-vcl-fontcfg.diff sc-default-color-modify.diff http://go-oo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz)
build() {
# Some workarounds
unset LS_COLORS
#unset MAKEFLAGS ## Temp workaround
export MAKEFLAGS="-j 1"
[ -r /etc/profile.d/qt.sh ] && . /etc/profile.d/qt.sh ## Workaround for people with Qt3 and Qt4 installed. We need to use Qt3 by default if we are going to build with --enable -kde
cd $startdir/src
mv $OO_milestone OOo2
mv hunspell OOo2
cd OOo2
chmod +wX -R ./svx
# Apply patches
patch -p0 < ../intros-config_office.diff || return 1
patch -p0 < ../system-xmlsec.diff || return 1
patch -p0 < ../readlicense_oo-xml-apis.diff || return 1
patch -p0 < ../nomozplug.diff || return 1
patch -p0 < ../session-management.diff || return 1
patch -p0 < ../leak-sal-file.diff || return 1 # remove this patch in 2.1.0
patch -p0 < ../gui-insensitive.diff || return 1
patch -p0 < ../check-buttons-rendering-fix.diff || return 1
patch -p0 < ../fontconfig-substitute.diff || return 1
patch -p0 < ../vcl-gnome-screensaver-poke.diff || return 1
patch -p0 < ../default-no-registration.diff || return 1
patch -p0 < ../framework-layered-accelerators.diff || return 1
patch -p0 < ../fpicker-common-scp2.diff || return 1
patch -p0 < ../fpicker-kde-dialog.diff || return 1
patch -p0 < ../about-build-ver-readability.diff || return 1
patch -p0 < ../default-system-fpicker.diff || return 1
patch -p0 < ../soffice-detect-mozilla-certificates.diff || return 1
patch -p0 < ../size-vcl-fontcfg.diff || return 1
patch -p0 < ../sc-default-color-modify.diff || return 1
# Enter config dir
cd config_office/
# Need to recreate the configure script because of patches
autoconf
# ccache
export CCACHE_HARDLINK=1
export CC="ccache gcc"
export CXX="ccache g++"
export CPP="ccache cpp"
# Configuring
./configure --disable-gnome-vfs --with-system-fonts --with-system-neon --with-jdk-home=/opt/j2sdk1.4.2 --with-java-home=/opt/j2re1.4.2 --with-system-python --with-system-xrender-headers --with-system-curl --without-docdir --with-arch="x86_64" --with-system-sane-header --disable-mono --with-package-format=native --without-nas --with-system-freetype --with-system-jpeg --with-system-zlib --with-system-libxml --with-xulrunner --with-system-mozilla --with-system-expat --with-system-sndfile --with-vendor="Archlinux Community" --disable-qadevooo --with-system-stdlibs --disable-odk --with-system-libwpd --with-system-xmlsec --without-myspell-dicts --enable-hunspell --with-system-hunspell --with-build-version="2.0.4 Archlinux build-3" --enable-cairo --with-system-cairo --enable-evolution2 --disable-canvas --with-system-boost --with-gcc-speedup=ccache
## NOTES
# 1. We need java bindings for db if we are to use --with-system-db so we don't.
# Compiling
cd ..
./bootstrap || return 1
source LinuxX86-64Env.Set.sh
export EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
dmake || return 1
# install binaries
cp -R instsetoo_native/unxlngi6.pro/OpenOffice/native/install/en-US/linux-2.6-intel/buildroot/* $startdir/pkg/
cd $startdir/pkg/opt
mv openoffice.org2.0 openoffice
# replace original splash intro screen with one provided by shastry
rm -rf $startdir/pkg/opt/openoffice/program/intro.bmp
install -D -m644 cp $startdir/src/intro.bmp $startdir/pkg/opt/openoffice/program/
# prepare filesystem entries
mkdir -p $startdir/pkg/usr/{bin,share/applications}
mkdir -p $startdir/pkg/usr/share/icons/{HighContrast,hicolor,locolor}
# make symlinks
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# install shortcuts
cp $startdir/pkg/opt/openoffice/share/xdg/*.desktop $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix icons in shortcuts
sed -i -e 's|Icon=openofficeorg-20-base|Icon=base|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-calc|Icon=ooocalc|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-draw|Icon=draw|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-impress|Icon=impress|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-math|Icon=math|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-writer|Icon=writer|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-printeradmin.png|Icon=printeradmin|g' *.desktop
# 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
rm -rf $startdir/pkg/usr/share/icons/*/*/CVS
rm -rf $startdir/pkg/usr/share/icons/*/*/*/CVS
## just in case icon calc is used by calculator :)
find $startdir/pkg/usr/share/icons -type d -name apps -exec mv {}/calc.png {}/ooocalc.png ;
# fix ownership and permissions
chown root.root -R $startdir/pkg/
chmod +rX -R $startdir/pkg/usr
}
Offline
same hunspell error for above PKGBUILD too...
Offline
same hunspell error for above PKGBUILD too...
Have you tried with gcj?
Offline
disabling hunspell shit and trying now.
Offline
this PKGBUILD will be a work in progress for a while, as we discover configure options which we need/don't need,and is nowhere close to final...but for the most part, OOo works now (with printing too). We now need to decide on how to integrate this into the regular PKGBUILD's provided it works for most people. Ill upload the pkg tomorrow to a testing area.
some notes:
1) I used blackdown jre/jdk to build this. sun java was just miserable to build with, and I've come across some articles saying 1.5 is broken in x86_64. you need blackdown j2re/j2sdk in opt for this PKGBUILD to work
2) The program seems to crash on exit, but KCrash shit doesnt pop up.
3) I uninstalled blackdown and OOo had no problem recognizing Sun Java
# Maintainer: Hussam Al-Tayeb <ht990332>
pkgname=openoffice-base
pkgver=2.0.4
OO_milestone=OOD680_m5
pkgrel=3
pkgdesc="OpenOffice.org - a free office suite"
url="http://www.openoffice.org"
depends=('boost' 'cups' 'curl' 'desktop-file-utils' 'expat' 'fontconfig' 'freetype2' 'gtk2' 'hunspell' 'imagemagick' 'libxaw' 'libxml2' 'libart-lgpl' 'libsndfile' 'libstdc++5' 'libpng' 'neon' 'nss' 'perl' 'perl-archive-zip' 'python' 'sane' 'unzip' 'libwpd' 'xmlsec' 'xorg-server' 'xulrunner' 'zip')
makedepends=('apache-ant' 'bison' 'ccache' 'cairo' 'curl' 'findutils' 'flex' 'gawk' 'gcc' 'pam' 'perl-archive-zip' 'pkgconfig' 'tcsh' 'libidl2')
replaces=('openoffice-base' 'openoffice-cvs')
conflicts=('openoffice-base' 'openoffice-cvs')
provides=('openoffice-base' 'openoffice-cvs')
source=(http://ftp-1.gwdg.de/pub/$pkgname/stable/$pkgver/OOo_${pkgver}_src.tar.gz intros-config_office.diff intro.bmp system-xmlsec.diff readlicense_oo-xml-apis.diff nomozplug.diff session-management.diff leak-sal-file.diff gui-insensitive.diff check-buttons-rendering-fix.diff fontconfig-substitute.diff vcl-gnome-screensaver-poke.diff default-no-registration.diff framework-layered-accelerators.diff fpicker-common-scp2.diff fpicker-kde-dialog.diff about-build-ver-readability.diff default-system-fpicker.diff soffice-detect-mozilla-certificates.diff size-vcl-fontcfg.diff sc-default-color-modify.diff)
build()
{
# Some workarounds
unset LS_COLORS
#unset MAKEFLAGS ## Temp workaround
export MAKEFLAGS="-j 1"
[ -r /etc/profile.d/qt.sh ] && . /etc/profile.d/qt.sh ## Workaround for people with Qt3 and Qt4 installed. We need to use Qt3 by default if we are going to build with --enable -kde
cd $startdir/src
mv $OO_milestone OOo2
#mv hunspell OOo2
cd OOo2
chmod +wX -R ./svx
# Apply patches
patch -p0 < ../intros-config_office.diff || return 1
patch -p0 < ../system-xmlsec.diff || return 1
patch -p0 < ../readlicense_oo-xml-apis.diff || return 1
patch -p0 < ../nomozplug.diff || return 1
patch -p0 < ../session-management.diff || return 1
patch -p0 < ../leak-sal-file.diff || return 1 # remove this patch in 2.1.0
patch -p0 < ../gui-insensitive.diff || return 1
patch -p0 < ../check-buttons-rendering-fix.diff || return 1
patch -p0 < ../fontconfig-substitute.diff || return 1
patch -p0 < ../vcl-gnome-screensaver-poke.diff || return 1
patch -p0 < ../default-no-registration.diff || return 1
patch -p0 < ../framework-layered-accelerators.diff || return 1
patch -p0 < ../fpicker-common-scp2.diff || return 1
patch -p0 < ../fpicker-kde-dialog.diff || return 1
patch -p0 < ../about-build-ver-readability.diff || return 1
patch -p0 < ../default-system-fpicker.diff || return 1
patch -p0 < ../soffice-detect-mozilla-certificates.diff || return 1
patch -p0 < ../size-vcl-fontcfg.diff || return 1
patch -p0 < ../sc-default-color-modify.diff || return 1
# Enter config dir
cd config_office/
# Need to recreate the configure script because of patches
autoconf
# ccache
export CCACHE_HARDLINK=1
export CC="ccache gcc"
export CXX="ccache g++"
export CPP="ccache cpp"
# Configuring
./configure --disable-gnome-vfs --with-system-fonts --with-system-neon --with-jdk-home=/opt/j2sdk1.4.2 --with-java-home=/opt/j2re1.4.2 --with-system-python --with-system-xrender-headers --with-system-curl --without-docdir --with-arch="x86_64" --with-system-sane-header --disable-mono --with-package-format=native --without-nas --with-system-freetype --with-system-jpeg --with-system-zlib --with-system-libxml --with-system-expat --with-system-sndfile --with-vendor="Archlinux Community" --disable-qadevooo --with-system-stdlibs --disable-odk --with-system-libwpd --with-system-xmlsec --without-myspell-dicts --with-build-version="2.0.4 Archlinux build-3" --enable-cairo --with-system-cairo --enable-evolution2 --disable-canvas --with-system-boost --with-gcc-speedup=ccache --with-system-mozilla --with-xulrunner
# NOTES
# 1. We need java bindings for db if we are to use --with-system-db so we don't.
# Compiling
cd ..
./bootstrap || return 1
source LinuxX86-64Env.Set.sh
export EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
dmake || return 1
# install binaries
cp -R instsetoo_native/unxlngx6.pro/OpenOffice/native/install/en-US/linux-2.6-x86_64/buildroot/* $startdir/pkg/
cd $startdir/pkg/opt
mv openoffice.org2.0 openoffice
# replace original splash intro screen with one provided by shastry
rm -rf $startdir/pkg/opt/openoffice/program/intro.bmp
install -D -m644 cp $startdir/src/intro.bmp $startdir/pkg/opt/openoffice/program/
# prepare filesystem entries
mkdir -p $startdir/pkg/usr/{bin,share/applications}
mkdir -p $startdir/pkg/usr/share/icons/{HighContrast,hicolor,locolor}
# make symlinks
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# install shortcuts
cp $startdir/pkg/opt/openoffice/share/xdg/*.desktop $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix icons in shortcuts
sed -i -e 's|Icon=openofficeorg-20-base|Icon=base|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-calc|Icon=ooocalc|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-draw|Icon=draw|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-impress|Icon=impress|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-math|Icon=math|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-writer|Icon=writer|g' *.desktop
sed -i -e 's|Icon=openofficeorg-20-printeradmin.png|Icon=printeradmin|g' *.desktop
# 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
rm -rf $startdir/pkg/usr/share/icons/*/*/CVS
rm -rf $startdir/pkg/usr/share/icons/*/*/*/CVS
## just in case icon calc is used by calculator :)
find $startdir/pkg/usr/share/icons -type d -name apps -exec mv {}/calc.png {}/ooocalc.png ;
# fix ownership and permissions
chown root.root -R $startdir/pkg/
chmod +rX -R $startdir/pkg/usr
}
Thanks very much to Hussam, Pierre and everyone else for helping out!
Offline
EDIT: unxlngi6.pro chnaged to unxlngx6.pro for x86_64
Offline
please test this package and post back here
Offline
please test this package and post back here
I've just tested installed it, and it seems much snappier than the old pkg! Thanks! Like you mentioned earlier it crashes on exit, but it seems not to break anything...
Just for reference, here is the error messages after the crash:
sh: crash_report: command not found
Fatal exception: Signal 11
Stack:
/opt/openoffice/program/libuno_sal.so.3[0x2b3b66859f8a]
/opt/openoffice/program/libuno_sal.so.3[0x2b3b6685a0c5]
/opt/openoffice/program/libuno_sal.so.3[0x2b3b6685a159]
/lib/libpthread.so.0[0x2b3b6754dcc0]
/lib/libc.so.6[0x2b3b67d2614b]
/lib/libc.so.6[0x2b3b67d27f9d]
/lib/libc.so.6(malloc+0x7d)[0x2b3b67d299ad]
/opt/openoffice/program/libdb-4.2.so(__os_malloc+0x5a)[0x2aaab2e39333]
/opt/openoffice/program/libdb-4.2.so(__memp_sync_int+0x83)[0x2aaab2e37d52]
/opt/openoffice/program/libdb-4.2.so(__memp_sync+0x10d)[0x2aaab2e37a21]
/opt/openoffice/program/libdb-4.2.so[0x2aaab2e0d77b]
/opt/openoffice/program/libdb-4.2.so(__dbenv_close+0xb8)[0x2aaab2e0d4ef]
/opt/openoffice/program/libdb-4.2.so(__db_close+0x198)[0x2aaab2ddd7a8]
/opt/openoffice/program/libdb-4.2.so(__db_close_pp+0x147)[0x2aaab2df1c7a]
/opt/openoffice/program/libdb-4.2.so[0x2aaab2e47f6d]
/opt/openoffice/program/libucpchelp1.so[0x2aaab2c1c260]
/opt/openoffice/program/libucpchelp1.so[0x2aaab2c149bb]
/opt/openoffice/program/libucpchelp1.so[0x2aaab2bef771]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3(_ZN4cppu23OFactoryComponentHe lper7disposeEv+0xb8)[0x2b3b665bcb58]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3(_ZN4cppu16OComponentHelper7re leaseEv+0x90)[0x2b3b665c6950]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3[0x2b3b665c07c9]
/opt/openoffice/program/servicemgr.uno.so[0x2aaaad11a336]
/opt/openoffice/program/servicemgr.uno.so[0x2aaaad112d42]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3(_ZN4cppu27WeakComponentImplHe lperBase7disposeEv+0x9c)[0x2b3b665ab87c]
/opt/openoffice/program/servicemgr.uno.so[0x2aaaad1096b5]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3(_ZN4cppu16ComponentContext9di sposingEv+0x466)[0x2b3b665c14f6]
/opt/openoffice/program/libuno_cppuhelpergcc3.so.3(_ZN4cppu27WeakComponentImplHe lperBase7disposeEv+0x9c)[0x2b3b665ab87c]
/opt/openoffice/program/soffice.bin(_ZN7desktop7Desktop32DestroyApplicationServi ceManagerERN3com3sun4star3uno9ReferenceINS3_4lang20XMultiServiceFactoryEEE+0x1a9 )[0x434ca9]
/opt/openoffice/program/soffice.bin(_ZN7desktop7Desktop6DeInitEv+0x31)[0x41cdc1]
/opt/openoffice/program/libvcl680lx.so(_Z9DeInitVCLv+0x253)[0x2b3b65103143]
/opt/openoffice/program/libvcl680lx.so[0x2b3b65103a94]
/opt/openoffice/program/libvcl680lx.so(_Z6SVMainv+0x25)[0x2b3b65103bd5]
/opt/openoffice/program/soffice.bin(sal_main+0x3a)[0x41b6fa]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b3b67cda0a4]
/opt/openoffice/program/soffice.bin(_ZN6Window11RequestHelpERK9HelpEvent+0x39)[0 x41b629]
/usr/bin/soffice: line 254: 3455 Afbrudt (SIGABRT) "$sd_prog/$sd_binary" "$@"
Offline
Next, I'd like to try building this without these options
--disable-canvas --with-system-boost
but I don't have the time to look into this now..
Offline
Where are you getting xmlsec from, are you just building from source?
Thanks.
Offline
xmlsec from AUR
Offline