[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ports/50089: GnuCash-1.8.1_3 fails at startup: scm date util inexact->exact
- Subject: ports/50089: GnuCash-1.8.1_3 fails at startup: scm date util inexact->exact
- From: marcus at FreeBSD.org (Joe Marcus Clarke)
- Date: Fri Apr 4 21:57:19 2003
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:
> > 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.
> Well, not quite. This gets gnucash to launch for me again but the dates
> are messed up. Here is a brief description:
> 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.
> 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
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.
Noticed by: marcus
Approved by: markm (mentor)(implicit)
Revision Changes Path
1.33 +1 -0 src/lib/libc/stdtime/strptime.c
Joe Marcus Clarke
FreeBSD GNOME Team :: marcus_(_at_)_FreeBSD_(_dot_)_org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20030405/f5a57d80/attachment.bin
Visit your host, monkey.org