From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 11 06:00:15 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A938106566C for ; Sat, 11 Sep 2010 06:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6911D8FC1B for ; Sat, 11 Sep 2010 06:00:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8B60FUW090427 for ; Sat, 11 Sep 2010 06:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8B60FDE090419; Sat, 11 Sep 2010 06:00:15 GMT (envelope-from gnats) Resent-Date: Sat, 11 Sep 2010 06:00:15 GMT Resent-Message-Id: <201009110600.o8B60FDE090419@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8574106566C for ; Sat, 11 Sep 2010 05:53:34 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9A1E18FC08 for ; Sat, 11 Sep 2010 05:53:34 +0000 (UTC) Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256) id 1OuJ1j-0006H9-Iq for FreeBSD-gnats-submit@freebsd.org; Sat, 11 Sep 2010 09:53:27 +0400 Message-Id: <20100911055327.65D7DDA81A@void.codelabs.ru> Date: Sat, 11 Sep 2010 09:53:27 +0400 (MSD) From: Eygene Ryabinkin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/150483: [patch] www/trac: introduce Babel dependency X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 06:00:15 -0000 >Number: 150483 >Category: ports >Synopsis: [patch] www/trac: introduce Babel dependency >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 11 06:00:14 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 9.0-CURRENT amd64 >Organization: Code Labs >Environment: System: FreeBSD 9.0-CURRENT amd64 >Description: Current Trac port requires no Babel (devel/py-babel), but it behaves differently when Babel is present and when it is not present in the system. Most notably, when one installs Trac 0.12 without installed Babel and installs Babel later, Trac will refuse to work with the error "KeyError: trac/locale". There is Trac ticket about this: http://trac.edgewall.org/ticket/9439 There is an announcement that Trac 0.12 has i18n/L10n and uses Babel for it: http://trac.edgewall.org/wiki/TracL10N >How-To-Repeat: Install Trac when no devel/py-babel is present in the system, install py-babel and watch how Trac will be broken: it will refuse to work giving the message "KeyError: trac/locale". >Fix: We should just add Babel dependency. Here is the patch for this: http://codelabs.ru/fbsd/ports/trac/0.12-add-babel-dependency.diff It was tested on our Trac 0.12; updated port passed Tinderbox builds for 7.x/8.x and 9.x. There is one issue: when Babel will be installed, Trac will start to use speaker's natural locale (it uses browser charset negotiation) and that't not desirable for every installation, since some translations are very "unnatural". Trac 0.12.1 will have the knob 'default_language' that will allow Trac administrator to specify the default L10n language. I had extracted that patch from the 0.12 repository, added it to our Trac and tested for some days. It works fine and behaves as expected. The patch that can be dropped to port's files/ directory is available at the following URL: http://codelabs.ru/fbsd/ports/trac/0.12-upstream-patch-add-default_language-knob.diff >Release-Note: >Audit-Trail: >Unformatted: