From owner-freebsd-gnome@FreeBSD.ORG Fri Apr 4 21:56:50 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82A9437B414 for ; Fri, 4 Apr 2003 21:56:50 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E73D43FA3 for ; Fri, 4 Apr 2003 21:56:49 -0800 (PST) (envelope-from marcus@FreeBSD.org) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h355tSTc013787; Sat, 5 Apr 2003 00:55:28 -0500 (EST) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: Glenn Johnson In-Reply-To: <20030404060457.GA84119@gforce.johnson.home> References: <200304030305.h3335ACH073963@freefall.freebsd.org> <20030403214016.GA12235@gforce.johnson.home> <1049406910.349.27.camel@gyros> <20030403220701.GA37237@gforce.johnson.home> <1049432171.49796.15.camel@shumai.marcuscom.com> <20030404060457.GA84119@gforce.johnson.home> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-4J9nln2lTVfVJrc3I/J1" Organization: FreeBSD, Inc. Message-Id: <1049522199.55676.12.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 05 Apr 2003 00:56:40 -0500 X-Spam-Status: No, hits=-38.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: FreeBSD GNOME Users cc: chris@Shenton.Org Subject: Re: ports/50089: GnuCash-1.8.1_3 fails at startup: scm date util inexact->exact X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 05:56:51 -0000 --=-4J9nln2lTVfVJrc3I/J1 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-04-04 at 01:04, Glenn Johnson wrote: > On Thu, Apr 03, 2003 at 11:56:11PM -0500, Joe Marcus Clarke wrote: >=20 > > On Thu, 2003-04-03 at 17:07, Glenn Johnson wrote: > > > > > On Thu, Apr 03, 2003 at 04:55:11PM -0500, Joe Marcus Clarke wrote: > > > > > > > On Thu, 2003-04-03 at 16:40, Glenn Johnson wrote: > > > > > > > > > On Wed, Apr 02, 2003 at 07:05:10PM -0800, Joe Marcus Clarke > > > > > wrote: > > > > > > > > > > > Synopsis: GnuCash-1.8.1_3 fails at startup: scm date util > > > > > > inexact->exact > > > > > > > > > > > > State-Changed-From-To: feedback->closed State-Changed-By: > > > > > > marcus State-Changed-When: Wed Apr 2 19:04:52 PST 2003 > > > > > > State-Changed-Why: This should now be fixed in GnuCash 1.8.2. > > > > > > > > > > It is not fixed. I believe this is a problem with -current. > > > > > I have been using FreeBSD 5-current lately and as of about a > > > > > week ago gnucash was working fine with it. After a couple of > > > > > -current updates I went to use gnucash and discovered that the > > > > > dates were messed up for transactions. I rebuilt guile and now > > > > > I can no longer even launch gnucash because I get the problem > > > > > reported in this PR. > > > > > > > > > > Unfortunately I do not know _exactly_ when it broke. I do know > > > > > that updating to gnucash-1.8.2 does _not_ fix the problem on > > > > > -current. > > > > > > > > I just built GnuCash on -CURRENT a few hours ago, and it works > > > > just fine. I tried with and without extra malloc options. > > > > > > You tested transaction entries and the dates were okay? That was > > > the problem I was having. It may not be immediately noticeable. > > > > > > > I suggested Chris do a portupgrade -Rf gnucash\*, as I just built > > > > all of the GnuCash direct dependencies from scratch today (except > > > > guile and popt). > > > > > > Well, gnucash was sort of working, just the dates were wrong, until > > > I rebuilt guile. When I did that gnucash would no longer start. I > > > mention that again because you say above that you did not rebuild > > > guile. In any event, I will rebuild _all_ of the dependencies and > > > see what happens. I will let you know one way or the other. > > > > This should be fixed now. I think the implementation of isfinite() is > > broken in -CURRENT. I've sent the submitter of that code an email to > > ask for his help and clarification. In the meantime, I've fixed guile > > to use the known working isfinite() code. >=20 > Well, not quite. This gets gnucash to launch for me again but the dates > are messed up. Here is a brief description: >=20 > The '+' key will not increment the date, the '-' key will decrement the > date by 2 days (supposed to be 1). Selecting a date on the drop-down > calendar will result in a different date actually entered in the date > field, usually 1-2 days prior to that selected. Entering the date > manually does not work either because as soon as I tab to the next > field, the date changes. Even just selecting an existing transaction > will change the date of that transaction. >=20 > So try some of the above in an account register. If you do not see this > behavior than I must have something else messed up on my machine. This should fix the date problem in GnuCash: mtm 2003/04/04 21:46:44 PST FreeBSD src repository Modified files: lib/libc/stdtime strptime.c=20 Log: Zero out the struct tm supplied by the caller. Otherwise, strange things might happen when garbage values in the struct get passed in to localtime_r() and family. =20 Noticed by: marcus Approved by: markm (mentor)(implicit) =20 Revision Changes Path 1.33 +1 -0 src/lib/libc/stdtime/strptime.c Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: marcus@FreeBSD.org http://www.FreeBSD.org/gnome --=-4J9nln2lTVfVJrc3I/J1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+jnAXb2iPiv4Uz4cRAnQ9AJ4nFM+NHp9VgGxG1LvMKthiw6Ln7wCcDnCX twAVhpxA9YZW56jpp1rp23A= =EvGa -----END PGP SIGNATURE----- --=-4J9nln2lTVfVJrc3I/J1--