Blame SOURCES/dyninst-10.1.0-cmake.patch

563cb0
# rhel6 and rhel7 need more recent tbb and boost libraries.  The dyninst external project setup
563cb0
# will download, build, and install to the final location.  We change that to build from source.tar
563cb0
# included in the src.rpm, install in the rpmbuild/BUILD tree and finally install into rpmbuild/BUILDTREE
563cb0
# We also remove the dependency on cmake 3
563cb0
563cb0
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/CMakeLists.txt.orig	2019-07-16 22:08:06.406557467 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/CMakeLists.txt	2019-07-16 22:07:50.790557717 -0400
563cb0
@@ -1,2 +1,2 @@
563cb0
-cmake_minimum_required (VERSION 3.4.0)
563cb0
+cmake_minimum_required (VERSION 2.8)
563cb0
 project (Dyninst)
563cb0
@@ -227,1 +227,24 @@
563cb0
 install(FILES ${PROJECT_BINARY_DIR}/CMakeCache.txt DESTINATION ${INSTALL_CMAKE_DIR})
563cb0
+
563cb0
+# RHEL 6/7 need more recent TBB and BOOST libraries, cmake will build them as an external project.
563cb0
+# Copy resulting libraries from temp install dir to dyninst install dir
563cb0
+# Note: FILE GLOB does not work as make has not yet run so we need to explicitly set the list
563cb0
+
563cb0
+set(TBB_AND_BOOST_LIBS tbb/install/lib/libtbbmalloc_proxy.so.2 tbb/install/lib/libtbbmalloc.so.2 tbb/install/lib/libtbb.so.2 boost/install/lib/libboost_atomic.so.1.66.0 boost/install/lib/libboost_chrono.so.1.66.0 boost/install/lib/libboost_date_time.so.1.66.0 boost/install/lib/libboost_filesystem.so.1.66.0 boost/install/lib/libboost_system.so.1.66.0 boost/install/lib/libboost_thread.so.1.66.0 boost/install/lib/libboost_timer.so.1.66.0)
563cb0
+
563cb0
+get_filename_component(install_lib_dir_dir ${INSTALL_LIB_DIR} DIRECTORY)
563cb0
+get_filename_component(dyninst_dir ${INSTALL_LIB_DIR} NAME)
563cb0
+get_filename_component(lib_dir ${install_lib_dir_dir} NAME)
563cb0
+get_filename_component(install_include_dir_dir ${INSTALL_INCLUDE_DIR} DIRECTORY)
563cb0
+get_filename_component(include_dir ${install_include_dir_dir} NAME)
563cb0
+foreach(F ${TBB_AND_BOOST_LIBS})
563cb0
+  # DESTDIR is prefixed to the install dir
563cb0
+  message("install ${Dyninst_BINARY_DIR}/${F} into ${CMAKE_INSTALL_PREFIX}/${lib_dir}/${dyninst_dir}")
563cb0
+  install(PROGRAMS "${Dyninst_BINARY_DIR}/${F}" DESTINATION "${CMAKE_INSTALL_PREFIX}/${lib_dir}/${dyninst_dir}")
563cb0
+endforeach()
563cb0
+message("install tbb/install/include into ${CMAKE_INSTALL_PREFIX}/${include_dir}/tbb}")
563cb0
+install(DIRECTORY DESTINATION "${CMAKE_INSTALL_PREFIX}/${include_dir}/tbb/")
563cb0
+install(DIRECTORY "tbb/install/include/" DESTINATION "${CMAKE_INSTALL_PREFIX}/${include_dir}")
563cb0
+# message("install boost/install/include into ${CMAKE_INSTALL_PREFIX}/${include_dir}/boost}")
563cb0
+# install(DIRECTORY DESTINATION "${CMAKE_INSTALL_PREFIX}/${include_dir}/boost/")
563cb0
+# install(DIRECTORY "boost/install/include/" DESTINATION "${CMAKE_INSTALL_PREFIX}/${include_dir}/")
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/ElfUtils.cmake.orig	2019-07-04 15:29:42.310512456 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/ElfUtils.cmake	2019-05-16 14:40:05.000000000 -0400
563cb0
@@ -35,3 +35,3 @@
563cb0
 # Minimum acceptable version of elfutils
563cb0
-set(_min_version 0.173)
563cb0
+set(_min_version 0.170)
563cb0
 set(ElfUtils_MIN_VERSION ${_min_version}
563cb0
563cb0
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/ThreadingBuildingBlocks.cmake.orig	2019-07-15 22:26:08.788921240 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/ThreadingBuildingBlocks.cmake	2019-07-16 20:37:56.804643938 -0400
563cb0
@@ -105,7 +105,8 @@
563cb0
   endif()
563cb0
   
563cb0
   # Forcibly update the cache variables
563cb0
-  set(TBB_ROOT_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "TBB root directory" FORCE)
563cb0
+#  set(TBB_ROOT_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "TBB root directory" FORCE)
563cb0
+  set(TBB_ROOT_DIR "${CMAKE_BINARY_DIR}/tbb/install" CACHE PATH "TBB root directory" FORCE)
563cb0
   set(TBB_INCLUDE_DIRS ${TBB_ROOT_DIR}/include CACHE PATH "TBB include directory" FORCE)
563cb0
   set(TBB_LIBRARY_DIRS ${TBB_ROOT_DIR}/lib CACHE PATH "TBB library directory" FORCE)
563cb0
   set(TBB_DEFINITIONS "" CACHE STRING "TBB compiler definitions" FORCE)
563cb0
@@ -142,7 +143,7 @@
563cb0
   ExternalProject_Add(
563cb0
     TBB
563cb0
     PREFIX ${_tbb_prefix_dir}
563cb0
-    URL https://github.com/01org/tbb/archive/${_tbb_ver_major}_U${_tbb_ver_minor}.tar.gz
563cb0
+    URL /tmp/2018_U6.tar.gz
563cb0
     BUILD_IN_SOURCE 1
563cb0
     CONFIGURE_COMMAND ""
563cb0
     BUILD_COMMAND
563cb0
563cb0
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/Boost.cmake.orig	2019-07-15 22:26:08.789921240 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/Boost.cmake	2019-07-16 09:32:52.921281788 -0400
563cb0
@@ -49,3 +49,3 @@
563cb0
 # Need at least Boost-1.61 for filesytem components
563cb0
-set(_boost_min_version 1.61.0)
563cb0
+set(_boost_min_version 1.66.0)
563cb0
 
563cb0
@@ -176,3 +176,4 @@
563cb0
   # Change the base directory
563cb0
-  set(Boost_ROOT_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "Base directory the of Boost installation" FORCE)
563cb0
+#  set(Boost_ROOT_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "Base directory the of Boost installation" FORCE)
563cb0
+  set(Boost_ROOT_DIR "${CMAKE_BINARY_DIR}/boost/install" CACHE PATH "TBB root directory" FORCE)
563cb0
 
563cb0
@@ -210,3 +211,3 @@
563cb0
 	# list(JOIN ...) is in cmake 3.12
563cb0
-    string(CONCAT _boost_lib_names "${_boost_lib_names}${c},")
563cb0
+    set(_boost_lib_names "${_boost_lib_names}${c},")
563cb0
   endforeach()
563cb0
@@ -218,3 +219,3 @@
563cb0
     PREFIX ${CMAKE_BINARY_DIR}/boost
563cb0
-    URL http://downloads.sourceforge.net/project/boost/boost/${_boost_download_version}/boost_${_boost_download_filename}.zip
563cb0
+    URL /tmp/boost_${_boost_download_filename}.tar.bz2
563cb0
     BUILD_IN_SOURCE 1
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindBoost.cmake.orig	2019-07-04 13:11:35.161644923 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindBoost.cmake	2019-07-04 13:13:25.646643157 -0400
563cb0
@@ -242,3 +242,3 @@
563cb0
 cmake_policy(PUSH)
563cb0
-cmake_policy(SET CMP0057 NEW) # if IN_LIST
563cb0
+# cmake_policy(SET CMP0057 NEW) # if IN_LIST
563cb0
 
563cb0
@@ -338,3 +338,3 @@
563cb0
       if("x${basename}" STREQUAL "xTHREAD" AND NOT TARGET Threads::Threads)
563cb0
-        string(APPEND Boost_ERROR_REASON_THREAD " (missing dependency: Threads)")
563cb0
+        set(Boost_ERROR_REASON_THREAD "${Boost_ERROR_REASON_THREAD} (missing dependency: Threads)")
563cb0
         set(Boost_THREAD_FOUND OFF)
563cb0
@@ -1021,4 +1021,8 @@
563cb0
       foreach(componentdep ${_Boost_${uppercomponent}_DEPENDENCIES})
563cb0
-        if (NOT ("${componentdep}" IN_LIST _boost_processed_components OR "${componentdep}" IN_LIST _boost_new_components))
563cb0
-          list(APPEND _boost_new_components ${componentdep})
563cb0
+        list (FIND _boost_processed_components ${componentdep} _index)
563cb0
+	if (${_index} EQUAL -1)
563cb0
+	  list (FIND _boost_new_components ${componentdep} _index)
563cb0
+	  if (${_index} EQUAL -1)
563cb0
+            list(APPEND _boost_new_components ${componentdep})
563cb0
+	  endif()
563cb0
         endif()
563cb0
@@ -1199,9 +1203,9 @@
563cb0
 # enable dynamic linking.
563cb0
-if(NOT TARGET Boost::diagnostic_definitions)
563cb0
-  add_library(Boost::diagnostic_definitions INTERFACE IMPORTED)
563cb0
-  add_library(Boost::disable_autolinking INTERFACE IMPORTED)
563cb0
-  add_library(Boost::dynamic_linking INTERFACE IMPORTED)
563cb0
-  set_target_properties(Boost::dynamic_linking PROPERTIES
563cb0
-    INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_DYN_LINK")
563cb0
-endif()
563cb0
+# if(NOT TARGET Boost::diagnostic_definitions)
563cb0
+#   add_library(Boost::diagnostic_definitions INTERFACE IMPORTED)
563cb0
+#   add_library(Boost::disable_autolinking INTERFACE IMPORTED)
563cb0
+#   add_library(Boost::dynamic_linking INTERFACE IMPORTED)
563cb0
+#   set_target_properties(Boost::dynamic_linking PROPERTIES
563cb0
+#     INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_DYN_LINK")
563cb0
+# endif()
563cb0
 if(WIN32)
563cb0
@@ -1387,4 +1391,5 @@
563cb0
 
563cb0
-  string(APPEND Boost_ERROR_REASON
563cb0
-    "Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}\nBoost include path: ${Boost_INCLUDE_DIR}")
563cb0
+  set(Boost_ERROR_REASON
563cb0
+    "${Boost_ERROR_REASON}
563cb0
+   Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}\nBoost include path: ${Boost_INCLUDE_DIR}")
563cb0
   if(Boost_DEBUG)
563cb0
@@ -1410,4 +1415,5 @@
563cb0
       # State that we found a version of Boost that is too new or too old.
563cb0
-      string(APPEND Boost_ERROR_REASON
563cb0
-        "\nDetected version of Boost is too ${_Boost_VERSION_AGE}. Requested version was ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}")
563cb0
+      set(Boost_ERROR_REASON
563cb0
+        "${Boost_ERROR_REASON}
563cb0
+       \nDetected version of Boost is too ${_Boost_VERSION_AGE}. Requested version was ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}")
563cb0
       if (Boost_FIND_VERSION_PATCH)
563cb0
@@ -1417,5 +1423,5 @@
563cb0
       if (NOT Boost_FIND_VERSION_EXACT)
563cb0
-        string(APPEND Boost_ERROR_REASON " (or newer)")
563cb0
+        set(Boost_ERROR_REASON "${Boost_ERROR_REASON} (or newer)")
563cb0
       endif ()
563cb0
-      string(APPEND Boost_ERROR_REASON ".")
563cb0
+      set(Boost_ERROR_REASON "${Boost_ERROR_REASON}.")
563cb0
     endif ()
563cb0
@@ -1427,4 +1433,5 @@
563cb0
   set(Boost_FOUND 0)
563cb0
-  string(APPEND Boost_ERROR_REASON
563cb0
-    "Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers.")
563cb0
+  set(Boost_ERROR_REASON
563cb0
+    "${Boost_ERROR_REASON}
563cb0
+   Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers.")
563cb0
 endif()
563cb0
@@ -1518,3 +1525,3 @@
563cb0
           OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntel")
563cb0
-    string(APPEND _boost_DEBUG_ABI_TAG "g")
563cb0
+    set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}g")
563cb0
   endif()
563cb0
@@ -1523,6 +1530,6 @@
563cb0
 if(Boost_USE_DEBUG_PYTHON)
563cb0
-  string(APPEND _boost_DEBUG_ABI_TAG "y")
563cb0
+  set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}y")
563cb0
 endif()
563cb0
 #  d        using a debug version of your code
563cb0
-string(APPEND _boost_DEBUG_ABI_TAG "d")
563cb0
+set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}d")
563cb0
 #  p        using the STLport standard library rather than the
563cb0
@@ -1530,4 +1537,4 @@
563cb0
 if(Boost_USE_STLPORT)
563cb0
-  string(APPEND _boost_RELEASE_ABI_TAG "p")
563cb0
-  string(APPEND _boost_DEBUG_ABI_TAG "p")
563cb0
+  set(_boost_RELEASE_ABI_TAG "${_boost_RELEASE_ABI_TAG}p")
563cb0
+  set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}p")
563cb0
 endif()
563cb0
@@ -1537,4 +1544,4 @@
563cb0
 if(Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS)
563cb0
-  string(APPEND _boost_RELEASE_ABI_TAG "n")
563cb0
-  string(APPEND _boost_DEBUG_ABI_TAG "n")
563cb0
+  set(_boost_RELEASE_ABI_TAG "${_boost_RELEASE_ABI_TAG}n")
563cb0
+  set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}n")
563cb0
 endif()
563cb0
@@ -1554,3 +1561,3 @@
563cb0
   if(NOT "x${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "x" AND NOT Boost_VERSION VERSION_LESS 106600)
563cb0
-    string(APPEND _boost_ARCHITECTURE_TAG "-")
563cb0
+    set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}-")
563cb0
     # This needs to be kept in-sync with the section of CMakePlatformId.h.in
563cb0
@@ -1558,10 +1565,10 @@
563cb0
     if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL "IA64")
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "i")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}i")
563cb0
     elseif(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL "X86"
563cb0
               OR CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL "x64")
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "x")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}x")
563cb0
     elseif(CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "^ARM")
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "a")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}a")
563cb0
     elseif(CMAKE_CXX_COMPILER_ARCHITECTURE_ID STREQUAL "MIPS")
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "m")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}m")
563cb0
     endif()
563cb0
@@ -1569,5 +1576,5 @@
563cb0
     if(CMAKE_SIZEOF_VOID_P EQUAL 8)
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "64")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}64")
563cb0
     else()
563cb0
-      string(APPEND _boost_ARCHITECTURE_TAG "32")
563cb0
+      set(_boost_ARCHITECTURE_TAG "${_boost_ARCHITECTURE_TAG}32")
563cb0
     endif()
563cb0
@@ -1696,3 +1703,4 @@
563cb0
 # If thread is required, get the thread libs as a dependency
563cb0
-if("thread" IN_LIST Boost_FIND_COMPONENTS)
563cb0
+list (FIND Boost_FIND_COMPONENTS "thread" _index)
563cb0
+if (${_index} GREATER -1)
563cb0
   if(Boost_FIND_QUIETLY)
563cb0
@@ -1974,4 +1982,5 @@
563cb0
     # error message that lists the libraries we were unable to find.
563cb0
-    string(APPEND Boost_ERROR_REASON
563cb0
-      "\nCould not find the following")
563cb0
+    set(Boost_ERROR_REASON
563cb0
+      "${Boost_ERROR_REASON}
563cb0
+     \nCould not find the following")
563cb0
     if(Boost_USE_STATIC_LIBS)
563cb0
@@ -1979,8 +1988,10 @@
563cb0
     endif()
563cb0
-    string(APPEND Boost_ERROR_REASON
563cb0
-      " Boost libraries:\n")
563cb0
+    set(Boost_ERROR_REASON
563cb0
+      "${Boost_ERROR_REASON}
563cb0
+      Boost libraries:\n")
563cb0
     foreach(COMPONENT ${_Boost_MISSING_COMPONENTS})
563cb0
       string(TOUPPER ${COMPONENT} UPPERCOMPONENT)
563cb0
-      string(APPEND Boost_ERROR_REASON
563cb0
-        "        ${Boost_NAMESPACE}_${COMPONENT}${Boost_ERROR_REASON_${UPPERCOMPONENT}}\n")
563cb0
+      set(Boost_ERROR_REASON
563cb0
+        "${Boost_ERROR_REASON}
563cb0
+               ${Boost_NAMESPACE}_${COMPONENT}${Boost_ERROR_REASON_${UPPERCOMPONENT}}\n")
563cb0
     endforeach()
563cb0
@@ -1990,7 +2001,9 @@
563cb0
     if (${Boost_NUM_COMPONENTS_WANTED} EQUAL ${Boost_NUM_MISSING_COMPONENTS})
563cb0
-      string(APPEND Boost_ERROR_REASON
563cb0
-        "No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.")
563cb0
+      set(Boost_ERROR_REASON
563cb0
+        "${Boost_ERROR_REASON}
563cb0
+       No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.")
563cb0
     else ()
563cb0
-      string(APPEND Boost_ERROR_REASON
563cb0
-        "Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.")
563cb0
+      set(Boost_ERROR_REASON
563cb0
+        "${Boost_ERROR_REASON}
563cb0
+       Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.")
563cb0
     endif ()
563cb0
@@ -2017,5 +2030,5 @@
563cb0
     if(EXISTS "${_boost_LIB_DIR}/lib")
563cb0
-      string(APPEND _boost_LIB_DIR /lib)
563cb0
+      set(_boost_LIB_DIR "_boost_LIB_DIR/lib")
563cb0
     elseif(EXISTS "${_boost_LIB_DIR}/stage/lib")
563cb0
-      string(APPEND _boost_LIB_DIR "/stage/lib")
563cb0
+      set(_boost_LIB_DIR "${_boost_LIB_DIR}/stage/lib")
563cb0
     else()
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/DyninstSystemPaths.cmake.orig	2019-07-15 22:26:08.783921240 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/DyninstSystemPaths.cmake	2019-07-18 13:53:48.726269387 -0400
563cb0
@@ -1,2 +1,3 @@
563cb0
 set(DYNINST_SYSTEM_INCLUDE_PATHS
563cb0
+    ${INCLUDE_INSTALL_DIR}
563cb0
     /usr/include
563cb0
@@ -11,2 +12,3 @@
563cb0
 set(DYNINST_SYSTEM_LIBRARY_PATHS
563cb0
+    ${LIB_INSTALL_DIR}
563cb0
     /usr/lib
563cb0
@@ -22,1 +24,4 @@
563cb0
     ENV PATH)
563cb0
+foreach(F ${DYNINST_SYSTEM_LIBRARY_PATHS})
563cb0
+  message("DYNINST_SYSTEM_LIBRARY_PATHS " ${F})
563cb0
+endforeach()
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindLibElf.cmake.orig	2019-05-16 14:40:05.000000000 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindLibElf.cmake	2019-07-17 16:45:41.082644142 -0400
563cb0
@@ -45,5 +45,4 @@
563cb0
 find_library(LibElf_LIBRARIES
563cb0
-             NAMES libelf.so.1 libelf.so
563cb0
-             HINTS ${LibElf_ROOT_DIR}/lib ${LibElf_ROOT_DIR} ${LibElf_LIBRARYDIR}
563cb0
-             PATHS ${DYNINST_SYSTEM_LIBRARY_PATHS}
563cb0
+             NAMES libelf.so.dts.1 libelf.so.1 libelf.so 
563cb0
+             HINTS ${DYNINST_SYSTEM_LIBRARY_PATHS} ${LibElf_ROOT_DIR}/lib ${LibElf_ROOT_DIR} ${LibElf_LIBRARYDIR}
563cb0
              PATH_SUFFIXES ${_path_suffixes})
563cb0
--- dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindLibDwarf.cmake.orig	2019-05-16 14:40:05.000000000 -0400
563cb0
+++ dyninst-10.1.0/dyninst-10.1.0/cmake/Modules/FindLibDwarf.cmake	2019-07-17 21:53:14.098297367 -0400
563cb0
@@ -42,5 +42,4 @@
563cb0
 find_library(LibDwarf_LIBRARIES
563cb0
-             NAMES libdw.so.1 libdw.so
563cb0
-             HINTS ${LibDwarf_ROOT_DIR}/lib ${LibDwarf_ROOT_DIR} ${LibDwarf_LIBRARYDIR}
563cb0
-             PATHS ${DYNINST_SYSTEM_LIBRARY_PATHS}
563cb0
+             NAMES libdw.so.dts.1 libdw.so.1 libdw.so 
563cb0
+             HINTS ${DYNINST_SYSTEM_LIBRARY_PATHS} ${LibDwarf_ROOT_DIR}/lib ${LibDwarf_ROOT_DIR} ${LibDwarf_LIBRARYDIR}
563cb0
              PATH_SUFFIXES ${_path_suffixes})
563cb0
--- dyninst-10.1.0/testsuite-10.1.0/CMakeLists.txt.orig	2019-07-17 14:29:17.614616431 -0400
563cb0
+++ dyninst-10.1.0/testsuite-10.1.0/CMakeLists.txt	2019-07-17 14:29:34.865616156 -0400
563cb0
@@ -1,4 +1,4 @@
563cb0
-cmake_minimum_required(VERSION 3.4.0)
563cb0
+cmake_minimum_required(VERSION 2.8)
563cb0
 project(Dyninst-TestSuite)
563cb0
 
563cb0
 # User must provide location of Dyninst cmake files either as a cache or