1 |
commit: b2be39932660fa5ae0df51ee4cbc5a514fe941f7 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 20 15:09:15 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 20 15:09:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2be3993 |
7 |
|
8 |
sys-block/thin-provisioning-tools: Fixed build without tests. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/634868 |
11 |
Package-Manager: Portage-2.3.12, Repoman-2.3.3 |
12 |
|
13 |
...ning-tools-0.7.4-disabled-tests_build_fix.patch | 32 ++++++++++++++++++++++ |
14 |
.../thin-provisioning-tools-0.7.4.ebuild | 5 +++- |
15 |
2 files changed, 36 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.4-disabled-tests_build_fix.patch b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.4-disabled-tests_build_fix.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..f9a64b2188d |
20 |
--- /dev/null |
21 |
+++ b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.4-disabled-tests_build_fix.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+From 8d75be81120b9cf172c95d0153c5f845ed804234 Mon Sep 17 00:00:00 2001 |
24 |
+From: Adam Sampson <ats-github@×××××.org> |
25 |
+Date: Mon, 16 Oct 2017 13:07:36 +0100 |
26 |
+Subject: [PATCH] [functional-tests] fix build with testing disabled (#88) |
27 |
+ |
28 |
+The rule for lib/libft.so is only enabled with --enable-testing, |
29 |
+so the default target shouldn't depend unconditionally on it. |
30 |
+With the default configure options, the build failed with: |
31 |
+make: *** No rule to make target 'lib/libft.so', needed by 'all'. Stop. |
32 |
+--- |
33 |
+ Makefile.in | 7 ++++++- |
34 |
+ 1 file changed, 6 insertions(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/Makefile.in b/Makefile.in |
37 |
+index e745739..02b75dd 100644 |
38 |
+--- a/Makefile.in |
39 |
++++ b/Makefile.in |
40 |
+@@ -21,8 +21,13 @@ V=@ |
41 |
+ PROGRAMS=\ |
42 |
+ bin/pdata_tools |
43 |
+ |
44 |
++ifeq ("@TESTING@", "yes") |
45 |
++TESTLIBS=\ |
46 |
++ lib/libft.so |
47 |
++endif |
48 |
++ |
49 |
+ .PHONY: all |
50 |
+-all: $(PROGRAMS) lib/libft.so |
51 |
++all: $(PROGRAMS) $(TESTLIBS) |
52 |
+ |
53 |
+ SOURCE=\ |
54 |
+ base/output_file_requirements.cc \ |
55 |
|
56 |
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.4.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.4.ebuild |
57 |
index 36d3cd79766..b0807e8fcff 100644 |
58 |
--- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.4.ebuild |
59 |
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.4.ebuild |
60 |
@@ -29,7 +29,10 @@ DEPEND="${RDEPEND} |
61 |
) |
62 |
dev-libs/boost" |
63 |
|
64 |
-PATCHES=( "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch ) |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch |
67 |
+ "${FILESDIR}/${P}-disabled-tests_build_fix.patch" #634868 |
68 |
+) |
69 |
|
70 |
src_prepare() { |
71 |
default |