It turns out that Python 3.x removed bsddb support, so no need to build
python-bsddb for 3.1.

I updated a few things in the port and python/Makefile.inc, I included
the diff for Makefile.inc in the repository:

  http://bitbucket.org/henry/python-31-openbsd-port/

Get the tarball:

  http://bitbucket.org/henry/python-31-openbsd-port/get/tip.gz

I still need to fix the broken tests, but otherwise it looks like the
port is fully functionnal.

On Thu, Jul 02, 2009 at 12:21:28PM -0700, Henry Precheur wrote:
> I started working on Python 3.1. So far, it looks like it will be
> relatively easy. Most of the infrastructure for building Python wont
> have to change to accomodate the new version.
> 
> One of the problem I ran into was that Python 3 executable are suffixed
> with '3':
>   python3, python3-config, pydoc3, & idle3
> 
>   I had to add a variable PYBIN_SUFFIX and a little bit of code in
>   /usr/ports/lang/python/Makefile.inc to make things work. (The patch is
>   attached)
> 
> Things left todo:
> - Submit patches to bugs.python.org, it looks like most patches in the
>   port tree stay in the port tree (for Python at least). It would be
>   nice to forward those patches upstream. I have modified some patches
>   to make them more 'acceptable' upstream.
> - Some unit tests are broken
> - python-bsddb doesn't build
> 
> 
> I have created a repository on bitbucket:
> 
>   http://bitbucket.org/henry/python-31-openbsd-port/
> 
> The tarball of the last version is here:
>   
>   http://bitbucket.org/henry/python-31-openbsd-port/get/tip.gz
> 
> To test the port:
> 
>   $ tar zxvf python-31-openbsd-port-tip.gz
>   $ mv python-31-openbsd-port /usr/ports/lang/python/3.1
> 
>   Apply the attached patch to /usr/ports/lang/python/Makefile.inc
> 
>   $ cd /usr/ports/lang/python && patch -p 0 < Makefile.inc.diff 
> 
> 
> Feedbacks are greatly appreciated!

-- 
  Henry Pr?cheur

Reply via email to