Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/ardour/, media-sound/ardour/files/
Date: Fri, 04 Sep 2020 11:36:47
Message-Id: 1599219397.40133476b7cb91fc70935f3ba50e99ba544926a1.fordfrog@gentoo
1 commit: 40133476b7cb91fc70935f3ba50e99ba544926a1
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 11:36:24 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 11:36:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40133476
7
8 media-sound/ardour: fix compilation in 6.2-r1
9
10 Closes: https://bugs.gentoo.org/740312
11 Package-Manager: Portage-3.0.5, Repoman-3.0.1
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 media-sound/ardour/ardour-6.2-r1.ebuild | 1 +
15 ...-6.2-use-signed-int-for-atomic-operations.patch | 69 ++++++++++++++++++++++
16 2 files changed, 70 insertions(+)
17
18 diff --git a/media-sound/ardour/ardour-6.2-r1.ebuild b/media-sound/ardour/ardour-6.2-r1.ebuild
19 index 9935afaf3d5..97893a719d6 100644
20 --- a/media-sound/ardour/ardour-6.2-r1.ebuild
21 +++ b/media-sound/ardour/ardour-6.2-r1.ebuild
22 @@ -71,6 +71,7 @@ DEPEND="${RDEPEND}
23
24 PATCHES=(
25 "${FILESDIR}/${P}-fix-no-nls.patch"
26 + "${FILESDIR}/${P}-use-signed-int-for-atomic-operations.patch"
27 )
28
29 pkg_setup() {
30
31 diff --git a/media-sound/ardour/files/ardour-6.2-use-signed-int-for-atomic-operations.patch b/media-sound/ardour/files/ardour-6.2-use-signed-int-for-atomic-operations.patch
32 new file mode 100644
33 index 00000000000..90454593b68
34 --- /dev/null
35 +++ b/media-sound/ardour/files/ardour-6.2-use-signed-int-for-atomic-operations.patch
36 @@ -0,0 +1,69 @@
37 +From 6d950d15ba5192a86c57d8045d1d26f9ad4be0db Mon Sep 17 00:00:00 2001
38 +From: Robin Gareus <robin@××××××.org>
39 +Date: Thu, 16 Jul 2020 16:13:21 +0200
40 +Subject: [PATCH] Use signed int for atomic operations -- #8314
41 +
42 +---
43 + libs/pbd/pbd/mpmc_queue.h | 8 ++++----
44 + 1 file changed, 4 insertions(+), 4 deletions(-)
45 +
46 +diff --git a/libs/pbd/pbd/mpmc_queue.h b/libs/pbd/pbd/mpmc_queue.h
47 +index a7909a901..2c08068e1 100644
48 +--- a/libs/pbd/pbd/mpmc_queue.h
49 ++++ b/libs/pbd/pbd/mpmc_queue.h
50 +@@ -82,7 +82,7 @@ public:
51 + push_back (T const& data)
52 + {
53 + cell_t* cell;
54 +- guint pos = g_atomic_int_get (&_enqueue_pos);
55 ++ gint pos = g_atomic_int_get (&_enqueue_pos);
56 + for (;;) {
57 + cell = &_buffer[pos & _buffer_mask];
58 + guint seq = g_atomic_int_get (&cell->_sequence);
59 +@@ -108,7 +108,7 @@ public:
60 + pop_front (T& data)
61 + {
62 + cell_t* cell;
63 +- guint pos = g_atomic_int_get (&_dequeue_pos);
64 ++ gint pos = g_atomic_int_get (&_dequeue_pos);
65 + for (;;) {
66 + cell = &_buffer[pos & _buffer_mask];
67 + guint seq = g_atomic_int_get (&cell->_sequence);
68 +@@ -138,8 +138,8 @@ private:
69 + cell_t* _buffer;
70 + size_t _buffer_mask;
71 +
72 +- volatile guint _enqueue_pos;
73 +- volatile guint _dequeue_pos;
74 ++ volatile gint _enqueue_pos;
75 ++ volatile gint _dequeue_pos;
76 + };
77 +
78 + } /* end namespace */
79 +--
80 +2.28.0
81 +
82 +From 9fcb51de2e34f9fee74838e57317ad44d21c40d0 Mon Sep 17 00:00:00 2001
83 +From: Robin Gareus <robin@××××××.org>
84 +Date: Thu, 16 Jul 2020 18:07:14 +0200
85 +Subject: [PATCH] Use signed int for atomic operations part II -- #8314
86 +
87 +---
88 + libs/ardour/ardour/session.h | 2 +-
89 + 1 file changed, 1 insertion(+), 1 deletion(-)
90 +
91 +diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
92 +index dcc8c88ed..f491f7f17 100644
93 +--- a/libs/ardour/ardour/session.h
94 ++++ b/libs/ardour/ardour/session.h
95 +@@ -1762,7 +1762,7 @@ private:
96 + OnlyLoop,
97 + };
98 +
99 +- volatile guint _punch_or_loop; // enum PunchLoopLock
100 ++ volatile gint _punch_or_loop; // enum PunchLoopLock
101 + gint current_usecs_per_track;
102 +
103 + bool punch_active () const;
104 +--
105 +2.28.0