pkgsrc-WIP-changes archive

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

lldb-git: Enable Linux Process plugin on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Dec 14 18:17:46 2016 +0100
Changeset:	4b00674e876ebfe427743759de13ead420112fd4

Modified Files:
	lldb-git/distinfo
Added Files:
	lldb-git/patches/patch-cmake_LLDBDependencies.cmake
	lldb-git/patches/patch-source_CMakeLists.txt
	lldb-git/patches/patch-source_Plugins_Process_CMakeLists.txt
	lldb-git/patches/patch-tools_lldb-server_CMakeLists.txt

Log Message:
lldb-git: Enable Linux Process plugin on NetBSD

This is a part of porting Linux remote process plugin to NetBSD.

First goal: detect what breaks and what needs to be abstracted.

The Linux plugin will be transformed to common code.

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4b00674e876ebfe427743759de13ead420112fd4

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

diffstat:
 lldb-git/distinfo                                  |  4 ++++
 .../patches/patch-cmake_LLDBDependencies.cmake     | 12 ++++++++++
 lldb-git/patches/patch-source_CMakeLists.txt       | 12 ++++++++++
 .../patch-source_Plugins_Process_CMakeLists.txt    | 12 ++++++++++
 .../patches/patch-tools_lldb-server_CMakeLists.txt | 26 ++++++++++++++++++++++
 5 files changed, 66 insertions(+)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index a4de524..46df2e4 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -12,8 +12,12 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-cmake_LLDBDependencies.cmake) = c74b2e92695bd5e0ef2f6aca2b1157024c20e89e
+SHA1 (patch-source_CMakeLists.txt) = d280b1a64b272c4bbdcdab838e69301eb17af732
+SHA1 (patch-source_Plugins_Process_CMakeLists.txt) = be993a6f54da5b09a44e0ca9e4dea96012e539d9
 SHA1 (patch-tools_lldb-mi_MICmnBase.cpp) = 851c82ac61e1241018755fbd7236af00379ac986
 SHA1 (patch-tools_lldb-mi_MICmnBase.h) = f550d5e10bcf02fb46472733acdbb820791f22e5
 SHA1 (patch-tools_lldb-mi_MIDriver.cpp) = bf1b5399e82bcfe54d6d852f64ed155328f2064d
 SHA1 (patch-tools_lldb-mi_MIUtilString.cpp) = 200d9712753b5559da79c2e16fa0889fea1e9432
 SHA1 (patch-tools_lldb-mi_MIUtilString.h) = 7e7befec383f88502a97aec509ba39477efde37d
+SHA1 (patch-tools_lldb-server_CMakeLists.txt) = ce9c14973f98fe3669b56886d6bf2033630c5aa7
diff --git a/lldb-git/patches/patch-cmake_LLDBDependencies.cmake b/lldb-git/patches/patch-cmake_LLDBDependencies.cmake
new file mode 100644
index 0000000..2eec517
--- /dev/null
+++ b/lldb-git/patches/patch-cmake_LLDBDependencies.cmake
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- cmake/LLDBDependencies.cmake.orig	2016-12-14 14:10:24.000000000 +0000
++++ cmake/LLDBDependencies.cmake
+@@ -115,6 +115,7 @@ endif ()
+ # NetBSD-only libraries
+ if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
+   list(APPEND LLDB_USED_LIBS
++    lldbPluginProcessLinux
+     lldbPluginProcessPOSIX
+     )
+ endif ()
diff --git a/lldb-git/patches/patch-source_CMakeLists.txt b/lldb-git/patches/patch-source_CMakeLists.txt
new file mode 100644
index 0000000..dccf5ff
--- /dev/null
+++ b/lldb-git/patches/patch-source_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- source/CMakeLists.txt.orig	2016-12-14 14:10:24.000000000 +0000
++++ source/CMakeLists.txt
+@@ -16,6 +16,7 @@ endif ()
+ 
+ if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
+ include_directories(
++  Plugins/Process/Linux
+   Plugins/Process/POSIX
+   )
+ endif ()
diff --git a/lldb-git/patches/patch-source_Plugins_Process_CMakeLists.txt b/lldb-git/patches/patch-source_Plugins_Process_CMakeLists.txt
new file mode 100644
index 0000000..c7bb39c
--- /dev/null
+++ b/lldb-git/patches/patch-source_Plugins_Process_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- source/Plugins/Process/CMakeLists.txt.orig	2016-12-14 14:10:24.000000000 +0000
++++ source/Plugins/Process/CMakeLists.txt
+@@ -5,6 +5,7 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "FreeB
+   add_subdirectory(FreeBSD)
+   add_subdirectory(POSIX)
+ elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
++  add_subdirectory(Linux)
+   add_subdirectory(POSIX)
+ elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
+   add_subdirectory(Windows/Common)
diff --git a/lldb-git/patches/patch-tools_lldb-server_CMakeLists.txt b/lldb-git/patches/patch-tools_lldb-server_CMakeLists.txt
new file mode 100644
index 0000000..f93d142
--- /dev/null
+++ b/lldb-git/patches/patch-tools_lldb-server_CMakeLists.txt
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- tools/lldb-server/CMakeLists.txt.orig	2016-12-14 14:10:24.000000000 +0000
++++ tools/lldb-server/CMakeLists.txt
+@@ -17,6 +17,7 @@ endif ()
+ if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
+ include_directories(
+   ../../../../llvm/include
++  ../../source/Plugins/Process/Linux
+   ../../source/Plugins/Process/POSIX
+   )
+ endif ()
+@@ -84,6 +85,13 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
+    )
+ endif ()
+ 
++if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
++  list(APPEND LLDB_USED_LIBS
++    lldbPluginProcessLinux
++    lldbPluginProcessPOSIX
++   )
++endif ()
++
+ # Darwin-only libraries
+ if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
+   list(APPEND LLDB_USED_LIBS


Home | Main Index | Thread Index | Old Index