1 |
commit: 9003d67b4072e7879fedcf823a4e4855aa6b199c |
2 |
Author: Gerion Entrup <gerion.entrup <AT> flump <DOT> de> |
3 |
AuthorDate: Sat Nov 6 04:25:34 2021 +0000 |
4 |
Commit: gerion <gerion.entrup <AT> flump <DOT> de> |
5 |
CommitDate: Sat Nov 6 04:26:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/gerislay.git/commit/?id=9003d67b |
7 |
|
8 |
media-sound/mixxx: fix compilation |
9 |
|
10 |
Drop mixxx-test build. This disables the test but don't require |
11 |
google/benchmark anymore. |
12 |
|
13 |
Signed-off-by: Gerion Entrup <gerion.entrup <AT> flump.de> |
14 |
|
15 |
media-sound/mixxx/Manifest | 3 +- |
16 |
media-sound/mixxx/files/drop-mixxx-test.patch | 194 ++++++++++++++++++++++++++ |
17 |
media-sound/mixxx/mixxx-9999.ebuild | 1 + |
18 |
3 files changed, 197 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/media-sound/mixxx/Manifest b/media-sound/mixxx/Manifest |
21 |
index 6e2bac3..3940456 100644 |
22 |
--- a/media-sound/mixxx/Manifest |
23 |
+++ b/media-sound/mixxx/Manifest |
24 |
@@ -1,4 +1,5 @@ |
25 |
+AUX drop-mixxx-test.patch 6540 BLAKE2B 63de950b2555c58ed5c70c8cf6c0c50c97a98c3f7aac0873f9d12b131bef29836d70650c2cc5154b1d890e3c20d89d5d70d0dc7ddfc7977d084e24b3c5d163d9 SHA512 c5790b626c43573d23c524d9280031f157e0a0e3fa9ff6e4bd0c480a25c0a0b95e0598a4a137ee7361ca09df0144ae0d7c41b80aab8ccaaa1bd149e8d745e71f |
26 |
AUX mixxx-9999-docs.patch 1043 BLAKE2B bfdb51de701e279f841de83cce6bccd613feaaeb7ffe2e209f357837d52d6cbf2ab452916752f8e6f8cec635a39e0efa5d1f7a921d76d8d093876584151fc35b SHA512 8be44f7d286c5fe6cabbd64d9294f72aada7fb3bfdeb8d0787772e131e48642698bdf0fd1975f8a385a5e76508889464e4c4f0f377b0c60f61fc967ee647e661 |
27 |
AUX mixxx-9999-gentoo-build.patch 651 BLAKE2B 7f20c41fa4bf89be5e1e8dff28daf9d72e5ef20f2e71fcde97504cad4de50dd40af83fa5542bba6a1e156d9fe31e3c39486f9b2494c4855e890f3aa43d606768 SHA512 490309a7d49f385d75b54acbc155ec0e011e7f7753a7b876c123d521dc32659172c5e3354ceff47251746807b8182792ba3ee1e26bbe907dc7c99f7ab6d7c99f |
28 |
-EBUILD mixxx-9999.ebuild 2764 BLAKE2B 376e42b36aa436d8dbf54cf31894b69c23c0154c6608d080a088028dfe3adc8285d1723fc5d5707bfeee44238b4b84f6a39bcd229004e983e27a7e19911c569b SHA512 b51bbe7d43b2e44d83f10179995341cf41569f57157e085cf0c8baec999bd9998a8d359918e8ddee14cc96bf403e79bb04cda32dcd3c7710403157cf4fbf7c27 |
29 |
+EBUILD mixxx-9999.ebuild 2801 BLAKE2B 8e171b776bc7e9beae0fd3d817519c3a53c7c153d8156b3382aee5e5993b4319c8529aaf6718c28310c7c4dc6555cf3b0b610f958bbb2d6bc815130822529728 SHA512 6185bc920410d00f67e5eb0d6790209b482b8e0d46f27532d41a1341b0ee18ee4d3728e7320eb7f440ca2574f7bcfaf89ef51f98e319be16a6896b690626c1f4 |
30 |
MISC metadata.xml 849 BLAKE2B 68fcb8b3e3353ad0c99ff9532c5b098738addbe5f3965bc931d5555f0110ee3b4a39514ae471881d8a4b0270d4257e502bd82d9010b235394ae3d0daf2ba4089 SHA512 eb222405a3de8c013d44b2fb114d42f32d54651309ec66176433ad055937a45d4dc7cc2cf3075a413ba508348100f74bd4c06ac77fc7960fbcf915d86bb02336 |
31 |
|
32 |
diff --git a/media-sound/mixxx/files/drop-mixxx-test.patch b/media-sound/mixxx/files/drop-mixxx-test.patch |
33 |
new file mode 100644 |
34 |
index 0000000..4cce055 |
35 |
--- /dev/null |
36 |
+++ b/media-sound/mixxx/files/drop-mixxx-test.patch |
37 |
@@ -0,0 +1,194 @@ |
38 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
39 |
+index 278fca7b27..dbc451862c 100644 |
40 |
+--- a/CMakeLists.txt |
41 |
++++ b/CMakeLists.txt |
42 |
+@@ -1567,172 +1567,6 @@ add_subdirectory( |
43 |
+ "${CMAKE_CURRENT_BINARY_DIR}/lib/googletest" |
44 |
+ ) |
45 |
+ |
46 |
+-add_executable(mixxx-test |
47 |
+- src/test/analyserwaveformtest.cpp |
48 |
+- src/test/analyzersilence_test.cpp |
49 |
+- src/test/audiotaperpot_test.cpp |
50 |
+- src/test/autodjprocessor_test.cpp |
51 |
+- src/test/beatgridtest.cpp |
52 |
+- src/test/beatmaptest.cpp |
53 |
+- src/test/beatstest.cpp |
54 |
+- src/test/beatstranslatetest.cpp |
55 |
+- src/test/bpmtest.cpp |
56 |
+- src/test/bpmcontrol_test.cpp |
57 |
+- src/test/broadcastprofile_test.cpp |
58 |
+- src/test/broadcastsettings_test.cpp |
59 |
+- src/test/cache_test.cpp |
60 |
+- src/test/channelhandle_test.cpp |
61 |
+- src/test/colorconfig_test.cpp |
62 |
+- src/test/colormapperjsproxy_test.cpp |
63 |
+- src/test/colorpalette_test.cpp |
64 |
+- src/test/configobject_test.cpp |
65 |
+- src/test/controller_mapping_validation_test.cpp |
66 |
+- src/test/controllerscriptenginelegacy_test.cpp |
67 |
+- src/test/controlobjecttest.cpp |
68 |
+- src/test/coreservicestest.cpp |
69 |
+- src/test/coverartcache_test.cpp |
70 |
+- src/test/coverartutils_test.cpp |
71 |
+- src/test/cratestorage_test.cpp |
72 |
+- src/test/cue_test.cpp |
73 |
+- src/test/cuecontrol_test.cpp |
74 |
+- src/test/dbconnectionpool_test.cpp |
75 |
+- src/test/dbidtest.cpp |
76 |
+- src/test/directorydaotest.cpp |
77 |
+- src/test/duration_test.cpp |
78 |
+- src/test/durationutiltest.cpp |
79 |
+- #TODO: write useful tests for refactored effects system |
80 |
+- #src/test/effectchainslottest.cpp |
81 |
+- src/test/enginebufferscalelineartest.cpp |
82 |
+- src/test/enginebuffertest.cpp |
83 |
+- src/test/enginefilterbiquadtest.cpp |
84 |
+- src/test/enginemastertest.cpp |
85 |
+- src/test/enginemicrophonetest.cpp |
86 |
+- src/test/enginesynctest.cpp |
87 |
+- src/test/fileinfo_test.cpp |
88 |
+- src/test/frametest.cpp |
89 |
+- src/test/globaltrackcache_test.cpp |
90 |
+- src/test/hotcuecontrol_test.cpp |
91 |
+- src/test/imageutils_test.cpp |
92 |
+- src/test/indexrange_test.cpp |
93 |
+- src/test/keyutilstest.cpp |
94 |
+- src/test/lcstest.cpp |
95 |
+- src/test/learningutilstest.cpp |
96 |
+- src/test/libraryscannertest.cpp |
97 |
+- src/test/librarytest.cpp |
98 |
+- src/test/looping_control_test.cpp |
99 |
+- src/test/main.cpp |
100 |
+- src/test/mathutiltest.cpp |
101 |
+- src/test/metadatatest.cpp |
102 |
+- #TODO: make this build again |
103 |
+- #src/test/metaknob_link_test.cpp |
104 |
+- src/test/midicontrollertest.cpp |
105 |
+- src/test/mixxxtest.cpp |
106 |
+- src/test/movinginterquartilemean_test.cpp |
107 |
+- src/test/nativeeffects_test.cpp |
108 |
+- src/test/performancetimer_test.cpp |
109 |
+- src/test/playcountertest.cpp |
110 |
+- src/test/playlisttest.cpp |
111 |
+- src/test/portmidicontroller_test.cpp |
112 |
+- src/test/portmidienumeratortest.cpp |
113 |
+- src/test/queryutiltest.cpp |
114 |
+- src/test/rangelist_test.cpp |
115 |
+- src/test/readaheadmanager_test.cpp |
116 |
+- src/test/replaygaintest.cpp |
117 |
+- src/test/rescalertest.cpp |
118 |
+- src/test/rgbcolor_test.cpp |
119 |
+- src/test/samplebuffertest.cpp |
120 |
+- src/test/sampleutiltest.cpp |
121 |
+- src/test/schemamanager_test.cpp |
122 |
+- src/test/searchqueryparsertest.cpp |
123 |
+- src/test/seratobeatgridtest.cpp |
124 |
+- src/test/seratomarkerstest.cpp |
125 |
+- src/test/seratomarkers2test.cpp |
126 |
+- src/test/seratotagstest.cpp |
127 |
+- src/test/signalpathtest.cpp |
128 |
+- src/test/skincontext_test.cpp |
129 |
+- src/test/softtakeover_test.cpp |
130 |
+- src/test/soundproxy_test.cpp |
131 |
+- src/test/soundsourceproviderregistrytest.cpp |
132 |
+- src/test/sqliteliketest.cpp |
133 |
+- src/test/synccontroltest.cpp |
134 |
+- src/test/tableview_test.cpp |
135 |
+- src/test/taglibtest.cpp |
136 |
+- src/test/trackdao_test.cpp |
137 |
+- src/test/trackexport_test.cpp |
138 |
+- src/test/trackmetadata_test.cpp |
139 |
+- src/test/tracknumberstest.cpp |
140 |
+- src/test/trackreftest.cpp |
141 |
+- src/test/trackupdate_test.cpp |
142 |
+- src/test/uuid_test.cpp |
143 |
+- src/test/wbatterytest.cpp |
144 |
+- src/test/wpushbutton_test.cpp |
145 |
+- src/test/wwidgetstack_test.cpp |
146 |
+-) |
147 |
+-set_target_properties(mixxx-test PROPERTIES AUTOMOC ON) |
148 |
+-target_link_libraries(mixxx-test PRIVATE mixxx-lib mixxx-gitinfostore gtest gmock) |
149 |
+- |
150 |
+-# |
151 |
+-# Benchmark tests |
152 |
+-# |
153 |
+- |
154 |
+-# Disable testing of google/benchmark |
155 |
+-set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE) |
156 |
+- |
157 |
+-# Prevent installation of google/benchmark artifacts |
158 |
+-set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "Disable installation of google/benchmark" FORCE) |
159 |
+- |
160 |
+-add_subdirectory( |
161 |
+- "${CMAKE_CURRENT_SOURCE_DIR}/lib/benchmark" |
162 |
+- "${CMAKE_CURRENT_BINARY_DIR}/lib/benchmark" |
163 |
+-) |
164 |
+-target_link_libraries(mixxx-test PRIVATE benchmark) |
165 |
+- |
166 |
+-# Test Suite |
167 |
+-include(CTest) |
168 |
+-include(GoogleTest) |
169 |
+-enable_testing() |
170 |
+-gtest_add_tests( |
171 |
+- TARGET mixxx-test |
172 |
+- EXTRA_ARGS --logLevel info |
173 |
+- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" |
174 |
+- TEST_LIST testsuite |
175 |
+-) |
176 |
+-if (NOT WIN32) |
177 |
+- # Default to offscreen rendering during tests. |
178 |
+- # This is required if the build system like Fedora koji/mock does not |
179 |
+- # allow to pass environment variables into the ctest macro expansion. |
180 |
+- set_tests_properties(${testsuite} PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen") |
181 |
+-endif() |
182 |
+- |
183 |
+-# Benchmarking |
184 |
+-add_custom_target(mixxx-benchmark |
185 |
+- COMMAND $<TARGET_FILE:mixxx-test> --benchmark |
186 |
+- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" |
187 |
+- COMMENT "Mixxx Benchmarks" |
188 |
+- VERBATIM |
189 |
+-) |
190 |
+-add_dependencies(mixxx-benchmark mixxx-test) |
191 |
+- |
192 |
+-if(UNIX AND USE_SYMLINKS) |
193 |
+- add_custom_target(mixxx-testdata |
194 |
+- COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_SOURCE_DIR}/src/test" "${CMAKE_CURRENT_BINARY_DIR}/src/test" |
195 |
+- COMMENT "Symlinking test data to build directory..." |
196 |
+- ) |
197 |
+-elseif(WIN32) |
198 |
+- file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/test" CMAKE_CURRENT_SOURCE_TESTDATA_DIR_NATIVE) |
199 |
+- file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/src/test/" CMAKE_CURRENT_BINARY_TESTDATA_DIR_NATIVE) |
200 |
+- add_custom_target(mixxx-testdata |
201 |
+- COMMAND xcopy ${CMAKE_CURRENT_SOURCE_TESTDATA_DIR_NATIVE} ${CMAKE_CURRENT_BINARY_TESTDATA_DIR_NATIVE} /s /d /q /y |
202 |
+- COMMENT "Copying missing or modified test data files to build directory..." |
203 |
+- ) |
204 |
+-else() |
205 |
+- add_custom_target(mixxx-testdata |
206 |
+- COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/src/test" "${CMAKE_CURRENT_BINARY_DIR}/src/test" |
207 |
+- COMMENT "Copying all test data files to build directory..." |
208 |
+- ) |
209 |
+-endif() |
210 |
+-add_dependencies(mixxx-test mixxx-testdata) |
211 |
+- |
212 |
+ # |
213 |
+ # Resources |
214 |
+ # |
215 |
+@@ -1762,8 +1596,6 @@ endif() |
216 |
+ |
217 |
+ target_sources(mixxx PRIVATE res/mixxx.qrc) |
218 |
+ set_target_properties(mixxx PROPERTIES AUTORCC ON) |
219 |
+-target_sources(mixxx-test PRIVATE res/mixxx.qrc) |
220 |
+-set_target_properties(mixxx-test PROPERTIES AUTORCC ON) |
221 |
+ |
222 |
+ if (MIXXX_VERSION_PRERELEASE STREQUAL "") |
223 |
+ set(MIXXX_VERSION "${CMAKE_PROJECT_VERSION}") |
224 |
+@@ -2604,7 +2436,6 @@ if(LILV) |
225 |
+ ) |
226 |
+ target_compile_definitions(mixxx-lib PUBLIC __LILV__) |
227 |
+ target_link_libraries(mixxx-lib PRIVATE lilv::lilv) |
228 |
+- target_link_libraries(mixxx-test PRIVATE lilv::lilv) |
229 |
+ endif() |
230 |
+ |
231 |
+ # Live Broadcasting (Shoutcast) |
232 |
|
233 |
diff --git a/media-sound/mixxx/mixxx-9999.ebuild b/media-sound/mixxx/mixxx-9999.ebuild |
234 |
index 322c7b6..5ae2f1d 100644 |
235 |
--- a/media-sound/mixxx/mixxx-9999.ebuild |
236 |
+++ b/media-sound/mixxx/mixxx-9999.ebuild |
237 |
@@ -84,6 +84,7 @@ BDEPEND="virtual/pkgconfig |
238 |
PATCHES=( |
239 |
"${FILESDIR}"/mixxx-9999-docs.patch |
240 |
"${FILESDIR}"/mixxx-9999-gentoo-build.patch |
241 |
+ "${FILESDIR}"/drop-mixxx-test.patch |
242 |
) |
243 |
|
244 |
src_prepare() { |