1 |
commit: e2600f572fc995cd399ff3bfcb82025d124e38db |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 30 14:56:42 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 30 15:09:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2600f57 |
7 |
|
8 |
dev-php/pecl-xrange: Drop package |
9 |
|
10 |
Bug: https://bugs.gentoo.org/651784 |
11 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
12 |
|
13 |
dev-php/pecl-xrange/Manifest | 1 - |
14 |
dev-php/pecl-xrange/files/1.3.2-fixes.patch | 133 ------------------------ |
15 |
dev-php/pecl-xrange/metadata.xml | 8 -- |
16 |
dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild | 24 ----- |
17 |
profiles/package.mask | 1 - |
18 |
5 files changed, 167 deletions(-) |
19 |
|
20 |
diff --git a/dev-php/pecl-xrange/Manifest b/dev-php/pecl-xrange/Manifest |
21 |
deleted file mode 100644 |
22 |
index f7206d9c262..00000000000 |
23 |
--- a/dev-php/pecl-xrange/Manifest |
24 |
+++ /dev/null |
25 |
@@ -1 +0,0 @@ |
26 |
-DIST xrange-1.3.2.tgz 8767 BLAKE2B bc68954f4bb81e10e71583d58d0d513fbfc8f591469fa520232b13ee46d472a3f757911ce3f3e8d8cd0b24be92fd18869fab5bc2bb5d1ea1421cd0949f45ff96 SHA512 76b43867d1225249347e489dd24a0d278b45288e26f90b0678b657ac21e0d45c5c90496ca13b534f581643d865b266dabc2cad41fec0214951a4630e98efa5e4 |
27 |
|
28 |
diff --git a/dev-php/pecl-xrange/files/1.3.2-fixes.patch b/dev-php/pecl-xrange/files/1.3.2-fixes.patch |
29 |
deleted file mode 100644 |
30 |
index 4664a5d1feb..00000000000 |
31 |
--- a/dev-php/pecl-xrange/files/1.3.2-fixes.patch |
32 |
+++ /dev/null |
33 |
@@ -1,133 +0,0 @@ |
34 |
---- a/xrange.c 2012/07/28 23:20:09 326859 |
35 |
-+++ b/xrange.c 2013/10/06 11:48:38 331707 |
36 |
-@@ -175,21 +175,21 @@ |
37 |
- zend_class_implements(php_xrange_xri_entry TSRMLS_CC, 1, spl_ce_Countable); |
38 |
- |
39 |
- /* Register Class: OddFilterIterator */ |
40 |
-- memset(&ce, sizeof(ce), '\0'); |
41 |
-+ memset(&ce, 0, sizeof(ce)); |
42 |
- INIT_CLASS_ENTRY(ce, PHP_XRANGE_ODDFILTERITERATOR_NAME, php_xrange_OddFilterIterator_functions); |
43 |
- ce.name_length = strlen(PHP_XRANGE_ODDFILTERITERATOR_NAME); |
44 |
- php_xrange_OddFilterIterator_entry = |
45 |
- zend_register_internal_class_ex(&ce, spl_ce_FilterIterator, NULL TSRMLS_CC); |
46 |
- |
47 |
- /* Register Class: EvenFilterIterator */ |
48 |
-- memset(&ce, sizeof(ce), '\0'); |
49 |
-+ memset(&ce, 0, sizeof(ce)); |
50 |
- INIT_CLASS_ENTRY(ce, PHP_XRANGE_EVENFILTERITERATOR_NAME, php_xrange_EvenFilterIterator_functions); |
51 |
- ce.name_length = strlen(PHP_XRANGE_EVENFILTERITERATOR_NAME); |
52 |
- php_xrange_EvenFilterIterator_entry = |
53 |
- zend_register_internal_class_ex(&ce, spl_ce_FilterIterator, NULL TSRMLS_CC); |
54 |
- |
55 |
- /* Register Class: NumericFilterIterator */ |
56 |
-- memset(&ce, sizeof(ce), '\0'); |
57 |
-+ memset(&ce, 0, sizeof(ce)); |
58 |
- INIT_CLASS_ENTRY(ce, PHP_XRANGE_NUMERICFILTERITERATOR_NAME, php_xrange_NumericFilterIterator_functions); |
59 |
- ce.name_length = strlen(PHP_XRANGE_NUMERICFILTERITERATOR_NAME); |
60 |
- php_xrange_NumericFilterIterator_entry = |
61 |
-@@ -225,13 +225,16 @@ |
62 |
- { |
63 |
- if (return_value_used) { |
64 |
- int param_count = ZEND_NUM_ARGS(); |
65 |
-+ zval ***params; |
66 |
-+ zval *retval = NULL; |
67 |
-+ zval methodName; |
68 |
- |
69 |
- /* because I'm passing the arguments as an array, I'll need to manually |
70 |
- check arg length. */ |
71 |
- if (param_count != 2 && param_count != 3) WRONG_PARAM_COUNT; |
72 |
- |
73 |
- /* retrieve the function's argument list */ |
74 |
-- zval ***params = (zval ***) safe_emalloc(param_count, sizeof(zval*), 0); |
75 |
-+ params = (zval ***) safe_emalloc(param_count, sizeof(zval*), 0); |
76 |
- if (zend_get_parameters_array_ex(param_count, params) == FAILURE) { |
77 |
- efree(params); |
78 |
- WRONG_PARAM_COUNT; |
79 |
-@@ -244,8 +247,6 @@ |
80 |
- ); |
81 |
- |
82 |
- /* setup call to XRangeIterator's constructor (must do manually) */ |
83 |
-- zval *retval = NULL; |
84 |
-- zval methodName; |
85 |
- ZVAL_STRING(&methodName, "__construct", 0); |
86 |
- |
87 |
- /* pass all arguments through to the XRangeIterator constructor */ |
88 |
-@@ -286,6 +287,9 @@ |
89 |
- Return a configured range iterator / generator */ |
90 |
- PHP_METHOD(PHP_XRANGE_XRI_NAME, __construct) |
91 |
- { |
92 |
-+ xrange_module_storage *internalStorage; |
93 |
-+ double iterations; |
94 |
-+ |
95 |
- if (!getThis()) { |
96 |
- php_error_docref( |
97 |
- NULL TSRMLS_CC, E_WARNING, "Don't call the constructor statically" |
98 |
-@@ -293,7 +297,7 @@ |
99 |
- RETURN_FALSE; |
100 |
- } |
101 |
- |
102 |
-- xrange_module_storage *internalStorage = PHP_XRANGE_ZOS_GET; |
103 |
-+ internalStorage = PHP_XRANGE_ZOS_GET; |
104 |
- |
105 |
- /* parse argument list */ |
106 |
- internalStorage->step = 1.0; /* default */ |
107 |
-@@ -322,7 +326,7 @@ |
108 |
- ) internalStorage->step *= -1; |
109 |
- |
110 |
- /* calculate the total number of iterations before completion */ |
111 |
-- double iterations = fabs( |
112 |
-+ iterations = fabs( |
113 |
- (internalStorage->high - internalStorage->low) / internalStorage->step |
114 |
- ); |
115 |
- |
116 |
-@@ -453,6 +457,7 @@ |
117 |
- PHP_METHOD(PHP_XRANGE_ODDFILTERITERATOR_NAME, accept) |
118 |
- { |
119 |
- zval *currentValue; |
120 |
-+ int isOdd; |
121 |
- |
122 |
- // method A: bypass getInnerIterator() call |
123 |
- spl_dual_it_object *intern = |
124 |
-@@ -464,7 +469,7 @@ |
125 |
- // TODO: method B - use getInnerIterator() w/ compilation option |
126 |
- |
127 |
- if (Z_TYPE_P(currentValue) != IS_LONG) convert_to_long(currentValue); |
128 |
-- int isOdd = Z_LVAL_P(currentValue) & 1; |
129 |
-+ isOdd = Z_LVAL_P(currentValue) & 1; |
130 |
- |
131 |
- zval_ptr_dtor(¤tValue); /* clean-up */ |
132 |
- RETURN_BOOL(isOdd); |
133 |
-@@ -476,6 +481,7 @@ |
134 |
- PHP_METHOD(PHP_XRANGE_EVENFILTERITERATOR_NAME, accept) |
135 |
- { |
136 |
- zval *currentValue; |
137 |
-+ int isEven; |
138 |
- |
139 |
- /* method A: bypass getInnerIterator() call */ |
140 |
- spl_dual_it_object *intern = |
141 |
-@@ -487,7 +493,7 @@ |
142 |
- /* TODO: method B - use getInnerIterator() w/ compilation option */ |
143 |
- |
144 |
- if (Z_TYPE_P(currentValue) != IS_LONG) convert_to_long(currentValue); |
145 |
-- int isEven = !(Z_LVAL_P(currentValue) & 1); |
146 |
-+ isEven = !(Z_LVAL_P(currentValue) & 1); |
147 |
- |
148 |
- zval_ptr_dtor(¤tValue); /* clean-up */ |
149 |
- RETURN_BOOL(isEven); |
150 |
-@@ -499,6 +505,7 @@ |
151 |
- PHP_METHOD(PHP_XRANGE_NUMERICFILTERITERATOR_NAME, accept) |
152 |
- { |
153 |
- zval *currentValue; |
154 |
-+ int isNumeric; |
155 |
- |
156 |
- /* method A: bypass getInnerIterator() call */ |
157 |
- spl_dual_it_object *intern = |
158 |
-@@ -509,8 +516,6 @@ |
159 |
- ); |
160 |
- /* TODO: method B - use getInnerIterator() w/ compilation option */ |
161 |
- |
162 |
-- int isNumeric; |
163 |
-- |
164 |
- /* this code comes from is_numeric() the implementation. it's here to |
165 |
- * to eliminate the overhead of a PHP function call. */ |
166 |
- switch (Z_TYPE_P(currentValue)) { |
167 |
|
168 |
diff --git a/dev-php/pecl-xrange/metadata.xml b/dev-php/pecl-xrange/metadata.xml |
169 |
deleted file mode 100644 |
170 |
index b86acf66c75..00000000000 |
171 |
--- a/dev-php/pecl-xrange/metadata.xml |
172 |
+++ /dev/null |
173 |
@@ -1,8 +0,0 @@ |
174 |
-<?xml version="1.0" encoding="UTF-8"?> |
175 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
176 |
-<pkgmetadata> |
177 |
- <maintainer type="project"> |
178 |
- <email>php-bugs@g.o</email> |
179 |
- <name>PHP</name> |
180 |
- </maintainer> |
181 |
-</pkgmetadata> |
182 |
|
183 |
diff --git a/dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild b/dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild |
184 |
deleted file mode 100644 |
185 |
index bc6d23e24b2..00000000000 |
186 |
--- a/dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild |
187 |
+++ /dev/null |
188 |
@@ -1,24 +0,0 @@ |
189 |
-# Copyright 1999-2016 Gentoo Foundation |
190 |
-# Distributed under the terms of the GNU General Public License v2 |
191 |
- |
192 |
-EAPI=6 |
193 |
- |
194 |
-PHP_EXT_NAME="xrange" |
195 |
-PHP_EXT_INI="yes" |
196 |
-PHP_EXT_ZENDEXT="no" |
197 |
- |
198 |
-USE_PHP="php5-6" |
199 |
- |
200 |
-inherit php-ext-pecl-r3 |
201 |
- |
202 |
-KEYWORDS="~amd64 ~x86" |
203 |
- |
204 |
-DESCRIPTION="Implementation of weak references" |
205 |
-LICENSE="PHP-3" |
206 |
-SLOT="0" |
207 |
-IUSE="" |
208 |
- |
209 |
-RDEPEND="" |
210 |
-DEPEND="${RDEPEND}" |
211 |
-PATCHES=( "${FILESDIR}/1.3.2-fixes.patch" ) |
212 |
-PHP_EXT_ECONF_ARGS=() |
213 |
|
214 |
diff --git a/profiles/package.mask b/profiles/package.mask |
215 |
index 83e6237b7e1..608516ea2da 100644 |
216 |
--- a/profiles/package.mask |
217 |
+++ b/profiles/package.mask |
218 |
@@ -780,7 +780,6 @@ virtual/httpd-php:5.6 |
219 |
# Brian Evans <grknight@g.o> (2019-10-01) |
220 |
# Old extensions which only work with PHP <7 |
221 |
# Removal in 90 days. Bug 651784 |
222 |
-dev-php/pecl-xrange |
223 |
dev-php/suhosin |
224 |
dev-php/xcache |