pdal ftbfs because cmake on Ubuntu points to multi-arch directories

Bug #1596391 reported by Jeremy Bícha
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Invalid
Undecided
Unassigned
libcork (Ubuntu)
Fix Released
Undecided
Unassigned
pdal (Ubuntu)
Fix Released
High
Unassigned

Bug Description

https://launchpad.net/ubuntu/+source/cmake/3.5.2-1ubuntu1

From the cmake changelog, I don't know if it's obvious but this means that Ubuntu is installing libraries in a different location than Debian if built with cmake:

Compare the output of:
https://buildd.debian.org/status/package.php?p=pdal

-- Installing: /«PKGBUILDDIR»/debian/tmp/usr/lib/pdal/cmake/PDALTargets.cmake

https://launchpad.net/ubuntu/+source/pdal/1.2.0-2

-- Installing: /«PKGBUILDDIR»/debian/tmp/usr/lib/x86_64-linux-gnu/pdal/cmake/PDALTargets.cmake

This later causes pdal to ftbfs because the debian/rules expect the non-multiarch directories.

Tags: ftbfs
Jeremy Bícha (jbicha)
Changed in cmake (Ubuntu):
importance: Undecided → High
importance: High → Undecided
Changed in pdal (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Jeremy, I'm afraid this is the intended behaviour

cmake (look at the delta) does this:
https://patches.ubuntu.com/c/cmake/cmake_3.5.2-1ubuntu1.patch

+ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
+ SET(CMAKE_INSTALL_LIBDIR "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
+ endif()

and pdal does:

      if (DEFINED CMAKE_INSTALL_LIBDIR)
          set(PDAL_LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}")
      else()
          set(PDAL_LIB_INSTALL_DIR "lib")
      endif()

so, this seems to be the reason for this.
what about fixing pdal to be multiarch?

Revision history for this message
Bas Couwenberg (sebastic) wrote :

This is fixed in pdal (1.2.0-4).

Changed in pdal (Ubuntu):
status: Triaged → Fix Released
Changed in cmake (Ubuntu):
status: New → Invalid
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
Changed in libcork (Ubuntu):
status: New → Fix Committed
Changed in libcork (Ubuntu):
status: Fix Committed → Fix Released
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.