Skip to content

cmake won't configure with RSTUDIO_USE_SYSTEM_DEPENDENCIES set #15927

Closed

Description

@yurivict

System details

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

Describe the behavior you expected

see above

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Apr 17, 2025
  2. yurivict commented on Apr 17, 2025

    @yurivict
    Author

    @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?

  3. added theissue type on Apr 17, 2025
  4. gtritchie commented on Apr 18, 2025

    @gtritchie
    Member

    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 fetch mechanism 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.

  5. added and removed
    new
    on Apr 18, 2025
  6. self-assigned this
    on Apr 18, 2025
  7. 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
  8. removed their assignment
    on Apr 18, 2025
  9. yurivict commented on Apr 18, 2025

    @yurivict
    Author

    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.

  10. gtritchie commented on Apr 18, 2025

    @gtritchie
    Member

    Yup, we'll try to get this resolved as soon as possible for you (and others).

  11. kevinushey commented on Apr 18, 2025

    @kevinushey
    Collaborator

    Hopefully this will be as simple as replacing 'expected' with 'tl-expected' here:

    expected EXPECTED

    I can hopefully test and confirm if that's the case when I'm back in next week.

  12. gtritchie commented on Apr 22, 2025

    @gtritchie
    Member

    There is an external PR to change expected to tl-expected: #15941

  13. kevinushey commented on Apr 23, 2025

    @kevinushey
    Collaborator

    This should be fixed via #15941 -- please let me know if you're still having trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions