| Summary: | mail-client/trojita fails to configure (cmake instead of qmake?) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Thomas Capricelli <orzel> |
| Component: | Current packages | Assignee: | Tomáš Chvátal (RETIRED) <scarabeus> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jkt, valczir.darkvein |
| Priority: | High | Keywords: | InVCS |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | trojita-9999.ebuild | ||
I got it to compile by changing a bunch of lines in the ebuild, but it seems that the trojita team hasn't provided a rule for install in their makefile. So while I got it to compile, it installed 0 files. Not very useful if it won't install.
I also manually cloned the git repo and ran qmake, make, and make install - same thing. It compiled and I was able to successfully run the compiled binary, but make install came up with "No rule to make target 'install'"
Shoot, I was going to attach that modified ebuild, but I just realized I deleted it in anger.
Basically, the changes went as follows:
EAPI changed from 1 to 2
inherit qt4-r2 instead of cmake
add at the end:
src_configure() {
eqmake4
}
Sorry guys for not announcing the cmake->qmake change here, I got kind of busy with local paperwork. I'll fix the install target upstream. Created attachment 228115 [details]
trojita-9999.ebuild
Summary of changes:
- reflect upstream's switch from cmake to qmake
- require Qt 4.6 (upstream strongly recommends it)
- mask the testsuite (no support for `make test` in the qmake's files yet)
Added to main tree :] |
It seems the ebuild tries to use 'cmake', while, according to what i see in the clone (trojita.pro), it should use qmake instead. Here is /var/tmp/portage/mail-client/trojita-9999/temp/build.log: * CPV: mail-client/trojita-9999 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU * GIT update --> * repository: git://gitorious.org/trojita/trojita.git * at the commit: ef002ef8834d0d2a30651da473e92be9c5749185 * branch: master * storage directory: "/var/portage/distfiles/git-src/trojita" Initialized empty Git repository in /var/tmp/portage/mail-client/trojita-9999/work/trojita-9999/.git/ >>> Unpacked to /var/tmp/portage/mail-client/trojita-9999/work/trojita-9999 >>> Working in BUILD_DIR: "/var/tmp/portage/mail-client/trojita-9999/work/trojita-9999_build" * I was unable to locate CMakeLists.txt under: * "/var/tmp/portage/mail-client/trojita-9999/work/trojita-9999/CMakeLists.txt" * You should consider not inheriting the cmake eclass. * ERROR: mail-client/trojita-9999 failed: * FATAL: Unable to find CMakeLists.txt * * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 3208: Called cmake-utils_src_compile * environment, line 757: Called _execute_optionaly 'src_compile' * environment, line 243: Called enable_cmake-utils_src_compile * environment, line 1115: Called cmake-utils_src_configure * environment, line 761: Called _execute_optionaly 'src_configure' * environment, line 243: Called enable_cmake-utils_src_configure * environment, line 1126: Called die * The specific snippet of code: * die "FATAL: Unable to find CMakeLists.txt"; * * If you need support, post the output of 'emerge --info =mail-client/trojita-9999', * the complete build log and the output of 'emerge -pqv =mail-client/trojita-9999'. * The complete build log is located at '/var/tmp/portage/mail-client/trojita-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/mail-client/trojita-9999/temp/environment'. * S: '/var/tmp/portage/mail-client/trojita-9999/work/trojita-9999' Reproducible: Always