1 |
commit: 5b0a7da41f1215f191edc2e2519941e43f03e89f |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 10:20:40 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 10:20:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0a7da4 |
7 |
|
8 |
media-sound/cmus: fixed building of 2.9.1 on ppc |
9 |
|
10 |
thanks to James Madgwick <james <AT> madgwick.xyz> for the patch |
11 |
|
12 |
Closes: https://bugs.gentoo.org/639678 |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
14 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
15 |
|
16 |
media-sound/cmus/cmus-2.9.1.ebuild | 4 ++++ |
17 |
media-sound/cmus/files/cmus-2.9.1-atomic.patch | 11 +++++++++++ |
18 |
2 files changed, 15 insertions(+) |
19 |
|
20 |
diff --git a/media-sound/cmus/cmus-2.9.1.ebuild b/media-sound/cmus/cmus-2.9.1.ebuild |
21 |
index f1d55a50f34..92687b13780 100644 |
22 |
--- a/media-sound/cmus/cmus-2.9.1.ebuild |
23 |
+++ b/media-sound/cmus/cmus-2.9.1.ebuild |
24 |
@@ -67,6 +67,10 @@ DOCS=( AUTHORS README.md ) |
25 |
|
26 |
S="${WORKDIR}/${P/_/-}" |
27 |
|
28 |
+PATCHES=( |
29 |
+ "${FILESDIR}/${P}-atomic.patch" |
30 |
+) |
31 |
+ |
32 |
src_configure() { |
33 |
my_config() { |
34 |
local value |
35 |
|
36 |
diff --git a/media-sound/cmus/files/cmus-2.9.1-atomic.patch b/media-sound/cmus/files/cmus-2.9.1-atomic.patch |
37 |
new file mode 100644 |
38 |
index 00000000000..41941a31b78 |
39 |
--- /dev/null |
40 |
+++ b/media-sound/cmus/files/cmus-2.9.1-atomic.patch |
41 |
@@ -0,0 +1,11 @@ |
42 |
+--- cmus-2.8.0/Makefile 2019-01-29 09:09:08.000000000 +0000 |
43 |
++++ cmus-2.8.0.new/Makefile 2019-06-12 14:34:13.000000000 +0000 |
44 |
+@@ -21,7 +21,7 @@ |
45 |
+ FFMPEG_CFLAGS += $(shell pkg-config --cflags libswresample) |
46 |
+ FFMPEG_LIBS += $(shell pkg-config --libs libswresample) |
47 |
+ |
48 |
+-CMUS_LIBS = $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) \ |
49 |
++CMUS_LIBS = -latomic $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) \ |
50 |
+ -lm $(COMPAT_LIBS) $(LIBSYSTEMD_LIBS) |
51 |
+ |
52 |
+ command_mode.o input.o main.o ui_curses.o op/pulse.lo: .version |