[Bug 1589223] Re: MultiArchCross.cmake breaks ubuntuBSD

Mathew Hodson mathew.hodson at gmail.com
Mon Jun 6 20:04:00 UTC 2016


** Changed in: cmake (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1589223

Title:
  MultiArchCross.cmake breaks ubuntuBSD

Status in cmake package in Ubuntu:
  New

Bug description:
  debian/MultiArchCross.cmake attempts to set CMAKE_SYSTEM_NAME if it
  wasn't already:

    if(NOT DEFINED CMAKE_SYSTEM_NAME)
      if(CMAKE_DEB_HOST_ARCH_OS STREQUAL "linux-gnu")
        SET(CMAKE_SYSTEM_NAME Linux)
      endif()

      if(CMAKE_DEB_HOST_ARCH_OS STREQUAL "kfreebsd")
        SET(CMAKE_SYSTEM_NAME GNU/kFreeBSD)
      endif()
    endif()

  However on Linux CMAKE_SYSTEM_NAME is not actually set because
  DEB_HOST_ARCH_OS equals linux (not linux-gnu), and the STREQUAL
  comparison fails. So no problem there :-)

  On ubuntuBSD the comparison succeeds and this breaks things because
  setting CMAKE_SYSTEM_NAME forces cmake into cross-compiling mode (see
  how CMAKE_CROSSCOMPILING is enabled in CMakeDetermineSystem.cmake).
  The resulting package fails to build other packages that need native
  compilation (like mysql-5.7).

  So could you just remove the whole thing? You can use patch below:

  https://bazaar.launchpad.net/~ubuntubsd/ubuntubsd/patches-
  xenial/download/jon%40ubuntubsd.org-20160605103927-6bgexfj2rria1b4v/cmake.diff-20160426081048-uj0038tten98r2t3-6/cmake.diff

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1589223/+subscriptions



More information about the Ubuntu-sponsors mailing list