RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1246369 - cmake does not find python libs
Summary: cmake does not find python libs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cmake
Version: 7.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Patsy Griffin
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks: 1297579 1304775 1313485
TreeView+ depends on / blocked
 
Reported: 2015-07-24 06:17 UTC by Aleksey
Modified: 2016-11-04 00:05 UTC (History)
4 users (show)

Fixed In Version: cmake-2.8.12.2-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 00:05:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
a cmake project where the problem occurs (163 bytes, text/plain)
2015-07-24 06:17 UTC, Aleksey
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2175 0 normal SHIPPED_LIVE cmake bug fix update 2016-11-03 13:16:45 UTC

Description Aleksey 2015-07-24 06:17:44 UTC
Created attachment 1055629 [details]
a cmake project where the problem occurs

Description of problem:
cmake does not find python libs

Version-Release number of selected component (if applicable):
2.8.11

How reproducible:

Steps to Reproduce:
1. install python34-devel (sudo yum install python34-devel)
2. Download attached file "CMakeLists.txt"
3. Run cmake: cmake .

Actual results:
cmake will report an error " Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)"

Expected results:
	
cmake will generate the message "python libs found"


Additional info:
In RHEL 7.1 contains the Python version 3.4. In the script /usr/share/cmake/Modules/FindPythonLibs.cmake supports version 3.3 and below

This patch solves the problem:

--- /usr/share/cmake/Modules/FindPythonLibs.cmake       2015-07-24 09:07:02.138326798 +0300
+++ /tmp/FindPythonLibs.cmake   2015-07-24 09:03:51.968029920 +0300
@@ -38,7 +38,7 @@

 set(_PYTHON1_VERSIONS 1.6 1.5)
 set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
-set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)
+set(_PYTHON3_VERSIONS 3.4 3.3 3.2 3.1 3.0)

 if(PythonLibs_FIND_VERSION)
     if(PythonLibs_FIND_VERSION MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+.*)?$")

Comment 7 errata-xmlrpc 2016-11-04 00:05:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2175.html


Note You need to log in before you can comment on or make changes to this bug.