[th] openoffice

Szymon Siwek sls w poczta.wp.pl
Pią, 21 Lip 2006, 19:50:53 CEST


Witam!

Właśnie zbudowałem openoffice w środowisku TH. Robi wrażenie (budowa).
Kilka uwag do najnowszego speca:
- Przy normalnym "rpmbuild -ba" potrzebowałem 12.5 GB.
- Mam freetype-2.2.1-1 i zbudowało się bez łatania.
- Bcond gcc4 nie jest nigdzie używany.
- Musiałem załatać łatę na mdbtools.
- W th STLport jest w wersji 5xx, a openoffice upiera się przy STLport4
- brakuje breq: xorg-xserver-Xvfb
- w configure trzeba dodać --with-firefox do --with-system-mozilla

Powyższe zostało uwzględnione w dwóch załączonych łatkach.
Mniej przyjemne jest to, że musiałem budować starszym gcc (3.4.3).
Gdy używałem gcc-4.1.2, budowa dosyć szybko kończyła się:

#v+
/usr/include/stlport/stl/_alloc.h:503: error: no matching function for call to '__stl_alloc_rebind(sal::Allocator<rtl::OUString>&, void**)'
#v-

-- 
Szymon Siwek
Los nikomu nie szczędzi rozczarowań.
-------------- następna część ---------
Index: openoffice.org.spec
===================================================================
RCS file: /cvsroot/SPECS/openoffice.org.spec,v
retrieving revision 1.605
diff -u -r1.605 openoffice.org.spec
--- openoffice.org.spec	11 Jul 2006 12:17:39 -0000	1.605
+++ openoffice.org.spec	21 Jul 2006 17:02:31 -0000
@@ -1,10 +1,8 @@
 # $Revision: 1.605 $, $Date: 2006/07/11 12:17:39 $
 # NOTE:
 #	- normal build requires little less than 4GB of disk space
-#	- full debug build requires about 9GB of disk space
+#	- full debug build requires about 12.5GB of disk space
 # TODO:
-#	- fix build with freetype 2.2.x:
-#	  http://www.openoffice.org/nonav/issues/showattachment.cgi/36573/vcl-freetype-2.2.x.diff
 #	- drop requirement on nas-devel
 #	- fix locale names and other locale related things
 #	- --with-system-myspell + myspell package as in Debian
@@ -31,7 +29,6 @@
 %bcond_with	java		# Java support (enables help support and improves functionality)
 %bcond_with	vfs		# Enable GNOME VFS and Evolution 2 support
 %bcond_with	mono
-%bcond_with	gcc4		# use gcc4 patch (breaks build with gcc 3.3.x)
 %bcond_without	mozilla		# without mozilla
 
 ## build for TH
@@ -92,13 +89,16 @@
 Patch101:	%{name}-64bit-inline.diff
 Patch102:	%{name}-build-pld-splash.diff
 Patch103:	%{name}-sfx2.badscript.diff
+Patch104:	%{name}-gmdb_prototypes.diff
 URL:		http://www.openoffice.org/
 BuildRequires:	ImageMagick
-BuildRequires:	STLport-devel >= 4.5.3-6
 %if %{with th}
+BuildRequires:	STLport4-devel >= 4.5.3-6
 BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-xserver-Xvfb
 BuildRequires:	mozilla-firefox-devel
 %else
+BuildRequires:	STLport-devel >= 4.5.3-6
 %if %{with mozilla}
 BuildRequires:	mozilla-devel >= 5:1.7.6-2
 %endif
@@ -1785,6 +1785,7 @@
 
 # teach configure.in about PLD
 %patch2 -p1
+%patch104 -p1
 
 # 64 bit related patches
 install %{PATCH100} patches/64bit
@@ -1869,6 +1870,9 @@
 	--without-system-neon \
 %if %{with mozilla}
 	--with-system-mozilla \
+%if %{with th}
+	--with-firefox \
+%endif
 %else
 	--disable-mozilla \
 %endif
-------------- następna część ---------
--- ooo-build-ooc680-m7/patches/src680/mdbtools.diff.orig	2006-07-19 22:05:39.000000000 +0000
+++ ooo-build-ooc680-m7/patches/src680/mdbtools.diff	2006-07-19 22:08:04.000000000 +0000
@@ -1,6 +1,6 @@
 --- /dev/null	2005-03-20 01:06:14.000000000 +0530
 +++ mdbtools/mdbtools-0.6pre1.patch	2005-07-29 11:03:56.000000000 +0530
-@@ -0,0 +1,118 @@
+@@ -0,0 +1,137 @@
 +--- Makefile.am	2002-12-27 16:09:02.000000000 +0100
 ++++ misc/build/mdbtools-0.6pre1/src/Makefile.am	2005-08-01 17:52:49.000000000 +0200
 +@@ -1,3 +1,3 @@
@@ -44,6 +44,14 @@
 + }
 +--- table_export.c	2003-01-14 18:37:44.000000000 +0100
 ++++ misc/build/mdbtools-0.6pre1/src/gmdb2/table_export.c	2005-08-01 19:05:50.000000000 +0200
++@@ -37,6 +37,7 @@
++ #define NEVER "Never"
++ #define AUTOMAT "Automatic (where necessary)"
++ 
+++void gmdb_table_export_populate_dialog(GladeXML *xml);
++ void
++ gmdb_print_quote(FILE *outfile, int need_quote, char quotechar, char *colsep, char *str)
++ {
 +@@ -49,6 +49,7 @@
 + 	}
 + }
@@ -119,3 +127,14 @@
 + 	int elem = 0;
 + 	int len, start, i;
 + 
++--- mdbtools-0.6pre1/src/gmdb2/sql.c.orig	2006-07-19 18:13:36.000000000 +0000
+++++ misc/build/mdbtools-0.6pre1/src/gmdb2/sql.c	2005-08-01 19:05:50.000000000 +0200
++@@ -38,6 +38,8 @@
++ 
++ void gmdb_sql_tree_populate(MdbHandle *mdb, GladeXML *xml);
++ void gmdb_sql_load_query(GladeXML *xml, gchar *file_path);
+++void gmdb_sql_save_query(GladeXML *xml, gchar *file_path);
+++void gmdb_sql_save_as_cb(GtkWidget *w, GladeXML *xml);
++ 
++ void
++ gmdb_sql_close_all()


Więcej informacji o liście dyskusyjnej pld-devel-pl