Source: cmake
Version: 3.11.2-1
Severity: important
Tags: patch
Usertags: linux-any, freebsd-any, hurd-any

Hello,

Currently cmake does FTBFs on kfreebsd-any due to a missing dependency
on libfreebsd-glue-0 and a missing dependency on freebsd-glue,
providing the link:
/usr/lib/libfreebsd-glue.so -> /lib/libfreebsd-glue.so.0

Ideally a library libfreebsd-glue-dev should be split out of the
package freebsd-glue. Until that happens, the added dependency will do,
see the attached file debian_control.diff.

With the attached patches bootstrap.patch, debian_control.diff, and the
upcoming bug report on linux-any,providing
Source_Modules_FindLibUV.cmake.diff cmake builds fine. 
Index: cmake-3.11.2/bootstrap
===================================================================
--- cmake-3.11.2.orig/bootstrap
+++ cmake-3.11.2/bootstrap
@@ -1352,7 +1352,7 @@ else
       libs="${libs} -ldl -lrt"
       ;;
     *BSD*)
-      libs="${libs} -lkvm"
+      libs="${libs} -lkvm -lfreebsd-glue"
       ;;
     *SunOS*)
       # Normally libuv uses '-D_XOPEN_SOURCE=500 -std=c90' on Solaris 5.10,
--- a/debian/control	2018-05-19 10:51:17.000000000 +0200
+++ b/debian_control	2018-07-29 17:38:11.272777000 +0200
@@ -15,6 +15,7 @@
                librhash-dev,
                libuv1-dev (>= 1.10),
                procps [!hurd-any],
+               freebsd-glue [kfreebsd-any],
                python3-sphinx,
                qtbase5-dev <!stage1>,
                zlib1g-dev

Reply via email to