[Bug 1589223] [NEW] MultiArchCross.cmake breaks ubuntuBSD
Launchpad Bug Tracker
1589223 at bugs.launchpad.net
Mon Jun 6 08:51:50 UTC 2016
You have been subscribed to a public bug by LocutusOfBorg (costamagnagianfranco):
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
** Affects: cmake (Ubuntu)
Importance: Undecided
Status: New
** Tags: patch ubuntubsd
--
MultiArchCross.cmake breaks ubuntuBSD
https://bugs.launchpad.net/bugs/1589223
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list