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

Bug 591330

Summary: kde-plasma/oxygen-5.7.3[-qt4] does not need to block kde-base/kstyles
Product: Gentoo Linux Reporter: Andrzej Rybczak <electricityispower>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Block kde-base/kstyles only if qt4 flag is set

Description Andrzej Rybczak 2016-08-15 15:19:10 UTC
Currently kde-plasma/oxygen-5.7.3 unconditionally blocks kde-base/kstyles, but it's only necessary if qt4 use flag is enabled as kde-base/kstyles pulls kde-base/liboxygenstyle, which collides with qt4 version of kde-plasma/oxygen. 

Otherwise kde-plasma/oxygen provides only qt5 version of oxygen which coexists fine with kde-base/kstyles.

Attached diff fixes the issue.

Reproducible: Always
Comment 1 Andrzej Rybczak 2016-08-15 15:20:07 UTC
Created attachment 443396 [details, diff]
Block kde-base/kstyles only if qt4 flag is set
Comment 2 Andreas Sturmlechner gentoo-dev 2016-08-15 16:01:18 UTC
Could you try if oxygen[qt4] works as an alternative for liboxygenstyle?
Comment 3 Andrzej Rybczak 2016-08-15 18:57:21 UTC
Unfortunately it doesn't, kde-base/kwin fails to link with it:

[ 31%] Linking CXX shared module ../../../../lib/kwin_oxygen_config.so
cd /var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build/kwin/clients/oxygen/config && /usr/bin/cmake -E cmake_link_script CMakeFiles/kwin_oxygen_config.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu -shared  -o ../../../../lib/kwin_oxygen_config.so CMakeFiles/kwin_oxygen_config.dir/kwin_oxygen_config_automoc.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenanimationconfigwidget.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenconfig.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenconfigwidget.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygendetectwidget.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenexceptiondialog.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenexceptionlistwidget.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenexceptionmodel.cpp.o CMakeFiles/kwin_oxygen_config.dir/__/oxygenexceptionlist.cpp.o CMakeFiles/kwin_oxygen_config.dir/oxygenconfiguration.cpp.o /usr/lib64/qt4/libQtGui.so -lX11 ../../../../lib/libkdecorations.so.4.14.22 -loxygenstyle -loxygenstyleconfig /usr/lib64/libkdeui.so.5.14.22 /usr/lib64/qt4/libQtGui.so /usr/lib64/libkdecore.so.5.14.22 /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtSvg.so -Wl,-rpath,/usr/lib64/qt4:/var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build/lib: 
CMakeFiles/kwin_oxygen_config.dir/oxygenconfig.cpp.o: In function `Oxygen::Config::save()':
oxygenconfig.cpp:(.text+0x5d0): undefined reference to `Oxygen::Util::writeConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
oxygenconfig.cpp:(.text+0x6cf): undefined reference to `Oxygen::ShadowConfigWidget::writeConfig(KConfig*) const'
CMakeFiles/kwin_oxygen_config.dir/oxygenconfig.cpp.o: In function `Oxygen::Config::defaults()':
oxygenconfig.cpp:(.text+0xa64): undefined reference to `Oxygen::ShadowConfigWidget::readConfig(KConfig*, bool)'
CMakeFiles/kwin_oxygen_config.dir/oxygenconfig.cpp.o: In function `Oxygen::Config::load()':
oxygenconfig.cpp:(.text+0xcb9): undefined reference to `Oxygen::ShadowConfigWidget::readConfig(KConfig*, bool)'
CMakeFiles/kwin_oxygen_config.dir/__/oxygenexceptionlist.cpp.o: In function `Oxygen::ExceptionList::readConfig(KSharedPtr<KSharedConfig>)':
oxygenexceptionlist.cpp:(.text+0x27c): undefined reference to `Oxygen::Util::readConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
oxygenexceptionlist.cpp:(.text+0x2e1): undefined reference to `Oxygen::Util::readConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
CMakeFiles/kwin_oxygen_config.dir/__/oxygenexceptionlist.cpp.o: In function `Oxygen::ExceptionList::writeConfig(KSharedPtr<KSharedConfig>)':
oxygenexceptionlist.cpp:(.text+0x918): undefined reference to `Oxygen::Util::writeConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [kwin/clients/oxygen/config/CMakeFiles/kwin_oxygen_config.dir/build.make:362: lib/kwin_oxygen_config.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build'
make[1]: *** [CMakeFiles/Makefile2:1894: kwin/clients/oxygen/config/CMakeFiles/kwin_oxygen_config.dir/all] Error 2
[ 32%] Linking CXX shared module ../../../lib/kwin3_oxygen.so
cd /var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build/kwin/clients/oxygen && /usr/bin/cmake -E cmake_link_script CMakeFiles/kwin3_oxygen.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu -shared  -o ../../../lib/kwin3_oxygen.so CMakeFiles/kwin3_oxygen.dir/kwin3_oxygen_automoc.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenbutton.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenclient.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenclientgroupitemdata.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenexceptionlist.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenfactory.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygensizegrip.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygentitleanimationdata.cpp.o CMakeFiles/kwin3_oxygen.dir/oxygenconfiguration.cpp.o -lX11 -lXrender ../../../lib/libkdecorations.so.4.14.22 -loxygenstyle /usr/lib64/libkdeui.so.5.14.22 /usr/lib64/libkdecore.so.5.14.22 /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtSvg.so -Wl,-rpath,/var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build/lib:/usr/lib64/qt4: 
CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o:(.data.rel.ro._ZTVN6Oxygen10DecoHelperE[_ZTVN6Oxygen10DecoHelperE]+0x20): undefined reference to `Oxygen::Helper::reloadConfig()'
CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o:(.data.rel.ro._ZTVN6Oxygen10DecoHelperE[_ZTVN6Oxygen10DecoHelperE]+0x50): undefined reference to `Oxygen::Helper::renderWindowBackground(QPainter*, QRect const&, QWidget const*, QWidget const*, QColor const&, int, int)'
CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o:(.data.rel.ro._ZTVN6Oxygen10DecoHelperE[_ZTVN6Oxygen10DecoHelperE]+0x58): undefined reference to `Oxygen::Helper::renderBackgroundPixmap(QPainter*, QRect const&, QWidget const*, QWidget const*, int, int)'
CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o:(.data.rel.ro._ZTVN6Oxygen10DecoHelperE[_ZTVN6Oxygen10DecoHelperE]+0x100): undefined reference to `Oxygen::Helper::setHasBackgroundPixmap(unsigned long, bool) const'
CMakeFiles/kwin3_oxygen.dir/oxygendecohelper.cpp.o:(.data.rel.ro._ZTVN6Oxygen10DecoHelperE[_ZTVN6Oxygen10DecoHelperE]+0x108): undefined reference to `Oxygen::Helper::hasBackgroundPixmap(unsigned long) const'
CMakeFiles/kwin3_oxygen.dir/oxygenexceptionlist.cpp.o: In function `Oxygen::ExceptionList::readConfig(KSharedPtr<KSharedConfig>)':
oxygenexceptionlist.cpp:(.text+0x27c): undefined reference to `Oxygen::Util::readConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
oxygenexceptionlist.cpp:(.text+0x2e1): undefined reference to `Oxygen::Util::readConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
CMakeFiles/kwin3_oxygen.dir/oxygenexceptionlist.cpp.o: In function `Oxygen::ExceptionList::writeConfig(KSharedPtr<KSharedConfig>)':
oxygenexceptionlist.cpp:(.text+0x918): undefined reference to `Oxygen::Util::writeConfig(KCoreConfigSkeleton*, KConfig*, QString const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [kwin/clients/oxygen/CMakeFiles/kwin3_oxygen.dir/build.make:346: lib/kwin3_oxygen.so] Error 1
make[2]: Leaving directory '/var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build'
make[1]: *** [CMakeFiles/Makefile2:1805: kwin/clients/oxygen/CMakeFiles/kwin3_oxygen.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-base/kwin-4.11.22/work/kwin-4.11.22_build'
make: *** [Makefile:139: all] Error 2
 * ERROR: kde-base/kwin-4.11.22::gentoo failed (compile phase):
 *   emake failed