freebsd-ports/devel/RStudio/files/patch-src_cpp_session_modules_SessionGit.cpp
Yuri Victorovich da2f3f630c devel/RStudio: Revert "feat(create-turbo): apply official-starter transform"
This reverts commit 52c0456dd5.

I have no idea what lead to this commit into devel/RStudio and
lang/rust-nightly to be made.
2024-10-02 12:38:44 -07:00

24 lines
892 B
C++

- add path %%PREFIX%%/bin to PATH so that gmake and cmake executable would be found
--- src/cpp/session/modules/SessionGit.cpp.orig 2023-08-29 01:47:30 UTC
+++ src/cpp/session/modules/SessionGit.cpp
@@ -130,6 +130,9 @@ core::system::ProcessOptions procOptions()
FilePath postbackDir = session::options().rpostbackPath().getParent();
core::system::addToPath(&childEnv, postbackDir.getAbsolutePath());
+ // add $PREFIX/bin to path
+ core::system::addToPath(&childEnv, "%%PREFIX%%/bin");
+
options.workingDir = projects::projectContext().directory();
#ifdef _WIN32
@@ -3370,6 +3373,9 @@ core::Error initialize()
}
core::system::addToPath(postbackDir.getAbsolutePath());
+
+ // add $PREFIX/bin to path
+ core::system::addToPath("%%PREFIX%%/bin");
// add suspend/resume handler
addSuspendHandler(SuspendHandler(boost::bind(onSuspend, _2), onResume));