summarylogtreecommitdiffstats
path: root/arch-build.patch
blob: 6cb83c46fb1a7e70ad217bbc7e4c88db6ddeecf3 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
diff -ruN tomahawk-0.8.4.orig/CMakeModules/FindEchonest.cmake tomahawk-0.8.4/CMakeModules/FindEchonest.cmake
--- tomahawk-0.8.4.orig/CMakeModules/FindEchonest.cmake	2015-08-16 22:42:45.703388001 +0300
+++ tomahawk-0.8.4/CMakeModules/FindEchonest.cmake	2015-08-16 23:10:08.985694721 +0300
@@ -13,7 +13,7 @@
 
 PKG_CHECK_MODULES(PC_ECHONEST QUIET libechonest${LIBECHONEST_SUFFIX})
 
-FIND_PATH(ECHONEST_INCLUDE_DIR NAMES echonest/Track.h
+FIND_PATH(ECHONEST_INCLUDE_DIR NAMES echonest${LIBECHONEST_SUFFIX}/Track.h
     HINTS
         ${PC_ECHONEST_INCLUDEDIR}
         ${PC_ECHONEST_INCLUDE_DIRS}
diff -ruN tomahawk-0.8.4.orig/CMakeModules/FindLibLastFm.cmake tomahawk-0.8.4/CMakeModules/FindLibLastFm.cmake
--- tomahawk-0.8.4.orig/CMakeModules/FindLibLastFm.cmake	2015-08-16 22:42:45.703388001 +0300
+++ tomahawk-0.8.4/CMakeModules/FindLibLastFm.cmake	2015-08-16 23:11:38.255520184 +0300
@@ -14,7 +14,7 @@
 # Include dir
 find_path(LIBLASTFM_INCLUDE_DIR
   # Track.h doesn't exist in liblastfm-0.3.1, was called Track back then
-  NAMES lastfm/Track.h
+  NAMES lastfm${LASTFM_LIB_SUFFIX}/Track.h
   PATHS ${KDE4_INCLUDE_DIR}
 )
 
diff -ruN tomahawk-0.8.4.orig/src/infoplugins/generic/echonest/EchonestPlugin.cpp tomahawk-0.8.4/src/infoplugins/generic/echonest/EchonestPlugin.cpp
--- tomahawk-0.8.4.orig/src/infoplugins/generic/echonest/EchonestPlugin.cpp	2015-08-16 22:42:45.763385657 +0300
+++ tomahawk-0.8.4/src/infoplugins/generic/echonest/EchonestPlugin.cpp	2015-08-16 23:17:40.127977670 +0300
@@ -23,7 +23,7 @@
 #include "utils/Logger.h"
 #include "utils/NetworkAccessManager.h"
 
-#include <echonest/ArtistTypes.h>
+#include <echonest5/ArtistTypes.h>
 
 #include <QNetworkConfiguration>
 
diff -ruN tomahawk-0.8.4.orig/src/infoplugins/generic/echonest/EchonestPlugin.h tomahawk-0.8.4/src/infoplugins/generic/echonest/EchonestPlugin.h
--- tomahawk-0.8.4.orig/src/infoplugins/generic/echonest/EchonestPlugin.h	2015-08-16 22:42:45.763385657 +0300
+++ tomahawk-0.8.4/src/infoplugins/generic/echonest/EchonestPlugin.h	2015-08-16 23:17:47.547686503 +0300
@@ -25,7 +25,7 @@
 #include "infosystem/InfoSystem.h"
 #include "infosystem/InfoSystemWorker.h"
 
-#include <echonest/Artist.h>
+#include <echonest5/Artist.h>
 
 #include <QObject>
 
@@ -49,7 +49,7 @@
 
 protected slots:
     virtual void init();
-    
+
     virtual void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData );
 
     virtual void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData )
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/EchonestCatalogSynchronizer.cpp tomahawk-0.8.4/src/libtomahawk/EchonestCatalogSynchronizer.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/EchonestCatalogSynchronizer.cpp	2015-08-16 22:42:45.710054407 +0300
+++ tomahawk-0.8.4/src/libtomahawk/EchonestCatalogSynchronizer.cpp	2015-08-16 23:15:20.363463651 +0300
@@ -34,8 +34,8 @@
 #include "TomahawkSettings.h"
 #include "Track.h"
 
-#include <echonest/CatalogUpdateEntry.h>
-#include <echonest/Config.h>
+#include <echonest5/CatalogUpdateEntry.h>
+#include <echonest5/Config.h>
 
 using namespace Tomahawk;
 
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/EchonestCatalogSynchronizer.h tomahawk-0.8.4/src/libtomahawk/EchonestCatalogSynchronizer.h
--- tomahawk-0.8.4.orig/src/libtomahawk/EchonestCatalogSynchronizer.h	2015-08-16 22:42:45.713387610 +0300
+++ tomahawk-0.8.4/src/libtomahawk/EchonestCatalogSynchronizer.h	2015-08-16 23:15:55.898735270 +0300
@@ -22,7 +22,7 @@
 #include "DllMacro.h"
 #include "Query.h"
 
-#include <echonest/Catalog.h>
+#include <echonest5/Catalog.h>
 
 #include <QObject>
 #include <QQueue>
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/GlobalActionManager.cpp tomahawk-0.8.4/src/libtomahawk/GlobalActionManager.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/GlobalActionManager.cpp	2015-08-16 22:42:45.713387610 +0300
+++ tomahawk-0.8.4/src/libtomahawk/GlobalActionManager.cpp	2015-08-16 23:17:05.605999154 +0300
@@ -61,7 +61,7 @@
 #include <QClipboard>
 #include <QMessageBox>
 
-#include <echonest/Playlist.h>
+#include <echonest5/Playlist.h>
 
 
 GlobalActionManager* GlobalActionManager::s_instance = 0;
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp	2015-08-16 22:42:45.753386047 +0300
+++ tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp	2015-08-16 23:18:34.325850963 +0300
@@ -29,10 +29,10 @@
 #include "utils/Closure.h"
 #include "utils/NetworkAccessManager.h"
 
-#include <lastfm/ws.h>
-#include <lastfm/User.h>
-#include <lastfm/XmlQuery.h>
-#include <lastfm/Track.h>
+#include <lastfm5/ws.h>
+#include <lastfm5/User.h>
+#include <lastfm5/XmlQuery.h>
+#include <lastfm5/Track.h>
 
 #include <boost/bind.hpp>
 
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.cpp tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.cpp	2015-08-16 22:42:45.753386047 +0300
+++ tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.cpp	2015-08-16 23:19:00.628152330 +0300
@@ -34,8 +34,8 @@
 #include "TomahawkSettings.h"
 #include "utils/NetworkAccessManager.h"
 
-#include <lastfm/ws.h>
-#include <lastfm/XmlQuery.h>
+#include <lastfm5/ws.h>
+#include <lastfm5/XmlQuery.h>
 
 using namespace Tomahawk::Accounts;
 using namespace Tomahawk::InfoSystem;
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.h tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.h
--- tomahawk-0.8.4.orig/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.h	2015-08-16 22:42:45.753386047 +0300
+++ tomahawk-0.8.4/src/libtomahawk/accounts/lastfm/LastFmInfoPlugin.h	2015-08-16 23:18:47.831987709 +0300
@@ -24,9 +24,9 @@
 #include "infosystem/InfoSystemWorker.h"
 #include "DllMacro.h"
 
-#include <lastfm/Track.h>
-#include <lastfm/Audioscrobbler.h>
-#include <lastfm/ScrobblePoint.h>
+#include <lastfm5/Track.h>
+#include <lastfm5/Audioscrobbler.h>
+#include <lastfm5/ScrobblePoint.h>
 
 #include <QObject>
 
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/network/acl/AclRegistry.cpp tomahawk-0.8.4/src/libtomahawk/network/acl/AclRegistry.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/network/acl/AclRegistry.cpp	2015-08-16 22:42:45.756719250 +0300
+++ tomahawk-0.8.4/src/libtomahawk/network/acl/AclRegistry.cpp	2015-08-16 23:24:07.856104293 +0300
@@ -19,6 +19,7 @@
 
 #include "AclRegistry.h"
 
+#include <QDataStream>
 #include <QThread>
 #include <QVariant>
 
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.h tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.h
--- tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.h	2015-08-16 22:42:45.716720814 +0300
+++ tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestControl.h	2015-08-16 23:16:49.516630633 +0300
@@ -24,7 +24,7 @@
 #include <QTimer>
 #include <QPointer>
 
-#include <echonest/Playlist.h>
+#include <echonest5/Playlist.h>
 
 namespace Tomahawk
 {
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.h tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.h
--- tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.h	2015-08-16 22:42:45.716720814 +0300
+++ tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestGenerator.h	2015-08-16 23:16:32.817286086 +0300
@@ -28,7 +28,7 @@
 
 #include "DllMacro.h"
 
-#include <echonest/Playlist.h>
+#include <echonest5/Playlist.h>
 
 namespace Tomahawk
 {
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestSteerer.cpp tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestSteerer.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/playlist/dynamic/echonest/EchonestSteerer.cpp	2015-08-16 22:42:45.716720814 +0300
+++ tomahawk-0.8.4/src/libtomahawk/playlist/dynamic/echonest/EchonestSteerer.cpp	2015-08-16 23:18:03.627055530 +0300
@@ -24,7 +24,7 @@
 #include "utils/TomahawkUtils.h"
 #include "utils/Logger.h"
 
-#include <echonest/Playlist.h>
+#include <echonest5/Playlist.h>
 
 #include <QPaintEvent>
 #include <QHBoxLayout>
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkCache.h tomahawk-0.8.4/src/libtomahawk/utils/TomahawkCache.h
--- tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkCache.h	2015-08-16 22:42:45.740053235 +0300
+++ tomahawk-0.8.4/src/libtomahawk/utils/TomahawkCache.h	2015-08-16 23:25:34.106102925 +0300
@@ -22,6 +22,7 @@
 #include "DllMacro.h"
 #include "utils/TomahawkUtils.h"
 
+#include <QDataStream>
 #include <QMutex>
 #include <QSettings>
 #include <QObject>
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkUtils.cpp tomahawk-0.8.4/src/libtomahawk/utils/TomahawkUtils.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkUtils.cpp	2015-08-16 22:42:45.720054017 +0300
+++ tomahawk-0.8.4/src/libtomahawk/utils/TomahawkUtils.cpp	2015-08-16 23:19:25.497176675 +0300
@@ -32,7 +32,7 @@
 #include "Track.h"
 
 #ifdef LIBLASTFM_FOUND
-    #include <lastfm/ws.h>
+    #include <lastfm5/ws.h>
 #endif
 
 #include <quazip/quazip.h>
diff -ruN tomahawk-0.8.4.orig/src/tomahawk/Scrobbler.h tomahawk-0.8.4/src/tomahawk/Scrobbler.h
--- tomahawk-0.8.4.orig/src/tomahawk/Scrobbler.h	2015-08-16 22:42:45.706721204 +0300
+++ tomahawk-0.8.4/src/tomahawk/Scrobbler.h	2015-08-16 23:20:10.732068886 +0300
@@ -20,7 +20,7 @@
 #ifndef TOMAHAWK_SCROBBLER_H
 #define TOMAHAWK_SCROBBLER_H
 
-#include "lastfm/ScrobblePoint.h"
+#include "lastfm5/ScrobblePoint.h"
 #include "Result.h"
 #include "infosystem/InfoSystem.h"
 
diff -ruN tomahawk-0.8.4.orig/src/tomahawk/TomahawkApp.h tomahawk-0.8.4/src/tomahawk/TomahawkApp.h
--- tomahawk-0.8.4.orig/src/tomahawk/TomahawkApp.h	2015-08-16 22:42:45.706721204 +0300
+++ tomahawk-0.8.4/src/tomahawk/TomahawkApp.h	2015-08-16 23:19:59.602505450 +0300
@@ -64,7 +64,7 @@
 }
 
 #ifdef LIBLASTFM_FOUND
-    #include <lastfm/NetworkAccessManager.h>
+    #include <lastfm5/NetworkAccessManager.h>
     #include "Scrobbler.h"
 #endif
 
diff -ruN tomahawk-0.8.4.orig/src/tomahawk/sourcetree/items/CategoryItems.cpp tomahawk-0.8.4/src/tomahawk/sourcetree/items/CategoryItems.cpp
--- tomahawk-0.8.4.orig/src/tomahawk/sourcetree/items/CategoryItems.cpp	2015-08-16 22:42:45.706721204 +0300
+++ tomahawk-0.8.4/src/tomahawk/sourcetree/items/CategoryItems.cpp	2015-08-16 23:17:24.248600839 +0300
@@ -33,7 +33,7 @@
 #include "utils/ImageRegistry.h"
 #include "utils/Logger.h"
 
-#include <echonest/Playlist.h>
+#include <echonest5/Playlist.h>
 
 using namespace Tomahawk;
 
diff -ruN tomahawk-0.8.4.orig/CMakeModules/FindQCA2.cmake tomahawk-0.8.4/CMakeModules/FindQCA2.cmake
--- tomahawk-0.8.4.orig/CMakeModules/FindQCA2.cmake	2015-08-17 21:43:38.870990247 +0300
+++ tomahawk-0.8.4/CMakeModules/FindQCA2.cmake	2015-08-17 21:48:26.224024129 +0300
@@ -16,6 +16,10 @@
 
 include(FindLibraryWithDebug)
 
+if( TOMAHAWK_QT5 )
+  set(QCA_SUFFIX "-qt5")
+endif()
+
 if (QCA2_INCLUDE_DIR AND QCA2_LIBRARIES)
 
   # in cache already
@@ -26,13 +30,13 @@
 
   if (NOT WIN32)
     find_package(PkgConfig)
-    pkg_check_modules(PC_QCA2 qca2)
+    pkg_check_modules(PC_QCA2 qca2${QCA_SUFFIX})
     set(QCA2_DEFINITIONS ${PC_QCA2_CFLAGS_OTHER})
   endif (NOT WIN32)
 
   find_library_with_debug(QCA2_LIBRARIES
                   WIN32_DEBUG_POSTFIX d
-                  NAMES qca
+                  NAMES qca${QCA_SUFFIX}
                   HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS}
                   )
 
diff -ruN tomahawk-0.8.4.orig/CMakeModules/FindQuaZip.cmake tomahawk-0.8.4/CMakeModules/FindQuaZip.cmake
--- tomahawk-0.8.4.orig/CMakeModules/FindQuaZip.cmake	2015-08-17 21:43:38.870990247 +0300
+++ tomahawk-0.8.4/CMakeModules/FindQuaZip.cmake	2015-08-17 22:07:35.426244138 +0300
@@ -1,5 +1,8 @@
-find_path(QuaZip_INCLUDE_DIR quazip/quazip.h ${CMAKE_INSTALL_PREFIX}/include/quazip ${CMAKE_INSTALL_PREFIX}/include /usr/include/quazip /usr/local/include/quazip ${QT_INCLUDE_DIR}/quazip ${QT_INCLUDE_DIR} ${QUAZIP_DIR}/include/quazip ${QUAZIP_DIR}/quazip ${QUAZIP_DIR}/include)
-find_library(QuaZip_LIBRARY NAMES quazip PATHS ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/Library/Frameworks ${QUAZIP_DIR}/lib64 ${QUAZIP_DIR}/lib ${QUAZIP_DIR}/quazip ${QUAZIP_DIR})
+if( TOMAHAWK_QT5 )
+  set(QUAZIP_SUFFIX "5")
+endif()
+find_path(QuaZip_INCLUDE_DIR quazip${QUAZIP_SUFFIX}/quazip.h ${CMAKE_INSTALL_PREFIX}/include/quazip${QUAZIP_SUFFIX} ${CMAKE_INSTALL_PREFIX}/include /usr/include/quazip${QUAZIP_SUFFIX} /usr/local/include/quazip${QUAZIP_SUFFIX} ${QT_INCLUDE_DIR}/quazip${QUAZIP_SUFFIX} ${QT_INCLUDE_DIR} ${QUAZIP_DIR}/include/quazip${QUAZIP_SUFFIX} ${QUAZIP_DIR}/quazip${QUAZIP_SUFFIX} ${QUAZIP_DIR}/include)
+find_library(QuaZip_LIBRARY NAMES quazip${QUAZIP_SUFFIX} PATHS ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/Library/Frameworks ${QUAZIP_DIR}/lib64 ${QUAZIP_DIR}/lib ${QUAZIP_DIR}/quazip${QUAZIP_SUFFIX} ${QUAZIP_DIR})
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(quazip DEFAULT_MSG QuaZip_LIBRARY QuaZip_INCLUDE_DIR)
 set(QuaZip_LIBRARIES ${QuaZip_LIBRARY})
diff -ruN tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkUtils.cpp tomahawk-0.8.4/src/libtomahawk/utils/TomahawkUtils.cpp
--- tomahawk-0.8.4.orig/src/libtomahawk/utils/TomahawkUtils.cpp	2015-08-17 22:22:11.737968746 +0300
+++ tomahawk-0.8.4/src/libtomahawk/utils/TomahawkUtils.cpp	2015-08-17 22:22:39.493618770 +0300
@@ -35,8 +35,8 @@
     #include <lastfm5/ws.h>
 #endif
 
-#include <quazip/quazip.h>
-#include <quazip/quazipfile.h>
+#include <quazip5/quazip.h>
+#include <quazip5/quazipfile.h>
 
 // We need this for the version info (if available)
 #include <taglib/taglib.h>
diff -ruN tomahawk-0.8.4.orig/CMakeLists.txt tomahawk-0.8.4/CMakeLists.txt
--- tomahawk-0.8.4.orig/CMakeLists.txt	2017-05-10 13:41:09.541994743 +0300
+++ tomahawk-0.8.4/CMakeLists.txt	2017-05-10 13:41:41.130929717 +0300
@@ -321,6 +321,7 @@
 if( NOT APPLE )
 if( TOMAHAWK_QT5 )
     macro_optional_find_package(Qt5Keychain 0.1.0)
+    set(QTKEYCHAIN_FOUND ${Qt5Keychain_FOUND})
 else()
     macro_optional_find_package(QtKeychain 0.1.0)
 endif()
diff -ruN tomahawk-0.8.4.orig/CMakeModules/MacroLogFeature.cmake tomahawk-0.8.4/CMakeModules/MacroLogFeature.cmake
--- tomahawk-0.8.4.orig/CMakeModules/MacroLogFeature.cmake	2017-05-10 13:41:09.565327281 +0300
+++ tomahawk-0.8.4/CMakeModules/MacroLogFeature.cmake	2017-05-10 13:41:24.831476376 +0300
@@ -92,9 +92,10 @@
 
    FILE(APPEND "${_LOGFILENAME}" "${_logtext}\n")
 
-   IF(COMMAND SET_PACKAGE_INFO)  # in FeatureSummary.cmake since CMake 2.8.3
-     SET_PACKAGE_INFO("${_package}" "\"${_description}\"" "${_url}" "\"${_comments}\"")
-   ENDIF(COMMAND SET_PACKAGE_INFO)
+   set_package_properties("${_package}" PROPERTIES
+                               URL "${_url}"
+                               DESCRIPTION "\"${_description}\""
+                               PURPOSE "\"${_comments}\"")
 
 ENDMACRO(MACRO_LOG_FEATURE)