RFT: openoffice.org tweaks to speed up startup

Jakub Jelinek jakub at redhat.com
Sun Oct 26 21:58:07 UTC 2003


On Sun, Oct 26, 2003 at 01:38:52PM +0100, Peter van Egdom wrote:
> It seems that with the tweaks Jakub did to OpenOffice.org the startup
> time has decreased with a few seconds on my machine, which is nice.

Thanks for the testing.

> ps. I see some errors in "/var/log/prelink.log" :
> 
> Prelinking /usr/lib/openoffice/program/getstyle-gnome /usr/sbin/prelink:
> /usr/lib/openoffice/program/getstyle-gnome: Not enough room to add
> .dynamic entry
> 
> Prelinking /usr/lib/openoffice/program/msgbox-gnome /usr/sbin/prelink:
> /usr/lib/openoffice/program/msgbox-gnome: Not enough room to add
> .dynamic entry

These are because those binaries were apparently not rebuilt on FC1
(well, it would be enough to be built on even RHL7.2 I think), but
came in binary form from OO1.1 upstream.

Here is an untested openoffice.org.spec patch which should fix this:

--- openoffice.org.spec.jj2	Sun Oct 26 06:09:58 2003
+++ openoffice.org.spec	Sun Oct 26 16:53:09 2003
@@ -63,7 +63,8 @@ BuildRequires:	pam-devel, perl, sed, tcs
 BuildRequires:	mozilla, XFree86-devel, XFree86-libs, bzip2
 BuildRequires:	bison, findutils, make >= 3.79.1, tar, freetype-devel
 BuildRequires:	gcc >= 3.2.2, gcc-c++ >= 3.2.2, libstdc++-devel >= 3.2.2
-BuildRequires: mozilla-devel, db4-devel >= 4.0, libart_lgpl >= 2.3.13
+BuildRequires:	mozilla-devel, db4-devel >= 4.0, libart_lgpl >= 2.3.13
+BuildRequires:	gtk2-devel
 
 %if %{build_fedora}
 BuildRequires: startup-notification-devel
@@ -354,6 +355,17 @@ mkdir -p %{buildroot}%{_libdir}/openoffi
   tar fxvj %{SOURCE6}
 )
 
+cd vcl/unx/source/gdi/getstyle
+eval $(eval echo `sed -n 's/strip/:/;s/^ \*  \$(CC)/gcc -O2 -g/p' getstyle-gnome.c` \
+  | sed 's/-Wl,--export-dynamic//')
+cd -
+cd vcl/unx/source/gdi/native-msgbox
+eval $(eval echo `sed -n 's/strip/:/;s/^ \*  \$(CC)/gcc -O2 -g/p' msgbox.c` \
+  | sed 's/-Wl,--export-dynamic//;s/msgbox-gnome.c/msgbox.c/;s/msgboc-gnome/msgbox-gnome/')
+cd -
+cp -a vcl/unx/source/gdi/getstyle/getstyle-gnome %{buildroot}%{_libdir}/openoffice/program/
+cp -a vcl/unx/source/gdi/getstyle/msgbox-gnome %{buildroot}%{_libdir}/openoffice/program/
+
 %if %{build_fedora}
 # Make soffice.bin more prelink friendly.
 # Every soffice.bin invocation with private:factory/s* argument

	Jakub





More information about the fedora-test-list mailing list