diff options
author | Stephen Martin | 2020-03-31 16:19:07 -0700 |
---|---|---|
committer | Stephen Martin | 2020-03-31 16:19:07 -0700 |
commit | 3d6410105ba57d196870a31c10b4c517cbefd835 (patch) | |
tree | 3aafd91b73c8499daee63e8e1c4ccea65aca5482 /soci.patch | |
parent | 6820f7ea8ad0e9b093ddc0c4cf334f5feedd2efa (diff) | |
download | aur-3d6410105ba57d196870a31c10b4c517cbefd835.tar.gz |
SOCI and Node fix
- Removed bundled clang
- Added SOCI patch to fix their bundling.
- Added bundled Npm
Diffstat (limited to 'soci.patch')
-rw-r--r-- | soci.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/soci.patch b/soci.patch new file mode 100644 index 000000000000..8b9013c73c38 --- /dev/null +++ b/soci.patch @@ -0,0 +1,59 @@ +From 40f01db1d748d5df0bc3dfd1552a2c91943408e7 Mon Sep 17 00:00:00 2001 +From: Stephen Martin <stephensrmmartin@gmail.com> +Date: Tue, 31 Mar 2020 14:55:34 -0700 +Subject: [PATCH] Use system SOCI library on request. + +--- + src/cpp/CMakeLists.txt | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt +index 9fff318025..598f34fd87 100644 +--- a/src/cpp/CMakeLists.txt ++++ b/src/cpp/CMakeLists.txt +@@ -372,8 +372,10 @@ else() + endif() + + set(SOCI_INCLUDE_DIR "${RSTUDIO_TOOLS_SOCI}/include") +-include_directories(SYSTEM ${SOCI_INCLUDE_DIR}) +-include_directories(SYSTEM ${SOCI_INCLUDE_BUILD_DIR}) ++if(NOT RSTUDIO_USE_SYSTEM_SOCI) ++ include_directories(SYSTEM ${SOCI_INCLUDE_DIR}) ++ include_directories(SYSTEM ${SOCI_INCLUDE_BUILD_DIR}) ++endif() + + # database library includes + if (UNIX) +@@ -394,6 +396,9 @@ endif() + # find SOCI libraries + if(UNIX) + set(SOCI_LIBRARY_DIR "${RSTUDIO_TOOLS_SOCI}/build/lib") ++ if(NOT APPLE AND RSTUDIO_USE_SYSTEM_SOCI) ++ set(SOCI_LIBRARY_DIR "/usr/lib") ++ endif() + set(CMAKE_INSTALL_RPATH "${SOCI_LIBRARY_DIR}") + if (NOT APPLE) + set(LIB_SUFFIX ".so") +@@ -404,8 +409,8 @@ if(UNIX) + set(SOCI_LIB_SYMLINK ".4.0${LIB_SUFFIX}") + set(SOCI_LIB_SUFFIX ".4.0.0${LIB_SUFFIX}") + endif() +- file(GLOB_RECURSE SOCI_LIBRARIES "${SOCI_LIBRARY_DIR}/*${LIB_SUFFIX}") +- file(GLOB_RECURSE SOCI_SYMLINK_LIBRARIES "${SOCI_LIBRARY_DIR}/*${SOCI_LIB_SYMLINK}") ++ file(GLOB_RECURSE SOCI_LIBRARIES "${SOCI_LIBRARY_DIR}/*soci*${LIB_SUFFIX}") ++ file(GLOB_RECURSE SOCI_SYMLINK_LIBRARIES "${SOCI_LIBRARY_DIR}/*soci*${SOCI_LIB_SYMLINK}") + else() + set(SOCI_LIBRARY_DIR "${RSTUDIO_TOOLS_SOCI}/build/${SOCI_ARCH}/lib") + if(CMAKE_BUILD_TYPE STREQUAL "Debug") +@@ -436,7 +441,7 @@ message(STATUS "SOCI libraries found under ${SOCI_LIBRARY_DIR}.") + + # ensure the soci libraries are installed with the installation package on Linux + # on OSX, the needed depdencies are copied into the Frameworks directory +-if(UNIX AND NOT APPLE) ++if(UNIX AND NOT APPLE AND NOT RSTUDIO_USE_SYSTEM_SOCI) + install(PROGRAMS "${SOCI_LIBRARY_DIR}/libsoci_core${SOCI_LIB_SUFFIX}" DESTINATION ${RSTUDIO_INSTALL_BIN}) + install(PROGRAMS "${SOCI_LIBRARY_DIR}/libsoci_sqlite3${SOCI_LIB_SUFFIX}" DESTINATION ${RSTUDIO_INSTALL_BIN}) + install(PROGRAMS "${SOCI_LIBRARY_DIR}/libsoci_postgresql${SOCI_LIB_SUFFIX}" DESTINATION ${RSTUDIO_INSTALL_BIN}) +-- +2.26.0 + |