Bug 77290

Summary: OOo2 moz needs GTK2
Product: Ports & Packages Reporter: Adam Weinberger <adamw>
Component: Individual Port(s)Assignee: freebsd-openoffice (Nobody) <openoffice>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Adam Weinberger freebsd_committer 2005-02-09 02:40:22 UTC
	OOo2's mozilla uses GTK2, but the OOo2 port still believes that
	it uses gtk1.2. This means that: a) gtk12/glib12 are built and
	installed for no reason; and b) the mozilla will not build,
	because it is missing dependencies.

	The error log below also shows another bug in the port: even if
	mozilla build fails, it happily tries to install it anyway.

	The following is the tail end of an OOo2 build on a clean system
	with only WITHOUT_CCACHE defined (I've starred important lines):

*	checking for gtk+-2.0 >= 1.3.7... yes
	checking MOZ_GTK2_CFLAGS... -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/u r/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/l cal/include/freetype2 -I/usr/local/include  
	checking MOZ_GTK2_LIBS... -Wl,--export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -lgtk-x11 2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXcursor -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft 1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lm  lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv  
	checking for XpGetPrinterList in -lXp... yes
*	configure: warning: Cannot build gnomevfs without gnome-vfs-2 toolkit. Removing gnomevfs f om MOZ_EXTENSIONS.
	checking for gssapi.h... yes
	checking for gss_init_sec_context in -lgss... no
	checking for gss_init_sec_context in -lgssapi... yes
	checking for gssapi/gssapi_generic.h... no
	checking for valid optimization flags... yes
	checking for __cxa_demangle... yes
	checking for gcc -pipe support... yes
	checking whether compiler supports -Wno-long-long... yes
	checking whether C++ compiler has -pedantic long long bug... no
	checking for correct overload resolution with const and templates... no
	checking for libIDL-2.0 >= 0.8.0... gnome-config: not found
	gnome-config: not found
	Package libIDL-2.0 was not found in the pkg-config search path.
	Perhaps you should add the directory containing `libIDL-2.0.pc'
	to the PKG_CONFIG_PATH environment variable
	No package 'libIDL-2.0' found

*	configure: error: Library requirements (libIDL-2.0 >= 0.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
	dmake:  Error code 1, while making './unxfbsd.pro/misc/build/so_configured_ooo_mozab'
	'---* tg_merge.mk *---'

	ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice-2.0-devel/work/moz.runtime
*	echo ./unxfbsd.pro/bin/mozruntime.zip>& /dev/null
	cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libnspr4.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libnspr4.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libplc4.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libplc4.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libplds4.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libplds4.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libxpcom.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libxpcom.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libxpcom_compat.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libxpcom_compat.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libnss3.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libnss3.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libssl3.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libssl3.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libsoftokn3.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libsoftokn3.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libsmime3.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libsmime3.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libmozjs.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libmozjs.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libmozz.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libmozz.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libmsgbaseutil.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libmsgbaseutil.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libldap50.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libldap50.so && cp -f ./unxfbsd.pro/misc/build/mozilla/dist/bin/libprldap50.so \
		./unxfbsd.pro/misc/FREEBSDGCCIruntime/libprldap50.so && \
		echo >& /dev/null
	cp: ./unxfbsd.pro/misc/build/mozilla/dist/bin/libnspr4.so: No such file or directory
	dmake:  Error code 1, while making './unxfbsd.pro/misc/build/so_moz_runtime_files'
	'---* tg_merge.mk *---'
	*** Error code 255
	Stop in /usr/ports/editors/openoffice-2.0-devel.


Remove the superfluous gtk12/glib12 requirements, and change them
	to things like libIDL that reflect what mozilla needs to build. The
	moz build probably needs a couple other things. It's a picky beast.
	cd /usr/ports/editors/openoffice-2.0-devel ; make 

	Try building OpenOffice-2.0 in a clean jail sometime.
Comment 1 Adam Weinberger freebsd_committer 2005-02-09 02:40:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->openoffice

Over to maintainers.
Comment 2 Maho Nakata freebsd_committer 2005-06-19 03:36:57 UTC
State Changed
From-To: open->closed

Gtk1 is needed since libIDL dependency, but OOo2 still 
needs gtk2 and mozilla is happy with gtk2, so dependency of 
gtk1 and orbit are now redundant. 
thanks for your report.