Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/libkcompactdisc/files/
Date: Mon, 17 Apr 2017 10:43:31
Message-Id: 1492420259.33bbb5492895df1876e542e7c2695b6654f28951.asturm@gentoo
1 commit: 33bbb5492895df1876e542e7c2695b6654f28951
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 17 08:52:14 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 17 09:10:59 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=33bbb549
7
8 kde-apps/libkcompactdisc: Proper patch after upstream input
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../files/libkcompactdisc-17.04.0-no-alsa.patch | 72 +++++++++++++---------
13 1 file changed, 44 insertions(+), 28 deletions(-)
14
15 diff --git a/kde-apps/libkcompactdisc/files/libkcompactdisc-17.04.0-no-alsa.patch b/kde-apps/libkcompactdisc/files/libkcompactdisc-17.04.0-no-alsa.patch
16 index 6bebf88e7c..1346f74044 100644
17 --- a/kde-apps/libkcompactdisc/files/libkcompactdisc-17.04.0-no-alsa.patch
18 +++ b/kde-apps/libkcompactdisc/files/libkcompactdisc-17.04.0-no-alsa.patch
19 @@ -1,36 +1,52 @@
20 -commit bb427b44150e23e618209334d826d389b903ac8a
21 +commit 006fda07f559206f9f9f1ccc29080ce71a367b09
22 Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
23 Date: Sun Apr 16 21:23:58 2017 +0200
24
25 - Fix build without ALSA again
26 + Fix linking with ALSA
27
28 - Signed-off-by: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
29 + REVIEW: 130089
30
31 -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
32 -index b25c7d7..c89e9dd 100644
33 ---- a/src/CMakeLists.txt
34 -+++ b/src/CMakeLists.txt
35 -@@ -12,8 +12,10 @@ set_package_properties(ALSA PROPERTIES
36 - DESCRIPTION "ALSA provides audio and MIDI functionality"
37 - TYPE OPTIONAL
38 - PURPOSE "Play back audo CDs via ALSA")
39 --set(HAVE_ALSA ${ALSA_FOUND})
40 --configure_file(config-alsa.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
41 -+if(ALSA_FOUND)
42 -+ add_definitions(-DHAVE_ALSA)
43 -+ configure_file(config-alsa.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
44 -+endif(ALSA_FOUND)
45 +diff --git a/src/kcompactdisc.cpp b/src/kcompactdisc.cpp
46 +index 437648f..2e297d1 100644
47 +--- a/src/kcompactdisc.cpp
48 ++++ b/src/kcompactdisc.cpp
49 +@@ -22,6 +22,8 @@
50 + #include "kcompactdisc.h"
51 + #include "kcompactdisc_p.h"
52
53 - set(wmlib_audio_SRCS
54 - wmlib/audio/audio.c
55 -@@ -79,8 +81,8 @@ target_link_libraries(KF5CompactDisc
56 - Phonon::phonon4qt5
57 - )
58 ++#include <config-alsa.h>
59 ++
60 + #include <QtDBus>
61 + #include <QUrl>
62 + #include <QtGlobal>
63 +diff --git a/src/wmlib/audio/audio.c b/src/wmlib/audio/audio.c
64 +index 9ed7a82..729ada5 100644
65 +--- a/src/wmlib/audio/audio.c
66 ++++ b/src/wmlib/audio/audio.c
67 +@@ -19,9 +19,8 @@
68 + #include "audio.h"
69 + #include "../include/wm_config.h"
70
71 --if (HAVE_ALSA)
72 -- target_link_libraries(KF5CompactDisc ${ALSA_LIBRARY})
73 -+if (ALSA_FOUND)
74 -+ target_link_libraries(KF5CompactDisc ${ALSA_LIBRARIES})
75 - endif ()
76 +-#ifdef HAVE_ALSA
77 + #include <config-alsa.h>
78 +-#endif
79 ++
80 + #include <string.h>
81
82 - if (USE_WMLIB)
83 + struct audio_oops *setup_phonon(const char *dev, const char *ctl);
84 +diff --git a/src/wmlib/audio/audio_alsa.c b/src/wmlib/audio/audio_alsa.c
85 +index 87bbca5..af1a1cb 100644
86 +--- a/src/wmlib/audio/audio_alsa.c
87 ++++ b/src/wmlib/audio/audio_alsa.c
88 +@@ -26,9 +26,10 @@
89 + #include "../include/wm_struct.h"
90 + #include "../include/wm_config.h"
91 +
92 ++#include <config-alsa.h>
93 ++
94 + #ifdef HAVE_ALSA
95 +
96 +-#include <config-alsa.h>
97 + #include <alsa/asoundlib.h>
98 +
99 + static char *device = NULL;