Bug 16926 - CMake needs to be upgraded to 3.4.0 rc1 to allow it to detect Python 3.5
Summary: CMake needs to be upgraded to 3.4.0 rc1 to allow it to detect Python 3.5
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Nicolas test
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 02:29 CEST by Neal Gompa
Modified: 2015-10-09 16:40 CEST (History)
2 users (show)

See Also:
Source RPM: cmake-3.3.2-1.mga6.src.rpm
CVE:
Status comment:


Attachments
Patch to upgrade CMake to 3.4.0rc1 in Cauldron (568 bytes, patch)
2015-10-09 02:31 CEST, Neal Gompa
Details | Diff
Alternate patch to add Python 3.5 detection support to CMake 3.3.2 (1.30 KB, patch)
2015-10-09 15:05 CEST, Neal Gompa
Details | Diff

Description Neal Gompa 2015-10-09 02:29:11 CEST
Description of problem:
When Python 3.5 replaced Python 3.4 in Cauldron, various CMake-powered libraries (like hawkey, librepo, libcomps, etc.) failed to detect Python 3.5 properly and thus failed to build. This is fixed in CMake 3.4.0 RC1, which I have provided the necessary RPM SPEC patch

Version-Release number of selected component (if applicable):
3.3.2-1.mga6



Reproducible: 

Steps to Reproduce:
Comment 1 Neal Gompa 2015-10-09 02:31:04 CEST
Created attachment 7106 [details]
Patch to upgrade CMake to 3.4.0rc1 in Cauldron

Added patch referenced in original comment.
Comment 2 Neal Gompa 2015-10-09 02:34:54 CEST
Also, see

See Also: (none) => https://bugzilla.redhat.com/show_bug.cgi?id=1269095

Comment 3 Neal Gompa 2015-10-09 02:38:30 CEST
Err, sorry. I meant to write, see here the commit that fixes it: https://github.com/Kitware/CMake/commit/2db092b1f60b3677a2d44d5563bec216ae687e2f

And the RhBug that identified the problem.
Thierry Vignaud 2015-10-09 13:05:26 CEST

CC: (none) => thierry.vignaud

Comment 4 Thierry Vignaud 2015-10-09 14:56:51 CEST
Please just first upload current cmake version with FC patch:
http://pkgs.fedoraproject.org/cgit/cmake.git/tree/cmake-python3.5.patch?id=4798c1522a921a6756ae70b5e64c91d8697b6a88

I've live tested a similar change against /usr/share/cmake/Modules/FindPython* and it enabled me to build libsolv which fails to build with current cmake+py3.5

Else, in case new cmake version failed to build, we'll be be left in frozen hell :-)
Comment 5 Neal Gompa 2015-10-09 15:05:39 CEST
Created attachment 7107 [details]
Alternate patch to add Python 3.5 detection support to CMake 3.3.2

Added an alternate patch for adding Python 3.5 detection support to CMake 3.3.2
Comment 6 Neal Gompa 2015-10-09 15:07:06 CEST
Incidentally, I did test my patch to be sure it built and installed properly on my Cauldron box. I don't know how much that says about it working in iurt, but at least there's that.
Comment 7 Jani Välimaa 2015-10-09 16:40:11 CEST
I've already pushed cmake 3.4.0-rc1. I'm closing this as FIXED.

Status: NEW => RESOLVED
CC: (none) => jani.valimaa
Resolution: (none) => FIXED


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