ports/150483: [patch] www/trac: introduce Babel dependency
rea-fbsd at codelabs.ru
Sat Sep 11 06:00:15 UTC 2010
>Synopsis: [patch] www/trac: introduce Babel dependency
>Arrival-Date: Sat Sep 11 06:00:14 UTC 2010
>Originator: Eygene Ryabinkin
>Release: FreeBSD 9.0-CURRENT amd64
System: FreeBSD 9.0-CURRENT amd64
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
There is Trac ticket about this:
There is an announcement that Trac 0.12 has i18n/L10n and uses Babel
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".
We should just add Babel dependency. Here is the patch for this:
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:
More information about the freebsd-ports-bugs