pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/lldb/patches



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Dec 23 00:14:08 UTC 2018

Added Files:
        pkgsrc/devel/lldb/patches: patch-source_API_CMakeLists.txt
            patch-source_Host_CMakeLists.txt

Log Message:
lldb: add patches to fix building on Darwin


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/lldb/patches/patch-source_API_CMakeLists.txt \
    pkgsrc/devel/lldb/patches/patch-source_Host_CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/lldb/patches/patch-source_API_CMakeLists.txt
diff -u /dev/null pkgsrc/devel/lldb/patches/patch-source_API_CMakeLists.txt:1.1
--- /dev/null   Sun Dec 23 00:14:08 2018
+++ pkgsrc/devel/lldb/patches/patch-source_API_CMakeLists.txt   Sun Dec 23 00:14:08 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-source_API_CMakeLists.txt,v 1.1 2018/12/23 00:14:08 adam Exp $
+
+Fix finding libxml2's includes.
+
+--- source/API/CMakeLists.txt.orig     2018-12-22 21:06:11.000000000 +0000
++++ source/API/CMakeLists.txt
+@@ -4,6 +4,10 @@ endif()
+ 
+ get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS)
+ 
++if (LIBXML2_FOUND)
++  include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
++endif()
++
+ add_lldb_library(liblldb SHARED
+   SBAddress.cpp
+   SBAttachInfo.cpp
Index: pkgsrc/devel/lldb/patches/patch-source_Host_CMakeLists.txt
diff -u /dev/null pkgsrc/devel/lldb/patches/patch-source_Host_CMakeLists.txt:1.1
--- /dev/null   Sun Dec 23 00:14:08 2018
+++ pkgsrc/devel/lldb/patches/patch-source_Host_CMakeLists.txt  Sun Dec 23 00:14:08 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-source_Host_CMakeLists.txt,v 1.1 2018/12/23 00:14:08 adam Exp $
+
+On Darwin, also use libxml2 provided by PkgSrc.
+
+--- source/Host/CMakeLists.txt.orig    2018-12-22 21:03:37.000000000 +0000
++++ source/Host/CMakeLists.txt
+@@ -145,13 +145,9 @@ set(EXTRA_LIBS)
+ if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
+   list(APPEND EXTRA_LIBS kvm)
+ endif ()
+-if (APPLE)
+-  list(APPEND EXTRA_LIBS xml2)
+-else ()
+-  if (LIBXML2_FOUND)
+-    list(APPEND EXTRA_LIBS ${LIBXML2_LIBRARIES})
+-  endif()
+-endif ()
++if (LIBXML2_FOUND)
++  list(APPEND EXTRA_LIBS ${LIBXML2_LIBRARIES})
++endif()
+ if (HAVE_LIBDL)
+   list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS})
+ endif()



Home | Main Index | Thread Index | Old Index