1 |
commit: cfd4eadc7122b15631d700c28a522432098c8959 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 4 11:42:15 2015 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 4 11:42:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfd4eadc |
7 |
|
8 |
dev-ros/sound_play: fix build without FEATURES=test, bug #567466 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
dev-ros/sound_play/files/test.patch | 26 ++++++++++++++++++++++++++ |
14 |
dev-ros/sound_play/sound_play-0.2.9.ebuild | 1 + |
15 |
2 files changed, 27 insertions(+) |
16 |
|
17 |
diff --git a/dev-ros/sound_play/files/test.patch b/dev-ros/sound_play/files/test.patch |
18 |
new file mode 100644 |
19 |
index 0000000..e23490a |
20 |
--- /dev/null |
21 |
+++ b/dev-ros/sound_play/files/test.patch |
22 |
@@ -0,0 +1,26 @@ |
23 |
+commit ecdde483c81fb89e35f025ee3aacba7cd45528ab |
24 |
+Author: Alexis Ballier <aballier@g.o> |
25 |
+Date: Fri Dec 4 12:38:42 2015 +0100 |
26 |
+ |
27 |
+ sound_play: Fix build with -DCATKIN_ENABLE_TESTING=OFF. |
28 |
+ |
29 |
+ https://bugs.gentoo.org/show_bug.cgi?id=567466 |
30 |
+ |
31 |
+diff --git a/sound_play/CMakeLists.txt b/sound_play/CMakeLists.txt |
32 |
+index ada0b07..3f9604c 100644 |
33 |
+--- a/sound_play/CMakeLists.txt |
34 |
++++ b/sound_play/CMakeLists.txt |
35 |
+@@ -16,9 +16,11 @@ generate_messages(DEPENDENCIES actionlib_msgs) |
36 |
+ catkin_package(CATKIN_DEPENDS message_runtime actionlib_msgs |
37 |
+ INCLUDE_DIRS include) |
38 |
+ |
39 |
+-catkin_add_nosetests(scripts/test) |
40 |
++if(CATKIN_ENABLE_TESTING) |
41 |
++ catkin_add_nosetests(scripts/test) |
42 |
+ |
43 |
+-add_subdirectory(test) |
44 |
++ add_subdirectory(test) |
45 |
++endif() |
46 |
+ |
47 |
+ install(PROGRAMS |
48 |
+ scripts/playbuiltin.py |
49 |
|
50 |
diff --git a/dev-ros/sound_play/sound_play-0.2.9.ebuild b/dev-ros/sound_play/sound_play-0.2.9.ebuild |
51 |
index c4b4cb1..be4ac3e 100644 |
52 |
--- a/dev-ros/sound_play/sound_play-0.2.9.ebuild |
53 |
+++ b/dev-ros/sound_play/sound_play-0.2.9.ebuild |
54 |
@@ -33,3 +33,4 @@ RDEPEND="${RDEPEND} |
55 |
media-libs/gst-plugins-good:0.10 |
56 |
media-libs/gst-plugins-base:0.10 |
57 |
" |
58 |
+PATCHES=( "${FILESDIR}/test.patch" ) |