[bind10-dev] FreeBSD port for BIND 10 available for testing
Michael Sinatra
michael at burnttofu.net
Fri Sep 30 23:16:05 UTC 2011
On 09/30/11 16:03, Dan Mahoney wrote:
>
>
> On Fri, 30 Sep 2011, Michael Sinatra wrote:
>
>> On 09/30/11 12:28, Francis Dupont wrote:
>>>> ===> Configuring for botan-1.8.11
>>>> File "./configure.py", line 613
>>>> except KeyError, e:
>>>> ^
>>>> SyntaxError: invalid syntax
>>>
>>> => there is no mystery: botan requires a python 2 for its configuration
>>> and the script is run by a python 3. BTW the fix is easy: hack the botan
>>> config to use python 2.
>
> On the botan site, it claims that you can in fact run the configure script
> with python's 2to3 script -- I would suggest filing a ports bug to have
> them do this if the system python is "3", instead of pulling in python2.
> This is probably also a trivial patch for someone more familiar with
> makefiles than myself, to submit with the PR.
I fiddled with the 2to3 script for a while a couple months ago trying to
build botan under python 3.1 and gave up. I should probably try again
because it is supposed to work.
>> I simply installed both python 2.7 and python 3.1 before building the port and
>> it compiled fine. I was able to get BIND10 to build on a FreeBSD 9.0-BETA3
>> system using llvm/clang as the compiler. One of the dependencies (log4cplus)
>> wouldn't build under clang, so I "downgraded" to gcc/g++ for that dependency
>> only.
>
> The benefits of having python2.7 on a system JUST to run a configure
> script are dubious at best, plus the added complication of having two full
> pythons installed, plus the extra build time.
There's enough other stuff in the ports collection that relies on python
2 that a FreeBSD system with a reasonable set of packages will probably
need python 2 anyway. It's not a big deal for me. That said, it would
be nice if it could all work under python 3, but it may be a while for
that to happen, given the 2 vs. 3 compatibility issues.
michael
More information about the bind10-users
mailing list