Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242392 - dev-libs/soprano-2.1: won't emerge with -debug if qt-core is built with +debug
Summary: dev-libs/soprano-2.1: won't emerge with -debug if qt-core is built with +debug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 19:18 UTC by Andrew Smith
Modified: 2009-06-28 23:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Smith 2008-10-16 19:18:35 UTC
While trying to emerge kde 4.1.2, dev-libs/soprano-2.1 won't resolve unless qt-core is built with -debug, unless both dev-libs/soprano-2.1 and qt-core are built with +debug

Reproducible: Always

Steps to Reproduce:
1. emerge qt-core with +debug
2. try and emerge soprano with -debug
3.

Actual Results:  
Unable to emerge

Expected Results:  
Successful emerge
Comment 1 Keith Rusler 2008-10-23 07:03:38 UTC
You have to compile soprano with debug flag use flag if you have qt with debug use flag.
Comment 2 Andrew Smith 2008-10-23 12:52:03 UTC
You do, or you can recomile qt with -debug. However, the error message makes it sound like the only way to resolve the the issue is to compile qt with -debug, as oppose to setting the soprano +debug use flag.

Also, is it not possible at all to compile soprano with -debug when qt has +debug?
Comment 3 Marian Kyral 2008-11-01 17:49:19 UTC
(In reply to comment #2)
> You do, or you can recomile qt with -debug. However, the error message makes it
> sound like the only way to resolve the the issue is to compile qt with -debug,
> as oppose to setting the soprano +debug use flag.
> 
> Also, is it not possible at all to compile soprano with -debug when qt has
> +debug?
> 

I agree with it. According this message I recompiled - the qt-core with the -debug use flag. But I forget about the debug flag set for the qt-giu and the rebuild failed with the error:

compiling widgets/qprintpreviewwidget.cpp
compiling dialogs/qprintdialog_unix.cpp
compiling dialogs/qcolordialog.cpp
compiling dialogs/qfontdialog.cpp
compiling dialogs/qprintpreviewdialog.cpp
compiling itemviews/qtableview.cpp
compiling itemviews/qlistwidget.cpp
rm -f libQtGui.so.4.4.2 libQtGui.so libQtGui.so.4 libQtGui.so.4.4
linking ../../lib/libQtGui.so.4.4.2
.obj/debug-shared/qapplication.o: In function `QApplication::notify(QObject*, QEvent*)':
/var/tmp/portage/x11-libs/qt-gui-4.4.2/work/qt-x11-opensource-src-4.4.2/src/gui/kernel/qapplication.cpp:3355: undefined reference to `QCoreApplicationPrivate::checkReceiverThread(QObject*)'
collect2: ld returned 1 exit status
make: *** [../../lib/libQtGui.so.4.4.2] Error 1
 *
 * ERROR: x11-libs/qt-gui-4.4.2 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2758:  Called qt4-build_src_compile
 * environment, line 2524:  Called build_target_directories
 * environment, line  365:  Called build_directories '
 * src/gui
 * tools/designer
 * tools/linguist
 * src/plugins/imageformats/gif
 * src/plugins/imageformats/ico
 * src/plugins/imageformats/jpeg tools/qdbus/qdbusviewer src/plugins/imageformats/mng src/plugins/imageformats/tiff'
 * environment, line  360:  Called die
 * The specific snippet of code:
 * emake || die "emake failed";
 * The die message:
 * emake failed
 *

Rebuild with -debug was successful. The ebuilds should check the consistency across packages.
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2008-11-25 19:14:18 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > You do, or you can recomile qt with -debug. However, the error message makes it
> > sound like the only way to resolve the the issue is to compile qt with -debug,
> > as oppose to setting the soprano +debug use flag.
> > 
> > Also, is it not possible at all to compile soprano with -debug when qt has
> > +debug?
> > 

No, it isn't because it doesn't make any sense.
This is expressed in the ebuild through USE deps:

COMMON_DEPEND="
...
    x11-libs/qt-core:4[debug=]
    x11-libs/qt-dbus:4[debug=]
...
"

> I agree with it. According this message I recompiled - the qt-core with the
> -debug use flag. But I forget about the debug flag set for the qt-giu and the
> rebuild failed with the error:
> 
...
> Rebuild with -debug was successful. The ebuilds should check the consistency
> across packages.
> 

This is another issue. The qt-gui package doesn't have USE deps. We should probably add them, but that means using EAPI-2.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-28 23:02:33 UTC
This bug is fixed in later versions.