Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269631 - eqmake4 fails while qmake works (qtiplot-0.9.7.7)
Summary: eqmake4 fails while qmake works (qtiplot-0.9.7.7)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 23:04 UTC by urcindalo
Modified: 2009-05-17 15:19 UTC (History)
2 users (show)

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


Attachments
eqmake4 patch (qt4.eclass.patch,391 bytes, patch)
2009-05-15 12:27 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description urcindalo 2009-05-12 23:04:18 UTC
I had qtiplot-0.9.7.7 on a i686 system with stable KDE 3.5.9. After upgrading to KDE 4.2.3, qtiplot no longer builds:

===
src/scripting/Script.h:67: aviso: se descartan los calificadores de tipo en el tipo de devolución de la
i686-pc-linux-gnu-g++ -c -pipe -O2 -march=i686 -pipe -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSCRIPT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHONG_PATH=\"/usr/lib/python2.5/site-packages\" -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/sharinux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/incGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -t4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I../3rdparty/qwtplot3d/include -I/usr/include/qwt5/liborigin2 -I/usr/include/boost -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/inc2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/usr/inclu/usr/X11R6/include -I/var/tmp/portage/sci-visualization/qtiplot-0.9.7.7/work/qtiplot-0.9.7.7/tmp/qtiplo/qtiplot/IntDialog.o src/analysis/dialogs/IntDialog.cpp
i686-pc-linux-gnu-g++ -c -pipe -O2 -march=i686 -pipe -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSCRIPT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHONG_PATH=\"/usr/lib/python2.5/site-packages\" -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/sharinux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/incGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -t4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I../3rdparty/qwtplot3d/include -I/usr/include/qwt5/liborigin2 -I/usr/include/boost -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/inc2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/usr/inclu/usr/X11R6/include -I/var/tmp/portage/sci-visualization/qtiplot-0.9.7.7/work/qtiplot-0.9.7.7/tmp/qtiplo/qtiplot/InterpolationDialog.o src/analysis/dialogs/InterpolationDialog.cpp
In file included from src/table/Table.h:41,
                 from src/core/ApplicationWindow.h:44,
                 from src/analysis/Filter.h:34,
                 from src/analysis/Integration.h:32,
                 from src/analysis/dialogs/IntDialog.cpp:30:
src/scripting/Script.h:67: aviso: se descartan los calificadores de tipo en el tipo de devolución de la
i686-pc-linux-gnu-g++ -c -pipe -O2 -march=i686 -pipe -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSCRIPT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHONG_PATH=\"/usr/lib/python2.5/site-packages\" -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/sharinux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/incGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -t4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I../3rdparty/qwtplot3d/include -I/usr/include/qwt5/liborigin2 -I/usr/include/boost -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/inc2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/usr/inclu/usr/X11R6/include -I/var/tmp/portage/sci-visualization/qtiplot-0.9.7.7/work/qtiplot-0.9.7.7/tmp/qtiplo/qtiplot/PolynomFitDialog.o src/analysis/dialogs/PolynomFitDialog.cpp
In file included from src/table/Table.h:41,
                 from src/core/ApplicationWindow.h:44,
                 from src/analysis/dialogs/../Filter.h:34,
                 from src/analysis/dialogs/../Interpolation.h:32,
                 from src/analysis/dialogs/InterpolationDialog.cpp:30:
src/scripting/Script.h:67: aviso: se descartan los calificadores de tipo en el tipo de devolución de la
i686-pc-linux-gnu-g++ -c -pipe -O2 -march=i686 -pipe -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSCRIPT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHONG_PATH=\"/usr/lib/python2.5/site-packages\" -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/sharinux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/incGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -t4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I../3rdparty/qwtplot3d/include -I/usr/include/qwt5/liborigin2 -I/usr/include/boost -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/inc2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/usr/inclu/usr/X11R6/include -I/var/tmp/portage/sci-visualization/qtiplot-0.9.7.7/work/qtiplot-0.9.7.7/tmp/qtiplo/qtiplot/SmoothCurveDialog.o src/analysis/dialogs/SmoothCurveDialog.cpp
make[1]: *** No hay ninguna regla para construir el objetivo `CONFIG', necesario para `../tmp/qtiplot/C.
make[1]: *** Se espera a que terminen otras tareas....
In file included from src/table/Table.h:41,
                 from src/core/ApplicationWindow.h:44,
                 from src/analysis/Fit.h:34,
                 from src/analysis/PolynomialFit.h:32,
                 from src/analysis/dialogs/PolynomFitDialog.cpp:30:
src/scripting/Script.h:67: aviso: se descartan los calificadores de tipo en el tipo de devolución de la
In file included from src/table/Table.h:41,
                 from src/core/ApplicationWindow.h:44,
                 from src/analysis/dialogs/../Filter.h:34,
                 from src/analysis/dialogs/../SmoothFilter.h:32,
                 from src/analysis/dialogs/SmoothCurveDialog.cpp:30:
src/scripting/Script.h:67: aviso: se descartan los calificadores de tipo en el tipo de devolución de la
make[1]: se sale del directorio `/var/tmp/portage/sci-visualization/qtiplot-0.9.7.7/work/qtiplot-0.9.7.
make: *** [sub-qtiplot-make_default] Error 2
 *
 * ERROR: sci-visualization/qtiplot-0.9.7.7 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 3014:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed 
===

I even updated my qt-* components from 4.4.2 to 4.5.1 and rebuilt kdelibs, to no avail.

Reproducible: Always
Comment 1 Sebastian Luther (few) 2009-05-13 11:55:18 UTC
Please provide emerge --info and the complete build.log. Please use "LC_ALL=C emerge qtiplot" to get englich error messages. 

revdep-rebuild gives nothing, right?
Comment 2 Anton Anikin 2009-05-14 07:24:40 UTC
(In reply to comment #1)
> Please provide emerge --info and the complete build.log. Please use "LC_ALL=C
> emerge qtiplot" to get englich error messages. 
> 
> revdep-rebuild gives nothing, right?
> 

On my system with kde 3.5.10 this ebuild dies too. I find what the reason of this is using eqmake4 function in in the ebuild. In my local overlay I change this function to qmake and emerge of this package is successful for me now.

src_configure() {
       qmake
}

instead of 

src_configure() {
        eqmake4
}

P.S. sorry for my bad english.
Comment 3 Andrey Grozin gentoo-dev 2009-05-14 17:12:26 UTC
I have exactly the same problem (only error messages are in a different language :-). Is anything wrong with eqmake4 from qt4.eclass?

Comment 4 Anton Anikin 2009-05-15 07:35:30 UTC
(In reply to comment #3)
> I have exactly the same problem (only error messages are in a different
> language :-). Is anything wrong with eqmake4 from qt4.eclass?
> 

Yes, it's equmake4 problem.

http://www.gentoo.org/proj/en/desktop/kde/qt4-based-ebuild-howto.xml?style=printable

"There are some rare occasions where eqmake4 fails, but qmake works. Please fill a bug about this in order to take care of it"
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-05-15 10:09:34 UTC
I dont understand the language of the build output, but I think that eqmake4 fails to modify CONFIG variable from 3rdparty/qwtplot3d/qwtplot3d.pro correctly. This is an eclass bug. We ll take care of it
Thanks for reporting
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 11:01:41 UTC
From what I can see, the modifications applied by eqmake4 to 3rdparty/qwtplot3d/qwtplot3d.pro are correct. This is the diff:

@@ -1,9 +1,10 @@
+### eqmake4 was here ###
 # pro file for building the makefile for qwtplot3d
 #

 TARGET            = qwtplot3d
 TEMPLATE          = lib
-CONFIG           += qt warn_on opengl thread zlib debug
+CONFIG += qt warn_on opengl thread zlib release
 MOC_DIR           = tmp
 OBJECTS_DIR       = tmp
 INCLUDEPATH       = include
@@ -93,3 +94,5 @@
   win32:LIBS += zlib.lib
        unix:LIBS  += -lz
 }
+CONFIG -= debug_and_release debug
+CONFIG += release
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 11:28:38 UTC
Ah ok, found it! A lot of .pro/.pri files end with a backslash ('\') on the last line; eqmake4 then appends its CONFIG stuff at the end of the file, but qmake parses that as a continuation of the previous line, because of the backslash.

At this point, instead of patching every single .pro/.pri file of the package's build system, I think it's better to change eqmake4 to pay more attention when modifying those files. I'll attach a patch shortly.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2009-05-15 12:27:39 UTC
Created attachment 191353 [details, diff]
eqmake4 patch
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2009-05-17 15:19:03 UTC
Patched added to eclass. Thanks Davide

Closing

Re-open if needed