I'm trying to test some features on a dev branch of mail-client/geary. The program (geary) depends on vala, and now it looks like it depends - explicitly - on vapigen as well A snippet from the build process: >>> Working in BUILD_DIR: "/var/tmp/portage/mail-client/geary-9999/work/geary-9999_build" cmake --no-warn-unused-cli -C /var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DDESKTOP_UPDATE=OFF -DGSE TTINGS_COMPILE=OFF -DICON_UPDATE=OFF -DVALA_EXECUTABLE=/usr/bin/valac-0.22 -DWITH_UNITY=OFF -DDESKTOP_VALIDATE=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RUL ES_OVERRIDE=/var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_rules.cmake /var/tmp/portage/mail-client/geary-9999/work/geary-9999 Not searching for unused variables given on the command line. loading initial cache file /var/tmp/portage/mail-client/geary-9999/work/geary-9999_build/gentoo_common_config.cmake -- The C compiler identification is GNU 4.7.3 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "0.28") -- xgettext found -- Found Vala: /usr/bin/valac-0.22 -- checking for a minimum Vala version of 0.22.1 -- found Vala, version 0.22.1 CMake Error at src/CMakeLists.txt:404 (message): vapigen must be installed to build Geary. the ebuild, as did the previous ones are just doing the following: > vala_src_prepare And, as said before, vala is installed with vapigen USE flag enabled: # qlist vala | grep vapigen /usr/bin/vapigen-0.22 /usr/share/man/man1/vapigen-0.22.1.bz2 /usr/share/pkgconfig/vapigen-0.22.pc /usr/share/vala/Makefile.vapigen /usr/share/aclocal/vapigen.m4 and the CMakefile.txt contains this (additional) check: # Vapigen find_program(VAPIGEN vapigen) if (VAPIGEN STREQUAL "VAPIGEN-NOTFOUND") message(FATAL_ERROR "vapigen must be installed to build Geary.") else () message(STATUS "Found vapigen: " ${VAPIGEN}) endif () I wonder what would the best approach for writing the ebuild, or if it's something that needs to be fixed in the vala eclass. I was thinking of going around it by adding a patch that removes that check and then just add a dependency on vala with vapigen use flag, but I don't know if that's correct and I thought this seems to be worth reporting.
Please attach the entire build log to this bug report.
Created attachment 367622 [details] build.log for mail-client/geary-9999
The "x-portage" overlay isn't supported.
Hi Jeroen, Thanks for the reply. (In reply to Jeroen Roovers from comment #3) > The "x-portage" overlay isn't supported. I understand. As it stands out, the master branch of geany has already implemented this solution for checking the presence of vapigen, which means it'll be released at some point potentially causing a duplicate of this bug report. I'm wondering if you have already evaluated the possibility of a problem with the vala eclass, i.e. with whatever vala_src_prepare is doing. I don't have enough knowledge to rule that out, reason why I decided to come here and ask. any suggestions where to ask for a solution?