So, I reverted the patch in Fedora to that stated in
http://cmake.org/Bug/view.php?id=13794 and that seems to have
immediately broken things.

I'm attaching the version that Fedora has been carrying (and seemingly
working).

BTW - This seems to be a duplicate: http://cmake.org/Bug/view.php?id=10077

- Orion

-------- Original Message --------
Subject: [Bug 1072964] New: Could NOT find PythonInterp
Date: Wed, 05 Mar 2014 13:58:41 +0000
From: bugzi...@redhat.com
To: or...@cora.nwra.com

https://bugzilla.redhat.com/show_bug.cgi?id=1072964

            Bug ID: 1072964
           Summary: Could NOT find PythonInterp
           Product: Fedora
           Version: rawhide
         Component: cmake
          Assignee: or...@cora.nwra.com
          Reporter: akozu...@redhat.com
        QA Contact: extras...@fedoraproject.org
                CC: jrez...@redhat.com, lti...@redhat.com,
                    or...@cora.nwra.com, pertu...@free.fr,
                    pmach...@redhat.com, rdie...@math.unl.edu



Hello, DNF rawhide builds started to fail today:

http://kojipkgs.fedoraproject.org//work/tasks/4/6600004/build.log

The most relevant part is below. dgilmore noticed there has been this
change in
CMake:

[14:49]<dgilmore> akozumpl: cmake-3.0.0-0.3.rc1.fc21
[14:49]<dgilmore> ------------------------
[14:49]<dgilmore> * Mon Mar 03 2014 Orion Poplawski <or...@cora.nwra.com> -
       3.0.0-0.3.rc1
[14:49]<dgilmore> - Update to upstreams version of FindPythonLibs patch

so we think it's probable cmake is causing this. mock builds are passing so
far.

-- Found PythonLibs: /usr/lib64/libpython3.3m.so (found suitable version
"3.3.2", minimum required is "3.0")
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136
(message):
  Could NOT find PythonInterp: Found unsuitable version "2.7.6", but
required
  is at least "3.0" (found /usr/bin/python)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:341
(_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPythonInterp.cmake:153
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:18 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/dnf/py3/CMakeFiles/CMakeOutput.log".
error: Bad exit status from /var/tmp/rpm-tmp.eGxvxC (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.eGxvxC (%build)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps
builddir/build/SPECS/dnf.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line
70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 376, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for
output.\n #
%s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps
builddir/build/SPECS/dnf.spec']
LEAVE do --> EXCEPTION RAISED

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


diff -rupN cmake/Modules/FindPythonLibs.cmake new/Modules/FindPythonLibs.cmake
--- cmake/Modules/FindPythonLibs.cmake	2013-04-12 14:09:08.470669049 -0500
+++ new/Modules/FindPythonLibs.cmake	2013-04-12 15:41:15.789496153 -0500
@@ -69,10 +69,21 @@ endif()
 
 # Set up the versions we know about, in the order we will search. Always add
 # the user supplied additional versions to the front.
-set(_Python_VERSIONS
-  ${Python_ADDITIONAL_VERSIONS}
-  ${_PYTHON_FIND_OTHER_VERSIONS}
-  )
+# If FindPythonInterp has already found the major and minor version, 
+# insert that version between the user supplied versions and the stock
+# version list. 
+if(DEFINED PYTHON_VERSION_MAJOR AND DEFINED PYTHON_VERSION_MINOR)
+  set(_Python_VERSIONS
+    ${Python_ADDITIONAL_VERSIONS}
+    ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}
+    ${_PYTHON_FIND_OTHER_VERSIONS}
+    )
+else()
+  set(_Python_VERSIONS
+    ${Python_ADDITIONAL_VERSIONS}
+    ${_PYTHON_FIND_OTHER_VERSIONS}
+    )
+endif()
 
 unset(_PYTHON_FIND_OTHER_VERSIONS)
 unset(_PYTHON1_VERSIONS)
-- 

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to