jgenco / jgenco-overlay

6 stars 1 forks source link

Trying to build rstudio with qt5 gives a QTSINGLEAPPLIB_INCLUDE_DIR cmake error #18

Closed ppw0 closed 1 year ago

ppw0 commented 1 year ago
* Package:    sci-mathematics/rstudio-2023.06.1.524:0
--
  | * Repository: jgenco
  | * Upstream:   https://github.com/rstudio/rstudio/issues
  | * USE:        abi_x86_64 amd64 clang elibc_glibc kernel_linux qt5
  | * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
  | * Using: openjdk-bin-11
  | >>> Unpacking source...
  | >>> Unpacking rstudio-2023.06.1.524.tar.gz to /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work
  | >>> Source unpacked in /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work
  | >>> Preparing source in /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524 ...
  | * Applying rstudio-2022.12.0.353-qtsingleapplication.patch ...
  | [ ok ]
  | * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524"
  | * Build directory  (BUILD_DIR):     "/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build"
  | * Applying rstudio-2023.03.0-386-cmake-bundled-dependencies.patch ...
  | [ ok ]
  | * Applying rstudio-1.4.1717-fix-boost-version-check.patch ...
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-resource-path.patch ...
  | [ ok ]
  | * Applying rstudio-1.4.1106-server-paths.patch ...
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-package-build.patch ...
  | patching file src/cpp/CMakeLists.txt
  | Hunk #1 succeeded at 237 with fuzz 2 (offset 13 lines).
  | patching file src/cpp/desktop/CMakeLists.txt
  | Hunk #1 succeeded at 333 (offset 12 lines).
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-pandoc_path_fix.patch ...
  | patching file CMakeGlobals.txt
  | Hunk #1 succeeded at 232 with fuzz 2.
  | patching file src/cpp/session/include/session/SessionConstants.hpp
  | Hunk #1 succeeded at 141 with fuzz 1 (offset 3 lines).
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-quarto-version.patch ...
  | [ ok ]
  | * Applying rstudio-2023.06.0.421-node_electron_cmake.patch ...
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-reenable-sandbox.patch ...
  | [ ok ]
  | * Applying rstudio-2022.07.0.548-libfmt.patch ...
  | [ ok ]
  | * Applying rstudio-2022.12.0.353-hunspell.patch ...
  | [ ok ]
  | * Applying rstudio-2022.12.0.353-add-support-for-RapidJSON.patch ...
  | [ ok ]
  | * Applying rstudio-2022.12.0.353-system-clang.patch ...
  | [ ok ]
  | * Applying rstudio-2023.03.0.386-panmirror_disable.patch ...
  | [ ok ]
  | * Adjusting to prefix /
  | *   LibClang.cpp ...
  | [ ok ]
  | >>> Source prepared.
  | >>> Configuring source in /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524 ...
  | * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524"
  | * Build directory  (BUILD_DIR):     "/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build"
  | cmake -C /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DRSTUDIO_INSTALL_SUPPORTING=/usr/share/rstudio -DRSTUDIO_TARGET=TRUE -DRSTUDIO_SERVER=FALSE -DRSTUDIO_DESKTOP=TRUE -DRSTUDIO_ELECTRON=FALSE -DRSTUDIO_UNIT_TESTS_DISABLED=ON -DRSTUDIO_USE_SYSTEM_BOOST=ON -DGWT_BUILD=OFF -DGWT_COPY=ON -DRSTUDIO_USE_SYSTEM_YAML_CPP=ON -DRSTUDIO_PACKAGE_BUILD=1 -DRSTUDIO_BIN_PATH=/usr/bin -DQUARTO_ENABLED=no -DRSTUDIO_USE_SYSTEM_SOCI=TRUE -DSYSTEM_LIBCLANG_PATH=/usr/lib/llvm/16 -DQT_QMAKE_EXECUTABLE=/usr/lib64/qt5/bin/qmake -DRSTUDIO_INSTALL_FREEDESKTOP=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build/gentoo_toolchain.cmake /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524
  | loading initial cache file /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build/gentoo_common_config.cmake
  | -- The C compiler identification is Clang 16.0.6
  | -- The CXX compiler identification is Clang 16.0.6
  | -- Detecting C compiler ABI info
  | -- Detecting C compiler ABI info - done
  | -- Check for working C compiler: /usr/lib/llvm/16/bin/clang-16 - skipped
  | -- Detecting C compile features
  | -- Detecting C compile features - done
  | -- Detecting CXX compiler ABI info
  | -- Detecting CXX compiler ABI info - done
  | -- Check for working CXX compiler: /usr/lib/llvm/16/bin/clang++-16 - skipped
  | -- Detecting CXX compile features
  | -- Detecting CXX compile features - done
  | -- Building RStudio 2023.06.1+524
  | -- Machine architecture: x86_64
  | -- CMake build type: Release
  | fatal: not a git repository (or any parent up to mount point /var/tmp)
  | Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  | -- Using RStudio tools root: /opt/rstudio-tools/x86_64
  | -- LSB release: gentoo
  | -- Configured to install GWT
  | -- Configured to build with libpam features
  | -- Performing Test COMPILER_SUPPORTS_CXX11
  | -- Performing Test COMPILER_SUPPORTS_CXX11 - Success
  | -- Found Boost: /usr/lib64/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable version "1.82.0", minimum required is "1.78.0")
  | -- Found Boost: /usr/lib64/cmake/Boost-1.82.0/BoostConfig.cmake (found suitable version "1.82.0", minimum required is "1.78.0") found components: atomic chrono date_time filesystem iostreams program_options random regex system thread
  | -- No Crashpad libraries found under /opt/rstudio-tools/x86_64/crashpad/crashpad/out/Default/obj. Crashpad integration disabled.
  | -- SOCI libraries found under
  | -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.0.9")
  | -- Performing Test HAVE_SCANDIR_POSIX
  | -- Performing Test HAVE_SCANDIR_POSIX - Success
  | -- Looking for SA_NOCLDWAIT
  | -- Looking for SA_NOCLDWAIT - found
  | -- Looking for SO_PEERCRED
  | -- Looking for SO_PEERCRED - found
  | -- Looking for inotify_init1
  | -- Looking for inotify_init1 - found
  | -- Looking for getpeereid
  | -- Looking for getpeereid - not found
  | -- Looking for setresuid
  | -- Looking for setresuid - found
  | -- Looking for group_member
  | -- Looking for group_member - found
  | -- Performing Test HAVE_EXECINFO
  | -- Performing Test HAVE_EXECINFO - Success
  | -- Configured to build DESKTOP
  | -- Found LibR: /usr/lib64/R
  | -- Found R: /usr/lib64/R
  | -- Found Qt: /usr/lib64/qt5/bin/qmake
  | -- <<< Gentoo configuration >>>
  | Build type      Release
  | Install path    /usr
  | Compiler flags:
  | C               -O2 -march=native -pipe
  | C++             -O2 -march=native -pipe -std=c++0x
  | Linker flags:
  | Executable      -Wl,-O2 -Wl,--as-needed
  | Module          -Wl,-O2 -Wl,--as-needed
  | Shared          -Wl,-O2 -Wl,--as-needed
  |  
  | -- Configuring done (4.4s)
  | CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  | Please set them or make sure they are set and tested correctly in the CMake files:
  | QTSINGLEAPPLIB_INCLUDE_DIR
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  | used as include directory in directory /var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524/src/cpp/desktop
  |  
  | CMake Error in src/cpp/desktop/CMakeLists.txt:
  | Found relative path while evaluating include directories of "rstudio":
  |  
  | "QTSINGLEAPPLIB_INCLUDE_DIR-NOTFOUND"
  |  
  |  
  |  
  | -- Generating done (0.1s)
  | CMake Generate step failed.  Build files cannot be regenerated correctly.
  | * ERROR: sci-mathematics/rstudio-2023.06.1.524::jgenco failed (configure phase):
  | *   cmake failed
  | *
  | * Call stack:
  | *     ebuild.sh, line  136:  Called src_configure
  | *   environment, line 5132:  Called cmake_src_configure
  | *   environment, line 1572:  Called die
  | * The specific snippet of code:
  | *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" \|\| die "cmake failed";
  | *
  | * If you need support, post the output of `emerge --info '=sci-mathematics/rstudio-2023.06.1.524::jgenco'`,
  | * the complete build log and the output of `emerge -pqv '=sci-mathematics/rstudio-2023.06.1.524::jgenco'`.
  | !!! When you file a bug report, please include the following information:
  | GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.18_p10"
  | JAVACFLAGS="-source 11 -target 11" COMPILER=""
  | and of course, the output of emerge --info =rstudio-2023.06.1.524
  | * The complete build log is located at '/var/log/portage/sci-mathematics:rstudio-2023.06.1.524:20230907-220531.log'.
  | * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/temp/build.log'.
  | * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/temp/environment'.
  | * Working directory: '/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524_build'
  | * S: '/var/tmp/portage/sci-mathematics/rstudio-2023.06.1.524/work/rstudio-2023.06.1-524'

This issue is solved with adding the 'X' USE flag to dev-qt/qtsingleapplication. Perhaps it would be a good idea to add it as a requirement to the ebuild?

Best Regards

jgenco commented 1 year ago

Thanks, I bumped and fixed the current stable version of RStudio. I'll update the other two next week with their bump.