From nobody Sat Dec 31 10:22:06 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NkdTp34hLz2lJrr; Sat, 31 Dec 2022 10:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NkdTp25SDz42Lb; Sat, 31 Dec 2022 10:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672482126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J7heFkmRkOA1nCEzqO7UCFIcpKpyxyc2KSrf/m+W8vQ=; b=hsJafuNMDDOVhy/x5z29ed4eNe/UOIb7rZQXZLt1QgbIU5ZNXGxw4bcK8TDuXVvp7kHJBO pgz+zFojoDqM8CRtDRYWvMbj3qOmcD5R2wm5vNtL5SnPLfXa/KivJp79ZWfOZ3zB7PkjPX GfgCIq6BwD7OqleAtZABnr2rlZiDAPI2WE3+VmKXmWWePc1n7wJUPnKcMqxIr36ImqHIw1 fzfodcVQ3T9IbLPHN60Np9pzwPkD1grnDsQzjSj2lxsi1UC/nxg0ZdvY8WlnbNMgoYCbrz XEmkMTdxbsAnevJX88RdIl+ndFtnl3klp7PEksXcV0dLw5VSVDzM0e8qYlKfBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672482126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J7heFkmRkOA1nCEzqO7UCFIcpKpyxyc2KSrf/m+W8vQ=; b=q6wLM2VkiIsQnPPsgQedMjqoOP3VPYDh5UaSSywNRbeZei7N/6sN2WuNcUNWysbgNlz8d0 nG+swL2pPiXu0vT+mrcbtrN2qWQTFurVd9UGICtKYG4JnL3cktluJ0AdinpY2fGhl1j6kC tT2AkmMxAIvywwG+E+cx7sbAN8LNPBXy/36mO0LnPiGSKjj5bk3W3g8f3pKHmFhD0w5+3a GITd19qeHWrKP6USHK3AF1gSTocsGNP0yT2tY3kMaucSZ4GGf0/lwOPWTiIiXNXnhYffGq PJ/WimNeocek/58alByEneiRR+GeOGwpYAGKTt7FtG2XO6RmqhqUaEAdQ+Mdww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672482126; a=rsa-sha256; cv=none; b=VZvaBOEQRf8RVkEr8r0T9M4fQ+zHx8vvDyGzx4NVNn+PpUW96AKqR1f3cfnzj95wYSB6mq OLzaMM7++V0PdYvEB8IdRJoyrhDyhXH2yKeAlb1lOb/Ksp6sjS/U4BE+2Z/zI1i/3ITlN2 +YbFwd7giJrw1vKna33gHh7y5muNa98Gi7E3OQMCU//mZa8PIZWEGcCuxtmTgtpqjtx8Uw dX7QUCxfAKo/9ytz+Hcdh+PEhTxJJv8ttiFBVxCMh6VEob0d184I6z2seERxwpkg9xnnKm Sc6wE1JURpBkMuv594G6cLyiT4+tad6/512nHQrOSB1dRx9XdyGNjDUXcYfLAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NkdTp1B1Rzl7C; Sat, 31 Dec 2022 10:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BVAM6IX095944; Sat, 31 Dec 2022 10:22:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BVAM6Ru095943; Sat, 31 Dec 2022 10:22:06 GMT (envelope-from git) Date: Sat, 31 Dec 2022 10:22:06 GMT Message-Id: <202212311022.2BVAM6Ru095943@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: eff3aa5c32f4 - main - devel/RStudio: Update 2022.07.2+576 -> 2022.12.0+353 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eff3aa5c32f4d02d041aa04d67cf55bdc15b80eb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=eff3aa5c32f4d02d041aa04d67cf55bdc15b80eb commit eff3aa5c32f4d02d041aa04d67cf55bdc15b80eb Author: Yuri Victorovich AuthorDate: 2022-12-31 10:05:28 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-31 10:22:01 +0000 devel/RStudio: Update 2022.07.2+576 -> 2022.12.0+353 --- devel/RStudio/Makefile | 3 +- devel/RStudio/distinfo | 6 +-- devel/RStudio/files/patch-CMakeGlobals.txt | 18 +++---- devel/RStudio/files/patch-src_cpp_CMakeLists.txt | 27 +++++----- .../RStudio/files/patch-src_cpp_core_Backtrace.cpp | 11 ---- .../files/patch-src_cpp_core_CMakeLists.txt | 8 +-- .../patch-src_cpp_core_r__util_RSessionContext.cpp | 13 ----- ...patch-src_cpp_core_system_PosixChildProcess.cpp | 24 ++++----- .../files/patch-src_cpp_core_system_PosixSched.cpp | 20 ------- .../patch-src_cpp_core_system_PosixSystem.cpp | 62 ++-------------------- .../files/patch-src_cpp_session_SessionMain.cpp | 8 +-- ...tch-src_cpp_shared__core_system_PosixSystem.cpp | 25 +++------ 12 files changed, 57 insertions(+), 168 deletions(-) diff --git a/devel/RStudio/Makefile b/devel/RStudio/Makefile index e16543d53511..9a9d1e445294 100644 --- a/devel/RStudio/Makefile +++ b/devel/RStudio/Makefile @@ -3,7 +3,7 @@ PORTNAME= RStudio DISTVERSIONPREFIX= v -DISTVERSION= 2022.07.2+576 +DISTVERSION= 2022.12.0+353 CATEGORIES= devel math java MASTER_SITES= https://s3.amazonaws.com/rstudio-buildtools/dictionaries/:dictionaries \ https://s3.amazonaws.com/rstudio-buildtools/:buildtools @@ -61,6 +61,7 @@ MAKE_ENV= HOME=${WRKDIR} \ JAVA_HOME=${JAVA_HOME} \ PATH=${JAVA_HOME}/bin:${PATH} \ ANT_OPTS="-Duser.home=${WRKDIR}" +LDFLAGS+= -lexecinfo GWT_VERSION= 2.8.1 GIN_VERSION= 2.1.2 diff --git a/devel/RStudio/distinfo b/devel/RStudio/distinfo index 7f68a21bb795..5b7326f0a4e5 100644 --- a/devel/RStudio/distinfo +++ b/devel/RStudio/distinfo @@ -1,4 +1,4 @@ -TIMESTAMP = 1663892387 +TIMESTAMP = 1672353588 SHA256 (core-dictionaries.zip) = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494 SIZE (core-dictionaries.zip) = 876339 SHA256 (gin-2.1.2.zip) = b98e704164f54be596779696a3fcd11be5785c9907a99ec535ff6e9525ad5f9a @@ -7,8 +7,8 @@ SHA256 (gwt-2.8.1.zip) = 0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d3723 SIZE (gwt-2.8.1.zip) = 95650299 SHA256 (mathjax-27.zip) = c56cbaa6c4ce03c1fcbaeb2b5ea3c312d2fb7626a360254770cbcb88fb204176 SIZE (mathjax-27.zip) = 3285230 -SHA256 (RStudio-rstudio-v2022.07.2+576_GH0.tar.gz) = 55705c36a9b826064b4d9aa87b58c40bb9f7cd2f149b16d554e20136306ce301 -SIZE (RStudio-rstudio-v2022.07.2+576_GH0.tar.gz) = 100396422 +SHA256 (RStudio-rstudio-v2022.12.0+353_GH0.tar.gz) = e4f3503e2ad4229301360f56fd5288e5c8e769c490073dae7fe40366237ecce0 +SIZE (RStudio-rstudio-v2022.12.0+353_GH0.tar.gz) = 266546261 SHA256 (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 6355a7632134c8c9487056019a9c458db2c98d10388cf66b018d5461d0a947af SIZE (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 21977747 SHA256 (rstudio-rmarkdown-aed26ac_GH0.tar.gz) = b6f6f48dd9930514204739d8957c2737f0b1d110aebf9f89fa31de10598cb29b diff --git a/devel/RStudio/files/patch-CMakeGlobals.txt b/devel/RStudio/files/patch-CMakeGlobals.txt index 10b2da0c4b02..92ea09a5490e 100644 --- a/devel/RStudio/files/patch-CMakeGlobals.txt +++ b/devel/RStudio/files/patch-CMakeGlobals.txt @@ -1,4 +1,4 @@ ---- CMakeGlobals.txt.orig 2022-07-06 19:59:49 UTC +--- CMakeGlobals.txt.orig 2022-12-03 07:38:59 UTC +++ CMakeGlobals.txt @@ -168,7 +168,7 @@ endif() @@ -17,16 +17,16 @@ # record these from Jenkins if available if("$ENV{GIT_COMMIT}" STREQUAL "") -@@ -254,7 +255,7 @@ elseif(IS_CENTOS7) - set(QUARTO_ENABLED FALSE CACHE INTERNAL "") - else() - # enable by default -- set(QUARTO_ENABLED TRUE CACHE INTERNAL "") -+ set(QUARTO_ENABLED ${FREEBSD_QUARTO_ENABLED}) - add_definitions(-DQUARTO_ENABLED) +@@ -241,7 +242,7 @@ if(NOT DEFINED QUARTO_ENABLED) + set(QUARTO_ENABLED FALSE CACHE INTERNAL "") + else() + # enable by default +- set(QUARTO_ENABLED TRUE CACHE INTERNAL "") ++ set(QUARTO_ENABLED ${FREEBSD_QUARTO_ENABLED} CACHE INTERNAL "") + endif() endif() -@@ -341,14 +342,14 @@ else() +@@ -334,14 +335,14 @@ else() endif() # if the install prefix is /usr/local then tweak as appropriate diff --git a/devel/RStudio/files/patch-src_cpp_CMakeLists.txt b/devel/RStudio/files/patch-src_cpp_CMakeLists.txt index 6754f2c1a030..ec5582ff9cdd 100644 --- a/devel/RStudio/files/patch-src_cpp_CMakeLists.txt +++ b/devel/RStudio/files/patch-src_cpp_CMakeLists.txt @@ -1,18 +1,15 @@ ---- src/cpp/CMakeLists.txt.orig 2021-05-24 22:22:25 UTC +--- src/cpp/CMakeLists.txt.orig 2022-12-03 07:38:59 UTC +++ src/cpp/CMakeLists.txt -@@ -433,11 +433,11 @@ endif() +@@ -468,9 +468,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") -+ set(SOCI_LIBRARY_DIR "${FREEBSD_LOCALBASE}/lib") - endif() -- find_library(SOCI_CORE_LIB NAMES "libsoci_core.a" "soci_core" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) -- find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.a" "soci_sqlite3" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) -- find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.a" "soci_postgresql" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) -+ find_library(SOCI_CORE_LIB NAMES "libsoci_core.so" "soci_core" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) -+ find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.so" "soci_sqlite3" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) -+ find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.so" "soci_postgresql" PATHS "${SOCI_LIBRARY_DIR}" NO_DEFAULT_PATH) - find_library(DL_LIB "dl") - find_library(SQLITE_LIB "sqlite3") - get_filename_component(SQLITE_LIB "${SQLITE_LIB}" REALPATH) +- find_library(SOCI_CORE_LIB NAMES "libsoci_core.a" "soci_core") +- find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.a" "soci_sqlite3") +- find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.a" "soci_postgresql") ++ find_library(SOCI_CORE_LIB NAMES "libsoci_core.so" "soci_core") ++ find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.so" "soci_sqlite3") ++ find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.so" "soci_postgresql") + if(NOT SOCI_CORE_LIB OR NOT SOCI_SQLITE_LIB OR NOT SOCI_POSTGRESQL_LIB) + message(FATAL_ERROR "Some or all SOCI libraries were not found. Ensure the SOCI dependency is installed and try again.") + endif() diff --git a/devel/RStudio/files/patch-src_cpp_core_Backtrace.cpp b/devel/RStudio/files/patch-src_cpp_core_Backtrace.cpp deleted file mode 100644 index c99ffc233e1f..000000000000 --- a/devel/RStudio/files/patch-src_cpp_core_Backtrace.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/cpp/core/Backtrace.cpp.orig 2017-11-16 21:40:37 UTC -+++ src/cpp/core/Backtrace.cpp -@@ -46,7 +46,7 @@ std::string demangle(const std::string& - - void printBacktrace(std::ostream& os) - { --#ifndef _WIN32 -+#if !defined(_WIN32) && !defined(__FreeBSD__) - - os << "Backtrace (most recent calls first):" << std::endl << std::endl; - diff --git a/devel/RStudio/files/patch-src_cpp_core_CMakeLists.txt b/devel/RStudio/files/patch-src_cpp_core_CMakeLists.txt index 307bff1b6186..038925d6979b 100644 --- a/devel/RStudio/files/patch-src_cpp_core_CMakeLists.txt +++ b/devel/RStudio/files/patch-src_cpp_core_CMakeLists.txt @@ -1,6 +1,6 @@ ---- src/cpp/core/CMakeLists.txt.orig 2020-01-23 23:30:24 UTC +--- src/cpp/core/CMakeLists.txt.orig 2022-12-03 07:38:59 UTC +++ src/cpp/core/CMakeLists.txt -@@ -152,12 +152,14 @@ if (UNIX) +@@ -161,12 +161,14 @@ if (UNIX) # platform introspection check_symbol_exists(SA_NOCLDWAIT "signal.h" HAVE_SA_NOCLDWAIT) check_symbol_exists(SO_PEERCRED "sys/socket.h" HAVE_SO_PEERCRED) @@ -15,5 +15,5 @@ - endif() + #endif() - # find packages and libraries - find_library(PTHREAD_LIBRARIES pthread) + # missing on non-glibc platforms like macOS, musl-based Linux distros, and + # the BSDs diff --git a/devel/RStudio/files/patch-src_cpp_core_r__util_RSessionContext.cpp b/devel/RStudio/files/patch-src_cpp_core_r__util_RSessionContext.cpp deleted file mode 100644 index e335ae56ccf0..000000000000 --- a/devel/RStudio/files/patch-src_cpp_core_r__util_RSessionContext.cpp +++ /dev/null @@ -1,13 +0,0 @@ ---- src/cpp/core/r_util/RSessionContext.cpp.orig 2020-01-23 23:30:24 UTC -+++ src/cpp/core/r_util/RSessionContext.cpp -@@ -186,8 +186,8 @@ bool isSharedPath(const std::string& projectPath, - // not shared if we're in any of the groups that own the directory - // (note that this checks supplementary group IDs only, so the check - // against the primary group ID above is still required) -- if (::group_member(st.st_gid)) -- return false; -+// if (::group_member(st.st_gid)) -+// return false; - #endif - - // if we got this far, we likely have access due to project sharing diff --git a/devel/RStudio/files/patch-src_cpp_core_system_PosixChildProcess.cpp b/devel/RStudio/files/patch-src_cpp_core_system_PosixChildProcess.cpp index c16e45354db3..8298b028d013 100644 --- a/devel/RStudio/files/patch-src_cpp_core_system_PosixChildProcess.cpp +++ b/devel/RStudio/files/patch-src_cpp_core_system_PosixChildProcess.cpp @@ -1,22 +1,18 @@ ---- src/cpp/core/system/PosixChildProcess.cpp.orig 2022-07-06 19:59:49 UTC +--- src/cpp/core/system/PosixChildProcess.cpp.orig 2022-12-30 20:28:33 UTC +++ src/cpp/core/system/PosixChildProcess.cpp -@@ -25,9 +25,12 @@ - #include - #include - #else --#include --#include --#include -+//#include -+//#include -+//#include -+#include -+#include +@@ -28,6 +28,11 @@ + #include + #include + #include ++#elif defined(__FreeBSD__) // for forkpty ++#include ++#include ++#include +#include #endif #include -@@ -807,7 +810,7 @@ Error ChildProcess::run() +@@ -807,7 +812,7 @@ Error ChildProcess::run() if (options_.exitWithParent) { diff --git a/devel/RStudio/files/patch-src_cpp_core_system_PosixSched.cpp b/devel/RStudio/files/patch-src_cpp_core_system_PosixSched.cpp deleted file mode 100644 index a2edb406dfae..000000000000 --- a/devel/RStudio/files/patch-src_cpp_core_system_PosixSched.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- src/cpp/core/system/PosixSched.cpp.orig 2020-05-18 18:11:10 UTC -+++ src/cpp/core/system/PosixSched.cpp -@@ -41,7 +41,7 @@ bool isCpuAffinityEmpty(const CpuAffinity& cpus) - - Error getCpuAffinity(CpuAffinity* pCpus) - { --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - cpu_set_t cs; - CPU_ZERO(&cs); - if (::sched_getaffinity(0, sizeof(cs), &cs) == -1) -@@ -66,7 +66,7 @@ Error getCpuAffinity(CpuAffinity* pCpus) - - Error setCpuAffinity(const CpuAffinity& cpus) - { --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - cpu_set_t cs; - CPU_ZERO(&cs); - diff --git a/devel/RStudio/files/patch-src_cpp_core_system_PosixSystem.cpp b/devel/RStudio/files/patch-src_cpp_core_system_PosixSystem.cpp index c5632b95d384..cd99bfc1c394 100644 --- a/devel/RStudio/files/patch-src_cpp_core_system_PosixSystem.cpp +++ b/devel/RStudio/files/patch-src_cpp_core_system_PosixSystem.cpp @@ -1,24 +1,8 @@ - one of the patches is a workaround for access to /proc/{pid}/fd : https://github.com/rstudio/rstudio/issues/8912 ---- src/cpp/core/system/PosixSystem.cpp.orig 2021-05-24 22:22:25 UTC +--- src/cpp/core/system/PosixSystem.cpp.orig 2022-12-03 07:38:59 UTC +++ src/cpp/core/system/PosixSystem.cpp -@@ -41,20 +41,25 @@ - - #include - --#ifdef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - #include - #include - #include - #include - #endif - --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - #include - #include - #include +@@ -56,6 +56,11 @@ #include #endif @@ -30,7 +14,7 @@ #include #include #include -@@ -560,6 +565,7 @@ Error getOpenFds(std::vector* pFds) +@@ -619,6 +624,7 @@ Error getOpenFds(std::vector* pFds) #ifndef __APPLE__ Error getOpenFds(pid_t pid, std::vector* pFds) { @@ -38,7 +22,7 @@ std::string pidStr = safe_convert::numberToString(pid); boost::format fmt("/proc/%1%/fd"); FilePath filePath(boost::str(fmt % pidStr)); -@@ -586,6 +592,7 @@ Error getOpenFds(pid_t pid, std::vector* pFd +@@ -645,6 +651,7 @@ Error getOpenFds(pid_t pid, std::vector* pFd pFds->push_back(fd.get()); } } @@ -46,7 +30,7 @@ return Success(); } -@@ -911,7 +918,7 @@ Error executablePath(const char * argv0, +@@ -970,7 +977,7 @@ Error executablePath(const char * argv0, #elif defined(HAVE_PROCSELF) @@ -55,39 +39,3 @@ #else -@@ -1420,7 +1427,7 @@ Error osResourceLimit(ResourceLimit limit, int* pLimit - case CpuLimit: - *pLimit = RLIMIT_CPU; - break; --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - case NiceLimit: - *pLimit = RLIMIT_NICE; - break; -@@ -1493,7 +1500,7 @@ Error systemInformation(SysInfo* pSysInfo) - { - pSysInfo->cores = boost::thread::hardware_concurrency(); - --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - struct sysinfo info; - if (::sysinfo(&info) == -1) - return systemError(errno, ERROR_LOCATION); -@@ -1897,7 +1904,7 @@ Error restrictCoreDumps() - return error; - - // no ptrace core dumps permitted --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - int res = ::prctl(PR_SET_DUMPABLE, 0); - if (res == -1) - return systemError(errno, ERROR_LOCATION); -@@ -1928,7 +1935,7 @@ void printCoreDumpable(const std::string& context) - ostr << " hard limit: " << rLimitHard << std::endl; - - // ptrace --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - int dumpable = ::prctl(PR_GET_DUMPABLE, nullptr, nullptr, nullptr, nullptr); - if (dumpable == -1) - LOG_ERROR(systemError(errno, ERROR_LOCATION)); diff --git a/devel/RStudio/files/patch-src_cpp_session_SessionMain.cpp b/devel/RStudio/files/patch-src_cpp_session_SessionMain.cpp index fbe08747b118..b1e6e81dab7c 100644 --- a/devel/RStudio/files/patch-src_cpp_session_SessionMain.cpp +++ b/devel/RStudio/files/patch-src_cpp_session_SessionMain.cpp @@ -1,7 +1,7 @@ ---- src/cpp/session/SessionMain.cpp.orig 2020-01-23 23:30:24 UTC +--- src/cpp/session/SessionMain.cpp.orig 2022-12-03 07:38:59 UTC +++ src/cpp/session/SessionMain.cpp -@@ -1711,7 +1711,11 @@ int main (int argc, char * const argv[]) - +@@ -1947,7 +1947,11 @@ int main(int argc, char * const argv[]) + // move to own process group #ifndef _WIN32 +#if defined(__FreeBSD__) @@ -11,4 +11,4 @@ +#endif #endif - // get main thread id (used to distinguish forks which occur + logStartingEnv(); diff --git a/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp b/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp index 6a304d8a4651..f5fa06e9483b 100644 --- a/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp +++ b/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp @@ -1,23 +1,14 @@ ---- src/cpp/shared_core/system/PosixSystem.cpp.orig 2021-06-09 01:52:44 UTC +--- src/cpp/shared_core/system/PosixSystem.cpp.orig 2022-12-30 20:20:59 UTC +++ src/cpp/shared_core/system/PosixSystem.cpp -@@ -29,8 +29,10 @@ +@@ -27,7 +27,11 @@ + #include #include #include ++#include #include -+#include // for sa_family_t -+#include // for struct sockaddr ++#include ++#include ++ --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) + #ifdef __linux__ #include - #endif - -@@ -80,7 +82,7 @@ Error restorePrivilegesImpl(uid_t in_uid) - - Error enableCoreDumps() - { --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - int res = ::prctl(PR_SET_DUMPABLE, 1); - if (res == -1) - return systemError(errno, ERROR_LOCATION);