Date: Wed, 20 Oct 2010 20:13:33 +0200 (CEST) From: Oliver Fromme <olli@secnetix.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Oliver Fromme <olli@secnetix.de> Subject: ports/151606: devel/cmake: patch to add support for Python 2.7 Message-ID: <201010201813.o9KIDXhs003194@lurza.secnetix.de> Resent-Message-ID: <201010201820.o9KIKAFj034940@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151606 >Category: ports >Synopsis: devel/cmake: patch to add support for Python 2.7 >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 20 18:20:09 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Oliver Fromme >Release: n/a >Organization: secnetix GmbH & Co. KG http://www.secnetix.de/bsd >Environment: The problem affects FreeBSD systems that have the latest stable Python version installed, i.e. 2.7. NB: I've set the priority of this PR to "high" because the problem affects *all* ports that use cmake and Python. >Description: The current version of cmake (devel/cmake) fails to recognize Python 2.7 correctly. >How-To-Repeat: Remove Python 2.6 (or whatever older version you have installed) and install Python 2.7. Then try to install any port that uses cmake and Python, for example print/scribus. It will fail, because cmake can't find the Python libraries. >Fix: Add this patch to the devel/cmake port: --- Modules/FindPythonLibs.cmake.orig 2010-06-28 17:15:57.000000000 +0200 +++ Modules/FindPythonLibs.cmake 2010-10-20 20:04:31.000000000 +0200 @@ -27,7 +27,7 @@ # Search for the python framework on Apple. CMAKE_FIND_FRAMEWORKS(Python) -FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) +FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION}) IF(WIN32) FIND_LIBRARY(PYTHON_DEBUG_LIBRARY >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010201813.o9KIDXhs003194>