diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-10-03 20:29:16 +1300 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-10-03 20:30:03 +1300 |
commit | 3a948a110ad8e44beba6a6ae3edf67b8cca66981 (patch) | |
tree | 7ef610d6467cca0e578ed26ad9f28f7321ab076d /dev-perl/Cache-Memcached-Fast | |
parent | sys-auth/libyubikey: Remove proxied maintainer (diff) | |
download | gentoo-3a948a110ad8e44beba6a6ae3edf67b8cca66981.tar.gz gentoo-3a948a110ad8e44beba6a6ae3edf67b8cca66981.tar.bz2 gentoo-3a948a110ad8e44beba6a6ae3edf67b8cca66981.zip |
dev-perl/Cache-Memcached-Fast: Bump to version 0.250.0
- EAPI6
- Parallelize tests
- Significantly expand test coverage by running a memcached test
instance when testing
- Fix building failures on Perl with -flto
- Add USE="examples"
Upstream:
- Return undef on server errors
- Prevent undefined values causing SEGV
- Avoid superflouous evals in new()
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-perl/Cache-Memcached-Fast')
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.250.0.ebuild b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.250.0.ebuild new file mode 100644 index 000000000000..00091ed9e06f --- /dev/null +++ b/dev-perl/Cache-Memcached-Fast/Cache-Memcached-Fast-0.250.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=RAZ +DIST_VERSION=0.25 +DIST_EXAMPLES=("script/*") +inherit perl-module + +DESCRIPTION="Perl client for memcached, in C language" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +PATCHES=( + "${FILESDIR}/0.230.0-parallel-make.patch" + "${FILESDIR}/${P}-no-flto.patch" +) +RDEPEND="virtual/perl-Storable" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + net-misc/memcached + virtual/perl-Test-Simple + ) +" + +src_test() { + perl_rm_files t/pod-coverage.t t/pod.t + + local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 ) + [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) + memcached "${memcached_opts[@]}" || die "Can't start memcached test server" + + local exit_status + perl-module_src_test + exit_status=$? + + kill "$(<"${T}/memcached.pid")" + return ${exit_status} +} diff --git a/dev-perl/Cache-Memcached-Fast/Manifest b/dev-perl/Cache-Memcached-Fast/Manifest index b3cdfeeaa4e5..2396242f5fba 100644 --- a/dev-perl/Cache-Memcached-Fast/Manifest +++ b/dev-perl/Cache-Memcached-Fast/Manifest @@ -1 +1,2 @@ DIST Cache-Memcached-Fast-0.23.tar.gz 102205 SHA256 df20beaebf85180154be5a99886686793cf1beee9081ed7de0ae66c4573d200f SHA512 2023eaec65da3ad8ac48907f86dd2f6a679939659a0047c46654aafaf3aceefcd0e03aee340214aa4300a0f4469da74b646a7a1f2c99ea9dcc6e3438f5d7899e WHIRLPOOL 34a54ed1c27524631849fca7720dad5b866c777e7c6776e7e2463add63a4af535eb4519b72db325f1c9a85af14165350c0d7c2739c2dd75b290a0a2f312da411 +DIST Cache-Memcached-Fast-0.25.tar.gz 104313 SHA256 782a259094c4667871b23cdccd500bd50802d9529f1b3d6ebe2a68f5292c5c46 SHA512 385b58f9dd66f86c7f99859782f098101d0f6bce9e2b22552895ab22d775ed73a1886544a51904797812b77e6849d8f2d79e61fb999a11e30497c6ae6de8c5c0 WHIRLPOOL edd6ecc74f6fee288f577f960463366e2ab1fd645f853119998c4b93b6a7ca4045e27deb2c0b2aec134a7928df2ee52509ac6d1465b7bd86983e8e23e2a788f5 diff --git a/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.250.0-no-flto.patch b/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.250.0-no-flto.patch new file mode 100644 index 000000000000..d78c3fad0d7f --- /dev/null +++ b/dev-perl/Cache-Memcached-Fast/files/Cache-Memcached-Fast-0.250.0-no-flto.patch @@ -0,0 +1,32 @@ +From d1c5f70b144abfd4783f866aef27f60a35b61f8b Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Tue, 3 Oct 2017 20:20:14 +1300 +Subject: Strip -flto from CFLAGS + +-flto breaks compilation of static archives and needs significant magic +to not break, including sentience about which CC you're using. +--- + Makefile.PL | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Makefile.PL b/Makefile.PL +index 0054164..ad249b9 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -22,6 +22,13 @@ WriteMakefile( + }, + ); + ++sub MY::cflags { ++ my $self = shift; ++ my $orig = $self->MM::cflags(@_); ++ $orig =~ s/-flto\b//g; ++ return $orig; ++} ++ + sub MY::postamble { + ' + $(MYEXTLIB): src/Makefile +-- +2.14.1 + |