FTBFS with Python 3.5 as supported version in Wily

Bug #1492287 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-shell (Ubuntu)
Expired
High
Unassigned

Bug Description

In Wily, we enable Python 3.5 as a supported (but not default) Python 3 version. We have a PPA where we make Python 3.5 the default version. unity-scopes-shell fails to build in this PPA. Here is the buildlog:

https://launchpadlibrarian.net/216373229/buildlog_ubuntu-wily-amd64.unity-scopes-shell_0.5.5%2B15.10.20150826-0ubuntu1_BUILDING.txt.gz

A cursory look seems to indicate that the cmake files aren't prepared to handle the case where Python 3.5 is the default Python 3 version. A local build of the wily package, where 3.5 is supported but not default also FTBFS but in a different way. I will attach the local buildlog for that failure.

Revision history for this message
Barry Warsaw (barry) wrote :
Barry Warsaw (barry)
tags: added: python3.5
Revision history for this message
Matthias Klose (doko) wrote :

hardcoding 3.4, no thank you. uploaded the same quirk using 3.5 to xenial. please fix it properly.

Changed in unity-scopes-shell (Ubuntu):
milestone: none → ubuntu-15.11
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

--- unity-scopes-shell-0.5.5+15.10.20151019.orig/src/python/scope_harness/CMakeLists.txt
+++ unity-scopes-shell-0.5.5+15.10.20151019/src/python/scope_harness/CMakeLists.txt
@@ -1,6 +1,6 @@
 include(FindPkgConfig)
-find_package(PythonLibs 3.4 REQUIRED)
-find_package(Boost COMPONENTS python-py34 REQUIRED)
+find_package(PythonLibs 3.5 REQUIRED)
+find_package(Boost COMPONENTS python-py35 REQUIRED)

 include_directories(
         ${PYTHON_INCLUDE_DIRS}

Mathew Hodson (mhodson)
Changed in unity-scopes-shell (Ubuntu):
milestone: ubuntu-15.11 → none
Revision history for this message
Paweł Stołowski (stolowski) wrote :

There is now a slightly more complicated check in the CMakeLists.txt:

# Ubuntu xenial needs python 3.5
if(${DISTRIBUTION} MATCHES "vivid" OR ${DISTRIBUTION} MATCHES "wily")
    find_package(PythonLibs 3.4 REQUIRED)
    find_package(Boost COMPONENTS python-py34 REQUIRED)
else()
    find_package(PythonLibs 3.5 REQUIRED)
    find_package(Boost COMPONENTS python-py35 REQUIRED)
endif()

I'm not sure if there is a better fix for this?

Changed in unity-scopes-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity-scopes-shell (Ubuntu) because there has been no activity for 60 days.]

Changed in unity-scopes-shell (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.