sys-block/thin-provisioning-tools: Fixed build without tests.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Oct 2017 15:09:15 +0000 (17:09 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Oct 2017 15:09:25 +0000 (17:09 +0200)
Closes: https://bugs.gentoo.org/634868
Package-Manager: Portage-2.3.12, Repoman-2.3.3

sys-block/thin-provisioning-tools/files/thin-provisioning-tools-0.7.4-disabled-tests_build_fix.patch [new file with mode: 0644]
sys-block/thin-provisioning-tools/thin-provisioning-tools-0.7.4.ebuild

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
new file mode 100644 (file)
index 0000000..f9a64b2
--- /dev/null
@@ -0,0 +1,32 @@
+From 8d75be81120b9cf172c95d0153c5f845ed804234 Mon Sep 17 00:00:00 2001
+From: Adam Sampson <ats-github@offog.org>
+Date: Mon, 16 Oct 2017 13:07:36 +0100
+Subject: [PATCH] [functional-tests] fix build with testing disabled (#88)
+
+The rule for lib/libft.so is only enabled with --enable-testing,
+so the default target shouldn't depend unconditionally on it.
+With the default configure options, the build failed with:
+make: *** No rule to make target 'lib/libft.so', needed by 'all'.  Stop.
+---
+ Makefile.in | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index e745739..02b75dd 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -21,8 +21,13 @@ V=@
+ PROGRAMS=\
+       bin/pdata_tools
++ifeq ("@TESTING@", "yes")
++TESTLIBS=\
++      lib/libft.so
++endif
++
+ .PHONY: all
+-all: $(PROGRAMS) lib/libft.so
++all: $(PROGRAMS) $(TESTLIBS)
+ SOURCE=\
+       base/output_file_requirements.cc \
index 36d3cd79766f6913d58131730650794168fafc1b..b0807e8fcff4595256634ce7b897057fa66ff44c 100644 (file)
@@ -29,7 +29,10 @@ DEPEND="${RDEPEND}
        )
        dev-libs/boost"
 
-PATCHES=( "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.7.0-build-fixes.patch
+       "${FILESDIR}/${P}-disabled-tests_build_fix.patch" #634868
+)
 
 src_prepare() {
        default