View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014156 | CMake | Modules | public | 2013-05-19 06:10 | 2016-06-10 14:31 | ||||
Reporter | Modestas Vainius | ||||||||
Assigned To | Ben Boeckel | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | amd64 | OS | Debian GNU/Linux | OS Version | sid | ||||
Product Version | CMake 2.8.11 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014156: FindPythonLibs: fully support Python on Debian multi-arch systems | ||||||||
Description | Hello, I don't know the details but the following patch is needed to make FindPythonLibs properly work on Debian multi-arch systems (that's for future Debian 8.0 and some recent Ubuntu) http://anonscm.debian.org/gitweb/?p=collab-maint/cmake.git;a=blob;f=debian/patches/multiarch-python-include-dirs.diff;hb=master [^] | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0033096) Jean-Christophe Fillion-Robin (reporter) 2013-05-19 18:05 |
In the same time, the patched CMake is causing trouble to build some project. See http://www.na-mic.org/Bug/view.php?id=3116 [^] @Modestas: Waiting to fix the CMake version of FindPythonLibs.cmake, do you know who should be contacted / what it the process to tweak the module currently provided within Debian ? Would be helpful if "PYTHON_INCLUDE_DIRS" is appended to the list of path to search when setting "PYTHON_INCLUDE_DIRS2". Thanks |
(0033098) Modestas Vainius (reporter) 2013-05-20 01:48 |
That would be me. Thanks for letting us know about the problem. The patch is supposed to be backwards compatible so we will try to fix your problem with the patch. Watch this bug for updates. |
(0033690) domibel (reporter) 2013-08-08 23:46 |
I have the same problem with Debian Testing right now. The patch mentioned above needs another change. JC's idea worked for me: find_path(PYTHON_INCLUDE_DIR2 NAMES pyconfig.h PATHS + ${PYTHON_INCLUDE_DIR} ${PYTHON_FRAMEWORK_INCLUDES} [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/include [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/include |
(0033699) domibel (reporter) 2013-08-12 10:36 |
The patch above doesn't work in some cases. Here is another patch which has to be applied on top of the original patch in the Debian repository. It looks for pyconfig.h in the original folder PYTHON_INCLUDE_DIR, and uses the alternative location only if the file couldn't be located. + find_path(PYTHON_INCLUDE_DIR2 + NAMES pyconfig.h + PATHS + ${PYTHON_INCLUDE_DIR} + ) + + if (NOT PYTHON_INCLUDE_DIR2) find_path(PYTHON_INCLUDE_DIR2 NAMES pyconfig.h PATHS @@ -162,6 +183,10 @@ python${_CURRENT_VERSION}u python${_CURRENT_VERSION} ) + endif() Slicer4 compiles on Debian testing and Ubuntu 13.04 with that change. http://slicer.cdash.org/index.php?project=Slicer4 [^] |
(0034771) Dmitrijs Ledkovs (reporter) 2013-12-13 12:18 |
It has proven too much work to have pyconfig.h in an multiarch location. Therefore, pyconfig.h was re-introduced in an non-multiarch location. Instead it is a compatibility header that using compiler macros includes the correct pyconfig.h from a multiarch location. This patch should be dropped, as it's no longer needed. |
(0042284) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-05-19 06:10 | Modestas Vainius | New Issue | |
2013-05-19 18:05 | Jean-Christophe Fillion-Robin | Note Added: 0033096 | |
2013-05-20 01:48 | Modestas Vainius | Note Added: 0033098 | |
2013-08-08 23:46 | domibel | Note Added: 0033690 | |
2013-08-12 10:36 | domibel | Note Added: 0033699 | |
2013-08-13 09:07 | Brad King | Assigned To | => Ben Boeckel |
2013-08-13 09:07 | Brad King | Status | new => assigned |
2013-12-13 12:18 | Dmitrijs Ledkovs | Note Added: 0034771 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042284 | |
2016-06-10 14:28 | Kitware Robot | Status | assigned => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |