From owner-freebsd-gnome@FreeBSD.ORG Mon Jan 7 18:34:18 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B62616A418 for ; Mon, 7 Jan 2008 18:34:18 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 268C313C447 for ; Mon, 7 Jan 2008 18:34:18 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.16] (vpn-client-16.marcuscom.com [10.2.1.16]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m07IZJcR038971; Mon, 7 Jan 2008 13:35:19 -0500 (EST) (envelope-from marcus@marcuscom.com) Message-ID: <478270FF.1040804@marcuscom.com> Date: Mon, 07 Jan 2008 13:35:43 -0500 From: Joe Marcus Clarke Organization: MarcusCom, Inc. User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Patrick Reich References: <1199635505.7420.10.camel@descartes.bluewinds.org> <1199643414.21632.28.camel@shumai.marcuscom.com> <1199669319.7917.8.camel@descartes.bluewinds.org> <1199670003.21632.33.camel@shumai.marcuscom.com> <1199670950.8040.3.camel@descartes.bluewinds.org> <1199673708.21632.36.camel@shumai.marcuscom.com> <1199675910.8312.4.camel@descartes.bluewinds.org> <1199680997.21632.46.camel@shumai.marcuscom.com> <1199724445.7381.5.camel@descartes.bluewinds.org> In-Reply-To: <1199724445.7381.5.camel@descartes.bluewinds.org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/mixed; boundary="------------060008080904000102090202" X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org Subject: Re: Evolution and the timezone patch X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 18:34:18 -0000 This is a multi-part message in MIME format. --------------060008080904000102090202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick Reich wrote: | On Sun, 2008-01-06 at 23:43 -0500, Joe Marcus Clarke wrote: |> On Sun, 2008-01-06 at 21:18 -0600, Patrick Reich wrote: |>> On Sun, 2008-01-06 at 21:41 -0500, Joe Marcus Clarke wrote: |>>> On Sun, 2008-01-06 at 19:55 -0600, Patrick Reich wrote: |>>>> On Sun, 2008-01-06 at 20:40 -0500, Joe Marcus Clarke wrote: |>>>>> On Sun, 2008-01-06 at 19:28 -0600, Patrick Reich wrote: |>>>>>> On Sun, 2008-01-06 at 13:16 -0500, Joe Marcus Clarke wrote: |>>>>>>> On Sun, 2008-01-06 at 10:05 -0600, Patrick Reich wrote: |>>>>>>>> Hi everyone, |>>>>>>>> |>>>>>>>> I checked the archives and found something about a patch |>>>>>>>> for Evolution not starting up the first time due to an off |>>>>>>>> by one error when looking up timezones. |>>>>>>>> |>>>>>>>> Robert Noland posted a patch here |>>>>>>>> |>>>>>>>> http://bugzilla.gnome.org/show_bug.cgi?id=492426 |>>>>>>>> |>>>>>>>> As of a portsnap pull yesterday and a build from scratch |>>>>>>>> of gnome2, I encountered the same behavior. Has this |>>>>>>>> patch been applied to the ports tree or is there a |>>>>>>>> commit delay until after the upcoming releases? If it has |>>>>>>>> been applied, is there a workaround? |>>>>>>> The fix was committed a long time ago. E-d-s 1.12.2 does not have this |>>>>>>> problem. |>>>>>>> |>>>>>>> Joe |>>>>>> After a new portsnap fetch and rebuild today, Evolution will not |>>>>>> start. This is the first time Evolution has been run. I've |>>>>>> attached a backtrace and my make.conf. The system is 6.3-RC2 with |>>>>>> gnome2-lite and Evolution compiled from source; no exotic compiler |>>>>>> flags. I'm not a gdb expert so if something else is needed to |>>>>>> track this down, I'll be happy to provide it. |>>>>> No exotic compiler flags? You're using non-default CFLAGS with a |>>>>> CPUTYPE. Anything not the default IS exotic. |>>>>> |>>>>> Where is your list of installed ports and versions? |>>>>> |>>>>> Joe |>>>> A list of installed ports is attached. I presume I'll need to |>>>> rebuild again without CPUTYPE/CFLAGS. |>>> Mezz is correct. You need to rebuild evolution-data-server (at least) |>>> with debugging flags to get a proper debugging info. The backtrace is |>>> not the same as the previously reported bug which is fixed in e-d-s |>>> 1.12.2. |>>> |>>> Joe |>> I recompiled evolution and evolution-data-server with debugging |>> turned on AND with CPUTYPE/CFLAGS removed from make.conf. The |>> backtrace is attached. |> This looks like a bug only on versions of FreeBSD still using phkmalloc. |> jemalloc's calloc does not return NULL when asked to allocate zero |> bytes. | | Does 7 use calloc? Yes, but jemalloc's calloc does not return NULL when asked to allocate 0 bytes. | |> This patch for e-d-s should fix the problem. | | The compile failed. The attached file is large but shows where | the build stopped. Looks like a type undeclared. This is a typo. New patch is attached. In the future, do not send ~ 1 MB of logs to a mailing list. compress the file, or post it to a web site, and include the URL. Joe - -- PGP Key : http://www.marcuscom.com/pgp.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgnD+b2iPiv4Uz4cRAq01AKCB2e2uLgjZT7F3pbzbcjKbMpR2PACeLLky l8gk+YMuU3nWTvUdDS8T/wM= =MawT -----END PGP SIGNATURE----- --------------060008080904000102090202 Content-Type: text/plain; name="patch-calendar_libical_src_libical_icaltz-util.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-calendar_libical_src_libical_icaltz-util.c" --- calendar/libical/src/libical/icaltz-util.c.orig 2007-11-25 21:29:25.000000000 -0500 +++ calendar/libical/src/libical/icaltz-util.c 2008-01-06 23:36:51.000000000 -0500 @@ -23,6 +23,15 @@ #include #if defined(sun) && defined(__SVR4) #include +#elif defined(__FreeBSD__) +#include +#define __BYTE_ORDER _BYTE_ORDER +#define __LITTLE_ENDIAN _LITTLE_ENDIAN +#define __BIG_ENDIAN _BIG_ENDIAN + +#define bswap_16 bswap16 +#define bswap_32 bswap32 +#define bswap_64 bswap64 #else #include #include @@ -328,7 +337,10 @@ icaltzutil_fetch_timezone (const char *l icalprop = icalproperty_new_tzname (types [zidx].zname); icalcomponent_add_property (std_comp, icalprop); - trans = transitions [stdidx] + types [zidx].gmtoff; + if (transitions) + trans = transitions [stdidx] + types [zidx].gmtoff; + else + trans = types [zidx].gmtoff; icaltime = icaltime_from_timet (trans, 0); dtstart = icaltime; dtstart.year = 1970; @@ -369,7 +381,10 @@ icaltzutil_fetch_timezone (const char *l icalprop = icalproperty_new_tzname (types [zidx].zname); icalcomponent_add_property (dst_comp, icalprop); - trans = transitions [dstidx] + types [zidx].gmtoff; + if (transitions) + trans = transitions [dstidx] + types [zidx].gmtoff; + else + trans - types [zidx].gmtoff; icaltime = icaltime_from_timet (trans, 0); dtstart = icaltime; dtstart.year = 1970; --------------060008080904000102090202--