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

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

Description of the change

To post a comment you must log in.
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

NACK on the merge request. Your patch included a bunch of unwanted changes, such as adding "JackLibAPI.cpp.orig", "JackLockedEngine.h.orig", etc.

Please correct the patch, and submit again. Thanks!

review: Needs Fixing
17. By Kaj Ailomaa

cleaned, by removing .orig files from the jackdbus-stop-fix.patch

Revision history for this message
Martin Pitt (pitti) wrote :

I uploaded this to precise-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-02-10 18:50:04 +0000
+++ debian/changelog 2013-03-19 13:31:27 +0000
@@ -1,3 +1,10 @@
1jackd2 (1.9.8~dfsg.1-1ubuntu2) precise; urgency=low
2
3 * debian/patches/jackdbus-stop-fix.patch: [fixes LP: #956438]
4 * cleaned, by removing .orig files from the jackdbus-stop-fix.patch
5
6 -- Kaj Ailomaa <zequence@mousike.me> Mon, 18 Mar 2013 16:25:32 +0100
7
1jackd2 (1.9.8~dfsg.1-1ubuntu1) precise; urgency=low8jackd2 (1.9.8~dfsg.1-1ubuntu1) precise; urgency=low
29
3 * Merge from debian unstable (LP: #911342), remaining changes:10 * Merge from debian unstable (LP: #911342), remaining changes:
411
=== 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-19 13:31:27 +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-precise/common/JackLibAPI.cpp
7===================================================================
8--- jackd2-precise.orig/common/JackLibAPI.cpp 2013-03-19 13:42:35.260148000 +0100
9+++ jackd2-precise/common/JackLibAPI.cpp 2013-03-19 13:45:41.940247408 +0100
10@@ -178,7 +178,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-precise/common/JackLockedEngine.h
20===================================================================
21--- jackd2-precise.orig/common/JackLockedEngine.h 2013-03-19 13:42:35.260148000 +0100
22+++ jackd2-precise/common/JackLockedEngine.h 2013-03-19 13:45:41.941247408 +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@@ -319,8 +319,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-precise/common/JackServer.cpp
65===================================================================
66--- jackd2-precise.orig/common/JackServer.cpp 2013-03-19 13:42:35.260148000 +0100
67+++ jackd2-precise/common/JackServer.cpp 2013-03-19 13:45:41.942247408 +0100
68@@ -132,7 +132,6 @@
69 int JackServer::Close()
70 {
71 jack_log("JackServer::Close");
72- fEngine->NotifyQuit();
73 fChannel.Close();
74 fAudioDriver->Detach();
75 fAudioDriver->Close();
76@@ -187,6 +186,7 @@
77 int JackServer::Stop()
78 {
79 jack_log("JackServer::Stop");
80+ fEngine->NotifyQuit();
81 fChannel.Stop();
82
83 if (fFreewheel) {
84Index: jackd2-precise/common/JackServerAPI.cpp
85===================================================================
86--- jackd2-precise.orig/common/JackServerAPI.cpp 2013-03-19 13:42:35.260148000 +0100
87+++ jackd2-precise/common/JackServerAPI.cpp 2013-03-19 13:45:41.943247408 +0100
88@@ -167,7 +167,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-precise/posix/JackSocketServerChannel.cpp
98===================================================================
99--- jackd2-precise.orig/posix/JackSocketServerChannel.cpp 2013-03-19 13:42:35.260148000 +0100
100+++ jackd2-precise/posix/JackSocketServerChannel.cpp 2013-03-19 13:45:41.944247408 +0100
101@@ -91,7 +91,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-02-10 18:50:04 +0000
+++ debian/patches/series 2013-03-19 13:31:27 +0000
@@ -2,3 +2,4 @@
2hurd.patch2hurd.patch
3no-selfconnect.patch3no-selfconnect.patch
4netjack-kfreebsd.patch4netjack-kfreebsd.patch
5jackdbus-stop-fix.patch

Subscribers

People subscribed via source and target branches

to all changes: