Date: Sat, 11 Sep 2010 09:53:27 +0400 (MSD) From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/150483: [patch] www/trac: introduce Babel dependency Message-ID: <20100911055327.65D7DDA81A@void.codelabs.ru> Resent-Message-ID: <201009110600.o8B60FDE090419@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100911055327.65D7DDA81A>