amd64/138665: Build fails of x11-toolkits/py-gtk2, dependent on
wrong version of cairo
Scot Hetzel
swhetzel at gmail.com
Wed Sep 9 20:10:04 UTC 2009
The following reply was made to PR ports/138665; it has been noted by GNATS.
From: Scot Hetzel <swhetzel at gmail.com>
To: Randy Belk <randy.belk at onlybsd.com>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: amd64/138665: Build fails of x11-toolkits/py-gtk2, dependent on
wrong version of cairo
Date: Wed, 9 Sep 2009 15:00:45 -0500
On Wed, Sep 9, 2009 at 2:42 PM, Randy Belk<randy.belk at onlybsd.com> wrote:
> This is the error I get when compiling. This is actually a
> graphics/py-cairo issue not a x11-toolkits/py-gtk2 issue.
> Graphics/py-cairo is dependent on Python 2.6 and can not run with 2.5!
>
> =3D=3D=3D> =A0Extracting for py25-gtk-2.14.1_1
> =3D> MD5 Checksum OK for gnome2/pygtk-2.14.1.tar.bz2.
> =3D> SHA256 Checksum OK for gnome2/pygtk-2.14.1.tar.bz2.
> =3D=3D=3D> =A0Patching for py25-gtk-2.14.1_1
> =3D=3D=3D> =A0Applying FreeBSD patches for py25-gtk-2.14.1_1
> =3D=3D=3D> =A0 py25-gtk-2.14.1_1 depends on file:
> /usr/local/lib/python2.5/site-packages/cairo/__init__.py - not found
> =3D=3D=3D> =A0 =A0Verifying install for
> /usr/local/lib/python2.5/site-packages/cairo/__init__.py in
> /usr/ports/graphics/py-cairo
> =3D=3D=3D> =A0py25-cairo-1.8.8 needs Python 2.6 at least. But you specifi=
ed 2.5.
> *** Error code 1
>
> Stop in /usr/ports/graphics/py-cairo.
> *** Error code 1
>
> Stop in /usr/ports/x11-toolkits/py-gtk2.
>
> =3D=3D=3D>>> make failed for x11-toolkits/py-gtk2
> =3D=3D=3D>>> Aborting update
>
One option to allow py-cairo to work with python < 2.6 would be to do
the following:
1. create a repo copy of py-cairo to py-cairo-old
2. down grade py-cairo-old to version 1.8.2
- which was the last version we had working with python 2.5.
3. Set py-cairo-old to only build with python < 2.6
Finally, all ports that have a dependancy on graphics/py-cairo could
be changed as follows:
.if ${PYTHON_SUFFIX} < 26
BUILD_DEPENDS=3D ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphic=
s/py-cairo-old
RUN_DEPENDS=3D ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/=
py-cairo-old
.else
BUILD_DEPENDS=3D ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphic=
s/py-cairo
RUN_DEPENDS=3D ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/=
py-cairo
.fi
Scot
More information about the freebsd-gnome
mailing list