Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2010 11:08:03 +0200
From:      Romain =?iso-8859-1?Q?Tarti=E8re?= <romain@FreeBSD.org>
To:        John Prather <john.c.prather@gmail.com>
Cc:        Marcus Alves Grando <mnag@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: State of gmime (mail/gmime24)
Message-ID:  <20100415090803.GC44219@blogreen.org>
In-Reply-To: <t2w25aa95031004132319l9e66a7e0j87d0cbab4f8620c6@mail.gmail.com>
References:  <t2w25aa95031004132319l9e66a7e0j87d0cbab4f8620c6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--pAwQNkOnpTn9IO2O
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

(To mnag@: I added you in cc, your opinion might enlighten us)

Hi John,

On Tue, Apr 13, 2010 at 11:19:04PM -0700, John Prather wrote:
> I've been maintaining a port which provides a plugin for Pidgin
> (net-im/pidgin-sipe), which has recently introduced the option to
> build a telepathy plugin in addition to or instead of the purple
> plugin.
>=20
> Building the telepathy plugin causes gnu configure to require gmime
> 2.4 >=3D 2.4.16 (mail/gmime24 is 2.4.10 currently) or gmime 2.6 >=3D 2.5.2
> (seems to be no 2.6 port yet).

According to the GNOME ftp, none of gmime-2.4.16 and gmime-2.5.2 are
available yet.
http://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/
http://ftp.gnome.org/pub/GNOME/sources/gmime/2.5/


For the records, the mail/gmime24 repocopy of mail/gmime2 was created
because deskutils/tomboy depended on mail/gmime2-sharp but this port
could not be installed anymore after a lang/mono update enforcing some
basic security restrictions.  Only the 2.4 series was updated according
to this so I asked the maintainer of mail/gmime2 for an update to the
2.4 series.

However, there a incompatibilities between the 2.2 and 2.4 series. We so
created a new mail/gmime24 port that can be installed besides to the
mail/gmime2 ports, in order to avoid breaking existing ports that
depended on it.

Since mail/gmime<x> and mail/gmime<x>-sharp ports have master/slave
relationship, I continue to have a look on mail/gmime24 cause I maintain
mail/gmime24-sharp, and the latest stable version (2.4.15) is available
in the BSD# repo (and should therefore be pushed to FreeBSD ports in a
short range of time):
http://code.google.com/p/bsd-sharp/source/detail?r=3D785

> I've found that I can easily patch one of the bug fixes I found
> (https://bugzilla.gnome.org/show_bug.cgi?id=3D613653#c8) that the sipe
> developers deemed necessary into the 2.4.10 port, however I'm wary of
> going crazy with freebsd patches for 2.4.10 if we are going to have
> 2.4.16 out in the near future, or 2.6 >=3D 2.5.2 made available. =A0Also,
> there may be other important bug fixes, though the others which i
> found that the sipe developers were concerned with were all related to
> building on Windows.

I don't think the development version (2.5 series) will ever have a
port.

> Do we feel that patching 2.4.10 with relatively simple patches would
> be a decent approach, or should we wait for either 2.4.16 release and
> the corresponding port update or 2.6 to be added into ports? =A0I partly
> feel we should wait for the correct versions to be made available, but
> it seems silly to wait weeks or months or more and deal with someone
> having to port a whole new release over such a simple fix.

I would wait for a stable release upstream.  However this patch is as
you said =AB relatively simple =BB and is unlikely to break existing code.
Since I am not the maintainer of mail/gmime{2,24}, I added mnag@ in Cc.
He might be of good advices.

I do not cut-off the rest of the original message for him.

Thanks,
Romain

> Here is what the patches look like which seem to apply nicely to
> 2.4.10 in mail/gmime24:
>=20
> (i'm sure the email turned tabs to spaces, but you can see the gist of
> it.  I can post the unmangled patch files somewhere if they are
> desired)
>=20
> [root@bsdlaptop /usr/ports/mail/gmime24]# cat
> files/patch-gmime_gmime.c
> *** gmime/gmime.c.orig =A0Tue Apr 13 22:45:25 2010
> --- gmime/gmime.c =A0 =A0 =A0 Tue Apr 13 22:46:09 2010
> ***************
> *** 141,147 ****
> =A0{
> =A0 =A0 =A0 =A0if (--initialized)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> !
> =A0 =A0 =A0 =A0g_mime_charset_map_shutdown ();
> =A0 =A0 =A0 =A0g_mime_iconv_shutdown ();
> =A0}
> --- 141,148 ----
> =A0{
> =A0 =A0 =A0 =A0if (--initialized)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> !
> ! =A0 =A0 =A0 g_mime_object_shutdown();
> =A0 =A0 =A0 =A0g_mime_charset_map_shutdown ();
> =A0 =A0 =A0 =A0g_mime_iconv_shutdown ();
> =A0}
> [root@bsdlaptop /usr/ports/mail/gmime24]# cat
> files/patch-gmime_gmime-object.c
> *** gmime/gmime-object.c.orig =A0 Tue Apr 13 22:46:38 2010
> --- gmime/gmime-object.c =A0 =A0 =A0 =A0Tue Apr 13 22:48:48 2010
> ***************
> *** 1061,1068 ****
> =A0 =A0 =A0 =A0g_free (bucket);
> =A0}
>=20
> ! static void
> ! type_registry_shutdown (void)
> =A0{
> =A0 =A0 =A0 =A0g_hash_table_foreach (type_hash, type_bucket_foreach, NULL=
);
> =A0 =A0 =A0 =A0g_hash_table_destroy (type_hash);
> --- 1061,1068 ----
> =A0 =A0 =A0 =A0g_free (bucket);
> =A0}
>=20
> ! void
> ! g_mime_object_shutdown (void)
> =A0{
> =A0 =A0 =A0 =A0g_hash_table_foreach (type_hash, type_bucket_foreach, NULL=
);
> =A0 =A0 =A0 =A0g_hash_table_destroy (type_hash);
> ***************
> *** 1075,1080 ****
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
>=20
> =A0 =A0 =A0 =A0type_hash =3D g_hash_table_new (g_mime_strcase_hash, g_mim=
e_strcase_equal);
> -
> - =A0 =A0 =A0 g_atexit (type_registry_shutdown);
> =A0}
> --- 1075,1078 ----
> [root@bsdlaptop /usr/ports/mail/gmime24]# cat files/patch-gmime_gmime-obj=
ect.h
> *** gmime/gmime-object.h.orig =A0 Tue Apr 13 22:49:01 2010
> --- gmime/gmime-object.h =A0 =A0 =A0 =A0Tue Apr 13 22:49:51 2010
> ***************
> *** 94,99 ****
> --- 94,100 ----
> =A0GType g_mime_object_get_type (void);
>=20
> =A0void g_mime_object_register_type (const char *type, const char
> *subtype, GType object_type);
> + void g_mime_object_shutdown (void);
>=20
> =A0GMimeObject *g_mime_object_new (GMimeContentType *content_type);
> =A0GMimeObject *g_mime_object_new_type (const char *type, const char *sub=
type);
>=20
>=20
>=20
> --
> John Prather
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

--=20
Romain Tarti=E8re <romain@FreeBSD.org>  http://people.FreeBSD.org/~romain/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated)

--pAwQNkOnpTn9IO2O
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQGcBAEBAgAGBQJLxtdwAAoJELpNHZVREjNvHSUL/26KCXchrkQCjpKyIys2hhXU
VhCoh+8CdG3Y0pAU9gd8pAkf2qjWeu1zw3kPKCmCVubl+W8Z04wwteq52wHz/A6M
uffm4rR32w2Uq0cn8Qzo3afpNV+/Ftn49COtfifb/fStsHREFEv0oE8AIIlaOga5
GhaqugJeiiu/wppM4zSLG23sc3X9fPgm7vs9UhauRkF/RrFCPH8lQuIuilX69Q7o
C7Atr2UGArN1Tlr/1SAvBaO6h7U5hHjTTdbk4zo5zvS5xbBXmSeydRRmQKYco75W
yFS7F4EYMdkNPSksaal08EXj+J/GY2t9YSV0iBHaxVGxvbTIo6cQidJ5S0S2oAKS
zgtprJRup+ecnGHmq5DvWdgu6FU4Hb5nF9BK4q665X3yMaO+CcKEHWU9rLvucSoe
PAIgVy71QmdZ366kX21UB77+8/01jMJl+IvtUdVtZfEx6vACGwQMtlJQNfdClwhH
48Q+/MQg+sFv6/gpwQ3qOaiHu+KxwQANjlNS3/pUHQ==
=7v+h
-----END PGP SIGNATURE-----

--pAwQNkOnpTn9IO2O--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100415090803.GC44219>