pkgsrc-WIP-changes archive

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

llvm-netbsd: Try to handle NetBSD specific path with debuginfo files



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Jun 23 14:35:21 2018 +0200
Changeset:	bffa22fd318161fcf38127673d4a65699a12b1ea

Modified Files:
	llvm-netbsd/distinfo
Added Files:
	llvm-netbsd/patches/patch-lib_DebugInfo_Symbolize_Symbolize.cpp

Log Message:
llvm-netbsd: Try to handle NetBSD specific path with debuginfo files

Register /usr/libdata/debug in Symbolize.cpp for NetBSD.

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

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

diffstat:
 llvm-netbsd/distinfo                                   |  1 +
 .../patch-lib_DebugInfo_Symbolize_Symbolize.cpp        | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/llvm-netbsd/distinfo b/llvm-netbsd/distinfo
index 38f15ac484..933b983796 100644
--- a/llvm-netbsd/distinfo
+++ b/llvm-netbsd/distinfo
@@ -2,5 +2,6 @@ $NetBSD$
 
 SHA1 (patch-cmake_config-ix.cmake) = 55f484948dfb3293917ede3144d7c83f78c555b3
 SHA1 (patch-cmake_modules_AddLLVM.cmake) = 8b3f8fb7377f741796f1b427b6ef5f830059a8f9
+SHA1 (patch-lib_DebugInfo_Symbolize_Symbolize.cpp) = a708d0cea7318fce10ea71c21bb6ce3250bece18
 SHA1 (patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp) = 31d2936ccbab17067faf4f3f1695d1002022eb56
 SHA1 (patch-lib_Transforms_Instrumentation_InstrProfiling.cpp) = 653876deaaecb4aff8fd052d45da7c6516e876fc
diff --git a/llvm-netbsd/patches/patch-lib_DebugInfo_Symbolize_Symbolize.cpp b/llvm-netbsd/patches/patch-lib_DebugInfo_Symbolize_Symbolize.cpp
new file mode 100644
index 0000000000..bea54496b4
--- /dev/null
+++ b/llvm-netbsd/patches/patch-lib_DebugInfo_Symbolize_Symbolize.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- lib/DebugInfo/Symbolize/Symbolize.cpp.orig	2018-06-07 17:17:06.000000000 +0000
++++ lib/DebugInfo/Symbolize/Symbolize.cpp
+@@ -192,8 +192,13 @@ bool findDebugBinary(const std::string &
+     Result = DebugPath.str();
+     return true;
+   }
++#if defined(__NetBSD__)
++  // Try /usr/libdata/debug/path/to/original_binary/debuglink_name
++  DebugPath = "/usr/libdata/debug";
++#else
+   // Try /usr/lib/debug/path/to/original_binary/debuglink_name
+   DebugPath = "/usr/lib/debug";
++#endif
+   llvm::sys::path::append(DebugPath, llvm::sys::path::relative_path(OrigDir),
+                           DebuglinkName);
+   if (checkFileCRC(DebugPath, CRCHash)) {


Home | Main Index | Thread Index | Old Index