You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmake won't configure with RSTUDIO_USE_SYSTEM_DEPENDENCIES set #15927
RStudio Edition : Desktop
RStudio Version : 281dc8554c (current main branch revision)
OS Version : FreeBSD 14.2
R Version : n/a
Steps to reproduce the problem
configure with -DRSTUDIO_USE_SYSTEM_DEPENDENCIES=ON and build.
Describe the problem in detail
Could not find a package configuration file provided by "expected"
(requested version 1.1.0) with any of the following names:
expectedConfig.cmake
expected-config.cmake
cmake expects the file expected-config.cmake while the expected project version 1.1.0 installs the file tl-expected-config.cmake
changed the title [-]cmake expects the file expected-config.cmake which isn't installed by the expect project[/-][+]cmake won't configure with RSTUDIO_USE_SYSTEM_DEPENDENCIES set[/+]on Apr 18, 2025
RSTUDIO_USE_SYSTEM_DEPENDENCIES is essential for package builds.
Package builders aren't allowed to download files. cmake's ContentFetch instructions have to be replaced with packaged dependencies, and this breaks.
All systems where RStudio is packaged would benefit from this.
I am the maintainer of the RStudio port/package on FreeBSD.
Activity
yurivict commentedon Apr 17, 2025
@kevinushey
Hi Kevin,
You reformatted this code in src/cpp/ext/CMakeLists.txt recently.
find_package shouldn't be looking for the package "expected".
Maybe you can fix the problem with the wrong "expected" dependency?
gtritchie commentedon Apr 18, 2025
Confirmed this is a problem if I configure with
-DRSTUDIO_USE_SYSTEM_DEPENDENCIES=ON(I tried on Ubuntu 24, so this isn't a FreeBSD-specific issue).This isn't specific to the "expected" package, it's the
fetchmechanism in general (when RSTUDIO_USE_SYSTEM_DEPENDENCIES is set).I commented out "expected" and got a similar error with the next package in the list.
[-]cmake expects the file expected-config.cmake which isn't installed by the expect project[/-][+]cmake won't configure with RSTUDIO_USE_SYSTEM_DEPENDENCIES set[/+]yurivict commentedon Apr 18, 2025
RSTUDIO_USE_SYSTEM_DEPENDENCIES is essential for package builds.
Package builders aren't allowed to download files. cmake's ContentFetch instructions have to be replaced with packaged dependencies, and this breaks.
All systems where RStudio is packaged would benefit from this.
I am the maintainer of the RStudio port/package on FreeBSD.
gtritchie commentedon Apr 18, 2025
Yup, we'll try to get this resolved as soon as possible for you (and others).
kevinushey commentedon Apr 18, 2025
Hopefully this will be as simple as replacing 'expected' with 'tl-expected' here:
rstudio/src/cpp/ext/CMakeLists.txt
Line 223 in 8bf25e6
I can hopefully test and confirm if that's the case when I'm back in next week.
gtritchie commentedon Apr 22, 2025
There is an external PR to change
expectedtotl-expected: #15941kevinushey commentedon Apr 23, 2025
This should be fixed via #15941 -- please let me know if you're still having trouble.