dev-perl/Cache-Memcached-Fast: Fix make dependencies re: bug #299972
authorKent Fredric <kentnl@gentoo.org>
Tue, 2 Aug 2016 12:50:45 +0000 (00:50 +1200)
committerKent Fredric <kentnl@gentoo.org>
Tue, 2 Aug 2016 12:53:29 +0000 (00:53 +1200)
This patch injects a few missing dependency rules in the generated
Makefile that resolves the parallelism problem.

Thanks to Diego Elio Pettenò for reporting.

Bug: https://bugs.gentoo.org/299972

Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"

dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.230.0.ebuild
dev-perl/Cache-Memcached-Fast/files/0.230.0-parallel-make.patch [new file with mode: 0644]

index 3f4e28d7e650e0c88b31642f2db8363ac256b798..34ba14f0bbf69ce809a9d75bd1dc5ec53ed8fad6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,9 +14,11 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="test"
 
-SRC_TEST="do"
+PATCHES=(
+       "${FILESDIR}/${PV}-parallel-make.patch"
+)
 
-MAKEOPTS="${MAKEOPTS} -j1"
+SRC_TEST="do"
 
 DEPEND="
        virtual/perl-ExtUtils-MakeMaker
diff --git a/dev-perl/Cache-Memcached-Fast/files/0.230.0-parallel-make.patch b/dev-perl/Cache-Memcached-Fast/files/0.230.0-parallel-make.patch
new file mode 100644 (file)
index 0000000..65f856c
--- /dev/null
@@ -0,0 +1,15 @@
+diff --git a/src/Makefile.PL b/src/Makefile.PL
+index 3a945d4..2c1e03a 100644
+--- a/src/Makefile.PL
++++ b/src/Makefile.PL
+@@ -55,6 +55,10 @@ libclient$(LIB_EXT): $(OBJECT)
+       $(AR) cr libclient$(LIB_EXT) $(OBJECT)
+       $(RANLIB) libclient$(LIB_EXT)
+ 
++dispatch_key.o : compute_crc32.h
++
++client.o : parse_keyword.h
++
+ parse_keyword.c parse_keyword.h :: genparser.pl reply.kw
+       $(PERL) genparser.pl reply.kw parse_keyword.c parse_keyword.h
+