Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285124 - games-mud/xpertmud-3.1_pre1 fails (mixing problem between kdelibs 3.5 and 4.3)
Summary: games-mud/xpertmud-3.1_pre1 fails (mixing problem between kdelibs 3.5 and 4.3)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 18:39 UTC by Christophe LEFEBVRE
Modified: 2009-09-15 20:52 UTC (History)
0 users

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


Attachments
build.log (build.log,36.75 KB, text/plain)
2009-09-15 18:42 UTC, Christophe LEFEBVRE
Details
xpertmud-3.1_pre1-r1.ebuild (xpertmud-3.1_pre1-r1.ebuild,1.13 KB, text/plain)
2009-09-15 18:45 UTC, Christophe LEFEBVRE
Details
xpertmud-3.1_pre1.ebuild (xpertmud-3.1_pre1.ebuild,1.13 KB, text/plain)
2009-09-15 20:32 UTC, Christophe LEFEBVRE
Details
xpertmud-3.1_pre1.ebuild (xpertmud-3.1_pre1.ebuild,1.07 KB, text/plain)
2009-09-15 20:51 UTC, Christophe LEFEBVRE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe LEFEBVRE 2009-09-15 18:39:17 UTC
Same kind of problem like bug #274737 (econf needs to have extra include path (KDE 3.5 includes) in order to build successfully)

Reproducible: Always

Steps to Reproduce:
1. Have kdelibs-3.5 and kde-4.3
2. emerge xpertmud

Actual Results:  
source='qextmdichildarea.cpp' object='qextmdichildarea.lo' libtool=yes \                                                  
        depfile='.deps/qextmdichildarea.Plo' tmpdepfile='.deps/qextmdichildarea.TPlo' \                                   
        depmode=gcc3 /bin/sh ../../admin/depcomp \                                                                        
        /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../qextmdi/include -I../../qextmdi/res -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -Wall -pedantic -Wno-long-long -g -DKDE_NO_COMPAT -DQT_NO_COMPAT  -c -o qextmdichildarea.lo `test -f 'qextmdichildarea.cpp' || echo './'`qextmdichildarea.cpp                                                        
source='qextmdichildfrm.cpp' object='qextmdichildfrm.lo' libtool=yes \                                                                                   
        depfile='.deps/qextmdichildfrm.Plo' tmpdepfile='.deps/qextmdichildfrm.TPlo' \                                                                    
        depmode=gcc3 /bin/sh ../../admin/depcomp \                                                                                                       
        /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../qextmdi/include -I../../qextmdi/res -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -Wall -pedantic -Wno-long-long -g -DKDE_NO_COMPAT -DQT_NO_COMPAT  -c -o qextmdichildfrm.lo `test -f 'qextmdichildfrm.cpp' || echo './'`qextmdichildfrm.cpp                                                           
In file included from /usr/qt/3/include/qwindowdefs.h:48,                                                                                                
                 from /usr/qt/3/include/qwidget.h:46,                                                                                                    
                 from /usr/qt/3/include/qframe.h:46,                                                                                                     
                 from /usr/qt/3/include/qpopupmenu.h:46,                                                                                                 
                 from qextmdichildarea.cpp:29:                                                                                                           
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':                                                                            
/usr/qt/3/include/qstring.h:197: warning: conversion to 'char' from 'int' may alter its value                                                            
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':                                                                            
/usr/qt/3/include/qstring.h:222: warning: conversion to 'ushort' from 'int' may alter its value                                                          
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':                                                                             
/usr/qt/3/include/qstring.h:223: warning: conversion to 'ushort' from 'int' may alter its value                                                          
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':                                                                                
/usr/qt/3/include/qstring.h:267: warning: conversion to 'ushort' from 'int' may alter its value                                                          
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':                                                              
/usr/qt/3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value                                                
/usr/qt/3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value                                                
In file included from /usr/qt/3/include/qobject.h:49,                                                                                                    
                 from /usr/qt/3/include/qwidget.h:47,                                                                                                    
                 from /usr/qt/3/include/qframe.h:46,                                                                                                     
                 from /usr/qt/3/include/qpopupmenu.h:46,                                                                                                 
                 from qextmdichildarea.cpp:29:                                                                                                           
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':                                                         
/usr/qt/3/include/qevent.h:523: warning: conversion to 'unsigned char' from 'uint' may alter its value                                                   
In file included from /usr/qt/3/include/qwidget.h:53,                                                                                                    
                 from /usr/qt/3/include/qframe.h:46,                                                                                                     
                 from /usr/qt/3/include/qpopupmenu.h:46,                                                                                                 
                 from qextmdichildarea.cpp:29:                                                                                                           
/usr/qt/3/include/qsizepolicy.h: In member function 'void QSizePolicy::transpose()':                                                                     
/usr/qt/3/include/qsizepolicy.h:125: warning: conversion to 'uchar' from 'uint' may alter its value                                                      
/usr/qt/3/include/qsizepolicy.h:125: warning: conversion to 'uchar' from 'uint' may alter its value                                                      
In file included from ../../qextmdi/include/qextmdichildfrm.h:38,                                                                                        
                 from ../../qextmdi/include/qextmdichildarea.h:38,                                                                                       
                 from qextmdichildarea.cpp:32:                                                                                                           
/usr/qt/3/include/qpushbutton.h: In member function 'virtual void QPushButton::setIsMenuButton(bool)':                                                   
/usr/qt/3/include/qpushbutton.h:94: warning: conversion to 'unsigned char:1' from 'int' may alter its value                                              
source='qextmdichildfrmcaption.cpp' object='qextmdichildfrmcaption.lo' libtool=yes \                                                                     
        depfile='.deps/qextmdichildfrmcaption.Plo' tmpdepfile='.deps/qextmdichildfrmcaption.TPlo' \                                                      
        depmode=gcc3 /bin/sh ../../admin/depcomp \                                                                                                       
        /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../qextmdi/include -I../../qextmdi/res -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -Wall -pedantic -Wno-long-long -g -DKDE_NO_COMPAT -DQT_NO_COMPAT  -c -o qextmdichildfrmcaption.lo `test -f 'qextmdichildfrmcaption.cpp' || echo './'`qextmdichildfrmcaption.cpp                                      
In file included from /usr/include/kdeui_export.h:24,                                                                                                    
                 from /usr/include/kmainwindow.h:33,                                                                                                     
                 from ../../qextmdi/include/qextmdimainfrm.h:33,                                                                                         
                 from qextmdichildfrm.cpp:40:                                                                                                            
/usr/include/kdemacros.h:162:29: error: QtCore/qglobal.h: No such file or directory                           


cf. bug #274737 if my "emerge --info" is needed (or I can post you it later).
Comment 1 Christophe LEFEBVRE 2009-09-15 18:42:36 UTC
Created attachment 204231 [details]
build.log

As you can see, build fails because "-I /usr/kde/3.5/include" is missing in the building path. I think it can be build on a only KDE 3.5 computer but it fails when we have kdelibs 3.5 and KDE-4.3 like me.
Comment 2 Christophe LEFEBVRE 2009-09-15 18:45:44 UTC
Created attachment 204233 [details]
xpertmud-3.1_pre1-r1.ebuild

Please find the corrected ebuild (I have suggest the same resolution for the bug #274737 for games-mud/kmuddy-0.8)

I have just added an extra path for the include directory of KDE 3.5 for econf :

diff -u xpertmud-3.1_pre1.ebuild /tmp/xpertmud-3.1_pre1-r1.ebuild
--- xpertmud-3.1_pre1.ebuild    2009-01-21 15:06:03.000000000 +0100
+++ /tmp/xpertmud-3.1_pre1-r1.ebuild    2009-09-15 20:23:14.000000000 +0200
@@ -34,6 +34,7 @@
        econf \
                $(use_with python python) \
                $(use_with ruby ruby) \
+           --with-extra-includes=`kde-config --expandvars --install include` \
                || die
        emake || die "emake failed"
 }
Comment 3 Christophe LEFEBVRE 2009-09-15 20:32:40 UTC
Created attachment 204251 [details]
xpertmud-3.1_pre1.ebuild

Corrected econf includes path and ebuild migrated to EAPI="2"
Comment 4 Christophe LEFEBVRE 2009-09-15 20:51:02 UTC
Created attachment 204259 [details]
xpertmud-3.1_pre1.ebuild

Some enhancements in xpermud-3.1_pre1.ebuild according EAPI=2
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2009-09-15 20:52:06 UTC
fixed.  thanks for the bug report and patch.