File: settings-qt5.diff

package info (click to toggle)
phonon 4%3A4.12.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,388 kB
  • sloc: cpp: 15,009; makefile: 35; sh: 30; awk: 22
file content (29 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Pino Toscano <pino@debian.org>
Description: Force phononsettings to use Qt 5
 phononsettings uses the cmake variable "QT_MAJOR_VERSION" to determine which
 version of Qt to use for the build. Also, currently it is built only for one
 Qt version, and it has no Qt-versioned name.
 .
 "QT_MAJOR_VERSION" is set as loop variable in the top-level CMakeLists.txt while
 iterating on the list of available Qt versions, and since the list contains "5"
 (if available) and then "6" (if available), this means that phononsettings will
 be always built with Qt 6 if available.
 .
 This is kept as local change here because there should be a better way to deal
 with this situation, for example version phononsettings and build it for all
 the Qt versions.
 .
 Since there are still more users of Qt 5 phonon at the moment, force the build
 of phononsettings using Qt 5. This will be revised/dropped either if upstream
 comes with a better solution, or there will be more Qt 6 phonon users than
 Qt 5.
Last-Update: 2023-11-04
Forwarded: not-needed

--- a/settings/CMakeLists.txt
+++ b/settings/CMakeLists.txt
@@ -1,3 +1,4 @@
+set(QT_MAJOR_VERSION "5")
 add_definitions(-DPHONON_LIB_SONAME=\"${PHONON_LIB_SONAME}\")
 
 set(SRCS