Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 401259

Summary: x11-misc/lightdm-1.0.6-r3[qt4] fails with Qt 4.8.0
Product: Gentoo Linux Reporter: Ben de Groot <yngwin>
Component: Current packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ben de Groot 2012-01-29 06:43:30 UTC
CXX    liblightdm_qt_1_la-greeter_moc.lo
greeter_moc.cpp:14:2: error: #error "This file was generated using the moc from 4.7.4. It"
greeter_moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."
greeter_moc.cpp:16:2: error: #error "(The moc has changed too much.)"
make[2]: *** [liblightdm_qt_1_la-greeter_moc.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 * ERROR: x11-misc/lightdm-1.0.6-r3 failed (compile phase):
Comment 1 Franz Trischberger 2012-01-29 08:35:46 UTC
They seem to bundle the files generated from moc...

add this to the end of src_prepare

    einfo "removing bundled mocs"
    cd "${S}"/liblightdm-qt
    rm *moc.cpp
    cd "${S}"/greeters/qt
    rm *moc.cpp
    cd "${S}"/tests/src
    rm *moc.cpp

to remove all bundled mocs. Built fine after that.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-01-29 10:08:46 UTC
Fixed in -r4. Thanks a lot