| Summary: | sys-libs/gwenhywfar-4.0.2 version bump (was: 4.0.1 fails to compile: outdated moc, private/qucomextra_p.h missing) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
| Component: | [OLD] Library | Assignee: | Hanno Böck <hanno> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
build log Fix autodetection of qt4_dir Ebuild for sys-libs/gwenhywfar-4.0.2 |
||
|
Description
Martin von Gagern
2010-11-11 19:54:37 UTC
Created attachment 254035 [details]
emerge --info
Created attachment 254037 [details]
build log
It's propably failing because you have Qt3 installed from kde-sunset overlay. Propably a WONTFIX unless you provide a patch for it. Created attachment 254063 [details, diff] Fix autodetection of qt4_dir (In reply to comment #3) > It's propably failing because you have Qt3 installed from kde-sunset overlay. > Propably a WONTFIX unless you provide a patch for it. Fair enough. I had only seen the include flags for the compiler all mentioning Qt4, and hadn't noticed the configure output referring to that moc command from qt3. Here is a proposed fix, which I'll send upstream as well. The part of configure intended to automatically detect the qt4_dir is broken, causing the QTDIR environment variable to take precedence, which in turn is set by Qt3. Now the autodetection should work better. A possible fix workaround is to replace the ebuild src_configure() action for this:
src_configure() {
local guis qt4conf
use fox && guis="${guis} fox"
use gtk && guis="${guis} gtk2"
use qt4 && guis="${guis} qt4"
use qt4 && qt4conf="--with-qt4-uic=/usr/bin/uic --with-qt4-moc=/usr/bin/moc"
econf \
--disable-dependency-tracking \
--enable-ssl \
--enable-visibility \
$(use_enable debug) \
$(use_enable doc full-doc) \
--with-guis="${guis}" \
${qt4conf} \
--with-docpath=/usr/share/doc/${PF}/apidoc
}
Upstream developer Martin Preuss has accepted my patch from comment #4 and committed it as r2017 in http://devel.aqbanking.de/svn/gwenhywfar/trunk. (In reply to comment #5) > A possible fix workaround is to replace the ebuild src_configure() action for > this: > > use qt4 && qt4conf="--with-qt4-uic=/usr/bin/uic --with-qt4-moc=/usr/bin/moc" If one were to fix this at the ebuild level, as opposed to patching the configure script, I guess I'd rather pass QTDIR="/usr/$(get_libdir)/qt4" as an argument to configure. This is similar to the way aqbanking and qbankmanager do it, who pass QTDIR="/usr/$(get_libdir)/qt4". It's the setting of QTDIR that leads the current version to use Qt3. Created attachment 254869 [details]
Ebuild for sys-libs/gwenhywfar-4.0.2
Changed the SRC to the new Version. Works
bump done |