Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497780 - [x-portage overlay] mail-client/geary-9999 - CMake Error at src/CMakeLists.txt:404 (message): vapigen must be installed to build Geary.
Summary: [x-portage overlay] mail-client/geary-9999 - CMake Error at src/CMakeLists.tx...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-11 12:14 UTC by Matteo 'The Peach' Pescarin
Modified: 2014-01-11 15:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log for mail-client/geary-9999 (build.log,3.99 KB, text/x-log)
2014-01-11 13:01 UTC, Matteo 'The Peach' Pescarin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo 'The Peach' Pescarin 2014-01-11 12:14:00 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-11 12:57:58 UTC
Please attach the entire build log to this bug report.
Comment 2 Matteo 'The Peach' Pescarin 2014-01-11 13:01:15 UTC
Created attachment 367622 [details]
build.log for mail-client/geary-9999
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-11 14:10:36 UTC
The "x-portage" overlay isn't supported.
Comment 4 Matteo 'The Peach' Pescarin 2014-01-11 15:11:01 UTC
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?