[Bug 202577] graphics/opencolorio: force to use Python 2.x
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Aug 22 17:22:26 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202577
Bug ID: 202577
Summary: graphics/opencolorio: force to use Python 2.x
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: novel at FreeBSD.org
CC: freebsd-ports-bugs at FreeBSD.org
Created attachment 160219
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160219&action=edit
opencolorio: fix Python depencency
graphics/opencolorio doesn't work properly with Python 3.x:
-- Setting python bin to: /usr/local/bin/python3.4
File "<string>", line 1
from distutils import sysconfig; print sysconfig.get_python_version()
^
SyntaxError: invalid syntax
File "<string>", line 1
import sys; print sys.maxunicode > 65536 and 'ucs4' or 'ucs2'
^
SyntaxError: invalid syntax
File "<string>", line 1
from distutils import sysconfig; print
':'.join(set(sysconfig.get_config_var('INCLDIRSTOMAKE').split()))
^
SyntaxError: invalid syntax
File "<string>", line 1
from distutils import sysconfig; print
':'.join(set(sysconfig.get_config_var('LIBPL').split()))
^
SyntaxError: invalid syntax
...
-- Python bindings will not be built: /usr/local/bin/python3.4 returned 1
trying to determine library path.
As Python 3.x doesn't allow print statements by default.
As a result we have:
pkg-static: Unable to access file
/usr/ports/graphics/opencolorio/work/stage/usr/local/include/PyOpenColorIO/PyOpenColorIO.h:
No such file or directory
Attaching a patch with the following changes:
- Force using Python 2.x
- Drop python from BUILD_DEPENDS as it's already done by adding python to USES
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list