pkgsrc-WIP-changes archive

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

edb-debugger-git: Add some glue for NetBSD platform code



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Feb 19 00:29:15 2017 +0100
Changeset:	a6dc2ae097f8124b59fca03af866ff411961eb34

Modified Files:
	edb-debugger-git/distinfo
Added Files:
	edb-debugger-git/patches/patch-plugins_Assembler_DialogAssembler.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_CMakeLists.txt

Log Message:
edb-debugger-git: Add some glue for NetBSD platform code

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

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

diffstat:
 edb-debugger-git/distinfo                          |  2 +
 .../patch-plugins_Assembler_DialogAssembler.cpp    | 16 +++++++
 .../patch-plugins_DebuggerCore_CMakeLists.txt      | 50 ++++++++++++++++++++++
 3 files changed, 68 insertions(+)

diffs:
diff --git a/edb-debugger-git/distinfo b/edb-debugger-git/distinfo
index 35f2e393e0..e850467af9 100644
--- a/edb-debugger-git/distinfo
+++ b/edb-debugger-git/distinfo
@@ -4,6 +4,8 @@ SHA1 (edb-debugger-0.9.21.tar.gz) = eff050b5ec53f02ebc96dbbb80f1731036e2c6f6
 RMD160 (edb-debugger-0.9.21.tar.gz) = d7821e07b607667090b1158b559053856ef077de
 SHA512 (edb-debugger-0.9.21.tar.gz) = 88a04cafb2c27a3af6bcfc48c841c795fb5bba348f64fe52957716c2c03e4cd056d045b241135c5be7fd7174d2c5a35fa5c95dc2b6aad4fb5c04f4fe36ab4f0d
 Size (edb-debugger-0.9.21.tar.gz) = 996932 bytes
+SHA1 (patch-plugins_Assembler_DialogAssembler.cpp) = 2bd6418dc078aae0c84c6092f15619e202e43b31
+SHA1 (patch-plugins_DebuggerCore_CMakeLists.txt) = 18b3f0bd7c7c7ec4eaa6526c81b7c4299c7ee3f4
 SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp) = c89776102c7e6ec66700bd0a6a59e0247e9599ba
 SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h) = ff4c169d2df9093f7b218b444227a859e66e4451
 SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp) = 813bd82ae92d75cddb0935e0f94b782c9651eb40
diff --git a/edb-debugger-git/patches/patch-plugins_Assembler_DialogAssembler.cpp b/edb-debugger-git/patches/patch-plugins_Assembler_DialogAssembler.cpp
new file mode 100644
index 0000000000..66a18c3f44
--- /dev/null
+++ b/edb-debugger-git/patches/patch-plugins_Assembler_DialogAssembler.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- plugins/Assembler/DialogAssembler.cpp.orig	2017-02-18 21:21:09.000000000 +0000
++++ plugins/Assembler/DialogAssembler.cpp
+@@ -213,9 +213,11 @@ void DialogAssembler::on_buttonBox_accep
+ 						}
+ 					}
+ 				} else if(replacement_size==0) {
++#if 0
+ 					const auto stderr=process.readAllStandardError();
+ 					QMessageBox::warning(this, tr("Error In Code"), tr("Got zero bytes from the assembler")+
+ 																	(stderr.isEmpty()?"":tr(", here's what it has to say:\n\n")+stderr));
++#endif
+ 					return;
+ 				} else {
+ 					if(ui->keepSize->isChecked()) {
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_CMakeLists.txt b/edb-debugger-git/patches/patch-plugins_DebuggerCore_CMakeLists.txt
new file mode 100644
index 0000000000..a65fb5ee8b
--- /dev/null
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_CMakeLists.txt
@@ -0,0 +1,50 @@
+$NetBSD$
+
+--- plugins/DebuggerCore/CMakeLists.txt.orig	2017-02-18 21:21:09.000000000 +0000
++++ plugins/DebuggerCore/CMakeLists.txt
+@@ -9,7 +9,7 @@ include("${PROJECT_SOURCE_DIR}/cmake/Ena
+ set(PluginName "DebuggerCore")
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+ 
+-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
++if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD")
+ 
+ set(UI_FILES
+ 	unix/linux/DialogMemoryAccess.ui
+@@ -76,6 +76,36 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux"
+ 	)
+ endif()
+ 
++if(${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD")
++
++	include_directories(
++		"unix/netbsd"
++	)
++
++	set(DebuggerCore_SRCS
++		${DebuggerCore_SRCS}
++		unix/netbsd/DebuggerCore.cpp
++		unix/netbsd/DebuggerCore.h
++		unix/netbsd/PlatformCommon.cpp
++		unix/netbsd/PlatformCommon.h
++		unix/netbsd/PlatformEvent.cpp
++		unix/netbsd/PlatformEvent.h
++		unix/netbsd/PlatformProcess.cpp
++		unix/netbsd/PlatformProcess.h
++		unix/netbsd/PlatformRegion.cpp
++		unix/netbsd/PlatformRegion.h
++		unix/netbsd/PlatformState.cpp
++		unix/netbsd/PlatformState.h
++		unix/netbsd/PlatformThread.cpp
++		unix/netbsd/PlatformThread.h	
++		unix/netbsd/FeatureDetect.cpp
++		unix/netbsd/FeatureDetect.h
++		unix/netbsd/DialogMemoryAccess.cpp
++		unix/netbsd/DialogMemoryAccess.h
++		${UI_H}
++	)
++endif()
++
+ add_library(${PluginName} SHARED ${DebuggerCore_SRCS} )
+ 
+ if(Qt5Core_FOUND)


Home | Main Index | Thread Index | Old Index