From nobody@FreeBSD.org  Sat Mar 22 04:59:47 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E5B8C1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Mar 2008 04:59:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E38378FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Mar 2008 04:59:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2M4xgYa000664
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Mar 2008 04:59:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2M4xgAQ000663;
	Sat, 22 Mar 2008 04:59:42 GMT
	(envelope-from nobody)
Message-Id: <200803220459.m2M4xgAQ000663@www.freebsd.org>
Date: Sat, 22 Mar 2008 04:59:42 GMT
From: Dwayne MacKinnon <dmk@ncf.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: (workaround) openoffice.org-2.3.1 hangs with Glib errors
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121953
>Category:       ports
>Synopsis:       (workaround) openoffice.org-2.3.1 hangs with Glib errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    openoffice
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 22 05:00:03 UTC 2008
>Closed-Date:    Tue Apr 08 00:44:37 UTC 2008
>Last-Modified:  Tue Apr 08 00:44:37 UTC 2008
>Originator:     Dwayne MacKinnon
>Release:        FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD chiron.lan 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Tue Mar  4 10:35:40 EST 2008     root@chiron.lan:/usr/obj/usr/src/sys/CHIRON  i386

>Description:
I recently set up my FreeBSD machine with multiple user accounts for the first time to accomodate some house guests. When I did so, I discovered that openoffice.org-2.3.1 would hang when it attempted to open a document of any kind. Running it from the console produced these glib errors:

(process:82983): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, use IA__g_type_init() prior to this function

(process:82983): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:82983): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

This occured for my new users only; my own account was unaffected, So, I attempted to track down the problem. I soon discovered that it was my .openoffice.org-2 directory with its config information that was the key.

I tracked the problem down to .openoffice.org2/user/config/soffice.cfg/modules directory.

In my original account, there were subdirectories for scalc and swriter as well as the StartModule directory. In the new account, neither of those subdirectories (scalc or swriter) existed.

Copying either directory to .openoffice.org2/user/config/soffice.cfg/modules solved the problem.
>How-To-Repeat:
Install openoffice.org-2.3.1. In a new user account, open the program, and after filling out the initial information, try to open a document.
>Fix:
I only have the workaround I mentioned above; I will be happy to provide the contents of either directory if people believe it would be useful.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->openoffice 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 22 06:12:32 UTC 2008 
Responsible-Changed-Why:  
Make this a ports PR and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121953 

From: linimon@lonesome.com (Mark Linimon)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/121953: (workaround) openoffice.org-2.3.1 hangs with Glib errors
Date: Tue, 1 Apr 2008 19:03:36 -0500

 ----- Forwarded message from Marcin Cieslak <saper@system.pl> -----
 
 Can you try adding --with-system-zlib to your port Makefile
 CONFIGURE_ARGS and recompile OpenOffice?
 
 --- Makefile    28 Mar 2008 22:26:03 -0000      1.295
 +++ Makefile    31 Mar 2008 23:34:46 -0000
 @@ -140,7 +140,8 @@
  CONFIGURE_ARGS+=       --with-gnu-cp=${LOCALBASE}/bin/gcp              \
                         --with-gnu-patch=${LOCALBASE}/bin/gpatch        \
                         --enable-crashdump=yes                          \
 -                       --enable-symbols=SMALL
 +                       --enable-symbols=TRUE                           \
 +                       --with-system-zlib
  .if ${ARCH} == amd64
  WITHOUT_MOZILLA=       yes
  LIB_DEPENDS+=          boost_regex:${PORTSDIR}/devel/boost
 
 I think this is it:
 
 http://lists.freebsd.org/pipermail/freebsd-openoffice/2007-December/003453.html
 
 --Marcin
 
 ----- End forwarded message -----

From: Marcin Cieslak <saper@SYSTEM.PL>
To: Dwayne MacKinnon <dmk@ncf.ca>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/121953: (workaround) openoffice.org-2.3.1 hangs with Glib
 errors
Date: Sat, 05 Apr 2008 12:38:54 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig5AFB700EE76ADD41C867A9F7
 Content-Type: text/plain; charset=ISO-8859-2; format=flowed
 Content-Transfer-Encoding: quoted-printable
 
 Dwayne MacKinnon wrote:
 
 >> --- Makefile    28 Mar 2008 22:26:03 -0000      1.295
 >> +++ Makefile    31 Mar 2008 23:34:46 -0000
 >> @@ -140,7 +140,8 @@
 >>  CONFIGURE_ARGS+=3D       --with-gnu-cp=3D${LOCALBASE}/bin/gcp        =
       \
 >>                         --with-gnu-patch=3D${LOCALBASE}/bin/gpatch    =
     \
 >>                         --enable-crashdump=3Dyes                      =
     \
 >> -                       --enable-symbols=3DSMALL
 >> +                       --enable-symbols=3DTRUE                       =
     \
 >> +                       --with-system-zlib
 >>  .if ${ARCH} =3D=3D amd64
 >>  WITHOUT_MOZILLA=3D       yes
 >>  LIB_DEPENDS+=3D          boost_regex:${PORTSDIR}/devel/boost
 >>
 >> I think this is it:
 >>
 >> http://lists.freebsd.org/pipermail/freebsd-openoffice/2007-December/00=
 3453.
 >> html
 >>
 >> --Marcin
 >=20
 > Hello Marcin,
 >=20
 > I recompiled with the suggested config flags, and didn't get any more u=
 seful=20
 > information. However, I experimented some more, and narrowed down the=20
 > behavior better.
 >=20
 > The problem seems to involve this file:=20
 > $HOME/.config/autostart/qstart-desktop. No matter what, the first time =
 you=20
 > run openoffice.org-2.4  with a new user (ie no .openoffice.org2 directo=
 ry)=20
 > the program will hang with the errors I listed when you attempt to open=
  a=20
 > file.
 >=20
 > If the qstart.desktop file is left as is (it's a symbolic link=20
 > to /usr/local/openoffice.org-2.4.0/share/xdg/qstart.desktop), the file =
 will=20
 > hang with the errors I listed every time you try to open a file. Howeve=
 r, if=20
 > you remove the link, or set it to a non-existant file, the program will=
  work=20
 > after the first time, and work thereafter with no problems.
 
 What compilation options are you using? I assume you have WITH_KDE=3Dyes,=
 =20
 what else? Can you try turning the quick start feature off?
 
 On my OOO 2.4 without KDE integration everything works fine.
 
 --=20
                << Marcin Cieslak // saper@system.pl >>
 
 
 --------------enig5AFB700EE76ADD41C867A9F7
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iQCVAwUBR/dWxT2W2v2wY27ZAQOyCgP8Dh8fvUOqNB5nSOBGGegYgOi+x13XQzFC
 6N1G5VrFwU6zU0QnZP3fRMIuw9EwKO4qNj9qUXR9Rdur7V0mSpqvSuMNBi3G3yB+
 Z7rPpVaRWWd5pKJ2qpPTTsEQXc+tbEYJxxuIzIS77dvblDWmmT9oo1iW8BoIYqHH
 7XEWmO3MLOw=
 =Ynk4
 -----END PGP SIGNATURE-----
 
 --------------enig5AFB700EE76ADD41C867A9F7--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/121953: commit references a PR
Date: Sun,  6 Apr 2008 05:11:27 +0000 (UTC)

 maho        2008-04-06 05:11:20 UTC
 
   FreeBSD ports repository
 
   Modified files:
     editors/openoffice.org-2 Makefile 
     editors/openoffice.org-2/files Makefile.knobs 
                                    Makefile.localized 
     editors/openoffice.org-2-RC Makefile 
     editors/openoffice.org-2-RC/files Makefile.knobs 
                                       Makefile.localized 
     editors/openoffice.org-2-devel Makefile 
     editors/openoffice.org-2-devel/files Makefile.knobs 
                                          Makefile.localized 
     editors/openoffice.org-3-devel Makefile 
     editors/openoffice.org-3-devel/files Makefile.knobs 
                                          Makefile.localized 
                                          Makefile.others 
   Added files:
     editors/openoffice.org-2/files patch-i75190 
     editors/openoffice.org-2-RC/files patch-i75190 
     editors/openoffice.org-2-devel/files patch-i75190 
     editors/openoffice.org-3-devel/files patch-i75190 
   Log:
   1. For all language build "all" to "alllangs".
   2. Fix hang "Glib bug".
      http://qa.openoffice.org/issues/show_bug.cgi?id=75190
      Bump port revision for openoffice.org-2 port accordingly.
   3. Fix language pack builds for openoffice.org-3-devel port.
   
   PR: 121953 (2)
   Submitted by:   Dwayne MacKinnon and Marcin Cieslak  (will be SCAed; saperski@openoffice.org) (2)
   
   Revision  Changes    Path
   1.330     +2 -2      ports/editors/openoffice.org-2-RC/Makefile
   1.51      +4 -4      ports/editors/openoffice.org-2-RC/files/Makefile.knobs
   1.17      +2 -2      ports/editors/openoffice.org-2-RC/files/Makefile.localized
   1.1       +107 -0    ports/editors/openoffice.org-2-RC/files/patch-i75190 (new)
   1.359     +2 -2      ports/editors/openoffice.org-2-devel/Makefile
   1.51      +4 -4      ports/editors/openoffice.org-2-devel/files/Makefile.knobs
   1.17      +2 -2      ports/editors/openoffice.org-2-devel/files/Makefile.localized
   1.1       +107 -0    ports/editors/openoffice.org-2-devel/files/patch-i75190 (new)
   1.299     +3 -3      ports/editors/openoffice.org-2/Makefile
   1.51      +4 -4      ports/editors/openoffice.org-2/files/Makefile.knobs
   1.18      +2 -2      ports/editors/openoffice.org-2/files/Makefile.localized
   1.1       +107 -0    ports/editors/openoffice.org-2/files/patch-i75190 (new)
   1.365     +3 -3      ports/editors/openoffice.org-3-devel/Makefile
   1.51      +5 -5      ports/editors/openoffice.org-3-devel/files/Makefile.knobs
   1.18      +2 -3      ports/editors/openoffice.org-3-devel/files/Makefile.localized
   1.10      +7 -3      ports/editors/openoffice.org-3-devel/files/Makefile.others
   1.1       +107 -0    ports/editors/openoffice.org-3-devel/files/patch-i75190 (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: maho 
State-Changed-When: Tue Apr 8 00:44:20 UTC 2008 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121953 
>Unformatted:
