Merge lp:~zequence/ubuntu/quantal/jackd2/fix-for-956438 into lp:ubuntu/quantal/jackd2

Proposed by Kaj Ailomaa
Status: Merged
Approved by: Martin Pitt
Approved revision: 19
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~zequence/ubuntu/quantal/jackd2/fix-for-956438
Merge into: lp:ubuntu/quantal/jackd2
Diff against target: 136 lines (+116/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/jackdbus-stop-fix.patch (+109/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~zequence/ubuntu/quantal/jackd2/fix-for-956438
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+153871@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

I uploaded this to quantal-proposed review queue, with a proper changelog entry. Thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-08-03 00:16:40 +0000
+++ debian/changelog 2013-03-18 17:02:26 +0000
@@ -1,3 +1,9 @@
1jackd2 (1.9.8~dfsg.4+20120529git007cdc37-2ubuntu2) quantal; urgency=low
2
3 * debian/patches/jackdbus-stop-fix.patch: [fixes LP: #956438]
4
5 -- Kaj Ailomaa <zequence@mousike.me> Mon, 18 Mar 2013 17:05:45 +0100
6
1jackd2 (1.9.8~dfsg.4+20120529git007cdc37-2ubuntu1) quantal; urgency=low7jackd2 (1.9.8~dfsg.4+20120529git007cdc37-2ubuntu1) quantal; urgency=low
28
3 * Merge from Debian, remaining changes:9 * Merge from Debian, remaining changes:
410
=== added file 'debian/patches/jackdbus-stop-fix.patch'
--- debian/patches/jackdbus-stop-fix.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/jackdbus-stop-fix.patch 2013-03-18 17:02:26 +0000
@@ -0,0 +1,109 @@
1## Description: This patch, consisting of two upstream git commits, fixes an issue where jackdbus is left unresponsively, running in the background, when attempting to stop it.
2## Origin/Author: upstream https://github.com/jackaudio/jack2/commit/aa02feeacfa533a07f04e916334637b57eaac5a2, https://github.com/jackaudio/jack2/commit/700489b429b0edb7046b169278e3e6751e3$
3## Bug: https://bugs.launchpad.net/ubuntu/+source/jackd2/+bug/956438
4## Applied-Upstream: 1.9.9
5
6Index: jackd2-quantal/common/JackLibAPI.cpp
7===================================================================
8--- jackd2-quantal.orig/common/JackLibAPI.cpp 2013-03-18 15:59:19.310280000 +0100
9+++ jackd2-quantal/common/JackLibAPI.cpp 2013-03-18 17:05:39.902013471 +0100
10@@ -177,7 +177,7 @@
11 va_end(ap);
12 JackGlobals::fOpenMutex->Unlock();
13 return res;
14- } catch(std::bad_alloc& e) {
15+ } catch (std::bad_alloc& e) {
16 jack_error("Memory allocation error...");
17 return NULL;
18 } catch (...) {
19Index: jackd2-quantal/common/JackLockedEngine.h
20===================================================================
21--- jackd2-quantal.orig/common/JackLockedEngine.h 2013-03-18 15:59:19.310280000 +0100
22+++ jackd2-quantal/common/JackLockedEngine.h 2013-03-18 17:05:39.903013471 +0100
23@@ -41,7 +41,7 @@
24 */
25
26 #define CATCH_EXCEPTION_RETURN \
27- } catch(std::bad_alloc& e) { \
28+ } catch (std::bad_alloc& e) { \
29 jack_error("Memory allocation error..."); \
30 return -1; \
31 } catch (...) { \
32@@ -50,10 +50,10 @@
33 } \
34
35 #define CATCH_CLOSE_EXCEPTION_RETURN \
36- } catch(std::bad_alloc& e) { \
37+ } catch (std::bad_alloc& e) { \
38 jack_error("Memory allocation error..."); \
39 return -1; \
40- } catch(JackTemporaryException& e) { \
41+ } catch (JackTemporaryException& e) { \
42 jack_error("JackTemporaryException : now quits..."); \
43 JackTools::KillServer(); \
44 return 0; \
45@@ -63,7 +63,7 @@
46 }
47
48 #define CATCH_EXCEPTION \
49- } catch(std::bad_alloc& e) { \
50+ } catch (std::bad_alloc& e) { \
51 jack_error("Memory allocation error..."); \
52 } catch (...) { \
53 jack_error("Unknown error..."); \
54@@ -327,8 +327,8 @@
55
56 void NotifyQuit()
57 {
58+ // No lock needed
59 TRY_CALL
60- JackLock lock(&fEngine);
61 return fEngine.NotifyQuit();
62 CATCH_EXCEPTION
63 }
64Index: jackd2-quantal/common/JackServer.cpp
65===================================================================
66--- jackd2-quantal.orig/common/JackServer.cpp 2013-03-18 15:59:19.310280000 +0100
67+++ jackd2-quantal/common/JackServer.cpp 2013-03-18 17:05:39.904013471 +0100
68@@ -134,7 +134,6 @@
69 int JackServer::Close()
70 {
71 jack_log("JackServer::Close");
72- fEngine->NotifyQuit();
73 fChannel.Close();
74 fAudioDriver->Detach();
75 fAudioDriver->Close();
76@@ -190,6 +189,7 @@
77 int JackServer::Stop()
78 {
79 jack_log("JackServer::Stop");
80+ fEngine->NotifyQuit();
81 fChannel.Stop();
82
83 fEngine->ShutDown();
84Index: jackd2-quantal/common/JackServerAPI.cpp
85===================================================================
86--- jackd2-quantal.orig/common/JackServerAPI.cpp 2013-03-18 15:59:19.310280000 +0100
87+++ jackd2-quantal/common/JackServerAPI.cpp 2013-03-18 17:05:39.904013471 +0100
88@@ -162,7 +162,7 @@
89 va_end(ap);
90 JackGlobals::fOpenMutex->Unlock();
91 return res;
92- } catch(std::bad_alloc& e) {
93+ } catch (std::bad_alloc& e) {
94 jack_error("Memory allocation error...");
95 return NULL;
96 } catch (...) {
97Index: jackd2-quantal/posix/JackSocketServerChannel.cpp
98===================================================================
99--- jackd2-quantal.orig/posix/JackSocketServerChannel.cpp 2013-03-18 15:59:19.310280000 +0100
100+++ jackd2-quantal/posix/JackSocketServerChannel.cpp 2013-03-18 17:05:39.905013471 +0100
101@@ -97,7 +97,7 @@
102
103 void JackSocketServerChannel::Stop()
104 {
105- fThread.Kill();
106+ fThread.Stop();
107 }
108
109 void JackSocketServerChannel::ClientCreate()
0110
=== modified file 'debian/patches/series'
--- debian/patches/series 2012-08-03 00:16:40 +0000
+++ debian/patches/series 2013-03-18 17:02:26 +0000
@@ -1,3 +1,4 @@
1no-selfconnect.patch1no-selfconnect.patch
2jack_control.patch2jack_control.patch
3fix-as-needed-linking.patch3fix-as-needed-linking.patch
4jackdbus-stop-fix.patch

Subscribers

People subscribed via source and target branches

to all changes: