From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Fixing evolution-data-server on core-updates Date: Mon, 15 Jul 2019 14:39:51 +0200 Message-ID: <87tvbnmpyg.fsf@gnu.org> References: <875zo4ym4x.fsf@ngyro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38343) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn0Gm-0001mp-SC for guix-devel@gnu.org; Mon, 15 Jul 2019 08:39:54 -0400 In-Reply-To: <875zo4ym4x.fsf@ngyro.com> (Timothy Sample's message of "Mon, 15 Jul 2019 00:09:18 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Timothy Sample Cc: guix-devel@gnu.org Hello Timothy, Timothy Sample skribis: > From bcd753f777687c52bba6b9bf4184879e69990118 Mon Sep 17 00:00:00 2001 > From: Timothy Sample > Date: Sun, 14 Jul 2019 23:47:44 -0400 > Subject: [PATCH] gnu: evolution-data-server: Fix locale issue. > > * gnu/packages/gnome.scm (evolution-data-server)[arguments]: Add a phase > that patches the source code to fix a locale issue. > --- > gnu/packages/gnome.scm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm > index eb251498e9..a34adc4006 100644 > --- a/gnu/packages/gnome.scm > +++ b/gnu/packages/gnome.scm > @@ -5168,6 +5168,21 @@ Exchange, Last.fm, IMAP/SMTP, Jabber, SIP and Kerb= eros.") > "tests/libedata-cal/test-cal-cache-utils.c") > (("/bin/rm") (which "rm"))) > #t)) > + ;; This phase fixes locale canonicalization and prevents a few = test > + ;; failures. The bug has been reported upstream: > + ;; . > + (add-after 'unpack 'patch-locale-canonicalization > + (lambda _ > + (substitute* "src/libedataserver/e-collator.c" > + (("len =3D uloc_canonicalize \\(posix_locale,.*" x) > + ((lambda (xs) (string-join xs "\n" 'suffix)) > + (list > + "if (g_ascii_strcasecmp(posix_locale, \"C\") =3D=3D 0 = ||" > + " g_ascii_strcasecmp(posix_locale, \"POSIX\") =3D= =3D 0) {" > + " posix_locale =3D \"en_US_POSIX\";" > + "}" > + x)))) LGTM, thanks for fixing it! Ludo=E2=80=99.