From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../pecl-geoip/files/fix-failing-tests-1.1.1.patch | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch (limited to 'dev-php/pecl-geoip/files') diff --git a/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch b/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch new file mode 100644 index 000000000000..a86994708e7b --- /dev/null +++ b/dev-php/pecl-geoip/files/fix-failing-tests-1.1.1.patch @@ -0,0 +1,46 @@ +On Gentoo, we require users to download the GeoIP databases +themselves. As a result, the databases may not be there when +installing pecl-geoip. The first patch below skips a test if the +database it uses is not present. The second patch disables 019.phpt +completely, because I can't make it pass. + +PHP-Bug: 73416 + +diff --git a/tests/001.phpt b/tests/001.phpt +index a548d6e..c0e4972 100644 +--- a/tests/001.phpt ++++ b/tests/001.phpt +@@ -1,7 +1,10 @@ + --TEST-- + Checking Country (Free) DB availability + --SKIPIF-- +- ++ + --POST-- + --GET-- + --FILE-- +diff --git a/tests/019.phpt b/tests/019.phpt +deleted file mode 100644 +index 4630354..0000000 +--- a/tests/019.phpt ++++ /dev/null +@@ -1,15 +0,0 @@ +---TEST-- +-Checking geoip_setup_custom_directory() (with trailing slash) +---SKIPIF-- +- +---INI-- +-geoip.custom_directory="/test/" +---FILE-- +- +---EXPECT-- +-string(27) "/some/other/place/GeoIP.dat" +-string(6) "/test/" +\ No newline at end of file -- cgit v1.2.3