From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 20 18:20:10 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BCB81065695 for ; Wed, 20 Oct 2010 18:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2296E8FC26 for ; Wed, 20 Oct 2010 18:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9KIKAI7034941 for ; Wed, 20 Oct 2010 18:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9KIKAFj034940; Wed, 20 Oct 2010 18:20:10 GMT (envelope-from gnats) Resent-Date: Wed, 20 Oct 2010 18:20:10 GMT Resent-Message-Id: <201010201820.o9KIKAFj034940@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Fromme Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C41D1065670 for ; Wed, 20 Oct 2010 18:13:52 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id C01AA8FC19 for ; Wed, 20 Oct 2010 18:13:51 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o9KIDXHD003195; Wed, 20 Oct 2010 20:13:49 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o9KIDXhs003194; Wed, 20 Oct 2010 20:13:33 +0200 (CEST) (envelope-from olli) Message-Id: <201010201813.o9KIDXhs003194@lurza.secnetix.de> Date: Wed, 20 Oct 2010 20:13:33 +0200 (CEST) From: Oliver Fromme To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Oliver Fromme Subject: ports/151606: devel/cmake: patch to add support for Python 2.7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 18:20:10 -0000 >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: