Bug 473292 - Installing with KDE_INSTALL_USE_QT_SYS_PATHS=ON with both BUILD_QT5 and BUILD_QT6 installs to wrong locations
Summary: Installing with KDE_INSTALL_USE_QT_SYS_PATHS=ON with both BUILD_QT5 and BUILD...
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 19:15 UTC by Bernhard Rosenkränzer
Modified: 2023-08-17 13:53 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkränzer 2023-08-11 19:15:40 UTC
SUMMARY

Installing Breeze (master as of 2023/08/11) with KDE_INSTALL_USE_QT_SYS_PATHS=ON and both BUILD_QT5 and BUILD_QT6 enabled installs qt6 plugins to qt5's plugin directories

STEPS TO REPRODUCE
1. Install Qt5 and Qt6, in different prefixes (e.g. /usr/lib64/qt5 and /usr/lib64/qt6)
2. Build breeze with -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_QT5=ON -DBUILD_QT6=ON
3. make install

OBSERVED RESULT
Qt6 plugins are installed into qt5 library directories, e.g.
   /usr/lib64/qt5/plugins/org.kde.kdecoration2.kcm/kcm_breezedecoration.so
   /usr/lib64/qt5/plugins/org.kde.kdecoration2/org.kde.breeze.so
   /usr/lib64/qt5/plugins/styles/breeze5.so
   /usr/lib64/qt5/plugins/styles/breeze6.so
Qt5 plugins are installed into the correct directory.

EXPECTED RESULT
Qt5 plugins are installed into Qt5 directories,
Qt6 plugins into Qt6 directories.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenMandriva Cooker
(available in About System)
KDE Plasma Version: Plasma 5 5.27.7 and Plasma 6 git snapshot from today
KDE Frameworks Version: KF5 5.108 and KF6 snapshot from today
Qt Version: 5.15.10 with KDE patches and 6.6.0-beta1

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2023-08-16 08:16:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/339
Comment 2 David Redondo 2023-08-17 13:53:01 UTC
Git commit 9de8ff823a1d8e188e35158f95eac971b1834da0 by David Redondo.
Committed on 17/08/2023 at 15:48.
Pushed by davidre into branch 'master'.

Enclose Qt5 and Qt6 blocks in their own scopes

To prevent the various KDE_(FULL_)INSTALL_* variables leaking out
put Qt5 and Qt6 specifics into a function and with it in their own
blocks.
Following on the outside we can't refer to them anymore so only install
the cmake config when the Qt6 is build which is the 'proper build'
compared to style support only with Qt5.

M  +56   -61   CMakeLists.txt

https://invent.kde.org/plasma/breeze/-/commit/9de8ff823a1d8e188e35158f95eac971b1834da0