I had sci-geosciences/gpsd installed without the "qt4" use flag set and decided to emerge kde-meta. I was only using gpsd for testing another package, so I do not have the "gps" use flag set. When it got to kde-base/marble it failed to compile: [ 95%] Building CXX object marble/src/plugins/positionprovider/gpsd/CMakeFiles/GpsdPositionProviderPlugin.dir/GpsdConnection.o In file included from /var/tmp/portage/kde-base/marble-4.6.1/work/marble-4.6.1/marble/src/plugins/positionprovider/gpsd/GpsdConnection.cpp:11:0: /var/tmp/portage/kde-base/marble-4.6.1/work/marble-4.6.1/marble/src/plugins/positionprovider/gpsd/GpsdConnection.h:19:22: fatal error: libgpsmm.h: No such file or directory compilation terminated. If I rebuild gpsd with the "qt4" USE flag, marble compiles cleanly, but still builds the GpsdPositionProviderPlugin, even with USE="-gps". If I remove gpsd from my system marble builds without the GpsdPositionProvider. It would appear that marble's build system is detecting the presence of gpsd on my system and enabling support if it finds it, even if I have the gps use flag unset: % emerge -pv marble These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] kde-base/marble-4.6.1 USE="handbook python (-aqua) -debug -designer-plugin -gps (-kdeenablefinal) (-kdeprefix) -plasma -test" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB % qlist marble | grep Gpsd /usr/lib64/kde4/plugins/marble/GpsdPositionProviderPlugin.so Reproducible: Always Steps to Reproduce: 1. Install sci-geosciences/gpsd 2. emerge kde-base/marble with USE="-gps" 3. Actual Results: /usr/lib64/kde4/plugins/marble/GpsdPositionProviderPlugin.so is built and installed. Expected Results: GpsdPositionProviderPlugin.so should not be built.
*** This bug has been marked as a duplicate of bug 360471 ***
Oops wrong bug :)
Yep it is automagic. http://websvn.kde.org/trunk/KDE/kdeedu/marble/src/plugins/positionprovider/CMakeLists.txt?revision=1146867&view=markup
Fixed in 4.6.2-r1.