public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-xrange/, dev-php/pecl-xrange/files/, profiles/
@ 2019-12-30 15:09 Brian Evans
  0 siblings, 0 replies; only message in thread
From: Brian Evans @ 2019-12-30 15:09 UTC (permalink / raw
  To: gentoo-commits

commit:     e2600f572fc995cd399ff3bfcb82025d124e38db
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 14:56:42 2019 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 15:09:13 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2600f57

dev-php/pecl-xrange: Drop package

Bug: https://bugs.gentoo.org/651784
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 dev-php/pecl-xrange/Manifest                    |   1 -
 dev-php/pecl-xrange/files/1.3.2-fixes.patch     | 133 ------------------------
 dev-php/pecl-xrange/metadata.xml                |   8 --
 dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild |  24 -----
 profiles/package.mask                           |   1 -
 5 files changed, 167 deletions(-)

diff --git a/dev-php/pecl-xrange/Manifest b/dev-php/pecl-xrange/Manifest
deleted file mode 100644
index f7206d9c262..00000000000
--- a/dev-php/pecl-xrange/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST xrange-1.3.2.tgz 8767 BLAKE2B bc68954f4bb81e10e71583d58d0d513fbfc8f591469fa520232b13ee46d472a3f757911ce3f3e8d8cd0b24be92fd18869fab5bc2bb5d1ea1421cd0949f45ff96 SHA512 76b43867d1225249347e489dd24a0d278b45288e26f90b0678b657ac21e0d45c5c90496ca13b534f581643d865b266dabc2cad41fec0214951a4630e98efa5e4

diff --git a/dev-php/pecl-xrange/files/1.3.2-fixes.patch b/dev-php/pecl-xrange/files/1.3.2-fixes.patch
deleted file mode 100644
index 4664a5d1feb..00000000000
--- a/dev-php/pecl-xrange/files/1.3.2-fixes.patch
+++ /dev/null
@@ -1,133 +0,0 @@
---- a/xrange.c	2012/07/28 23:20:09	326859
-+++ b/xrange.c	2013/10/06 11:48:38	331707
-@@ -175,21 +175,21 @@
- 	zend_class_implements(php_xrange_xri_entry TSRMLS_CC, 1, spl_ce_Countable);
- 
- 	/* Register Class: OddFilterIterator */
--	memset(&ce, sizeof(ce), '\0');
-+	memset(&ce, 0, sizeof(ce));
- 	INIT_CLASS_ENTRY(ce, PHP_XRANGE_ODDFILTERITERATOR_NAME, php_xrange_OddFilterIterator_functions);
-     ce.name_length = strlen(PHP_XRANGE_ODDFILTERITERATOR_NAME); 
- 	php_xrange_OddFilterIterator_entry =
- 		zend_register_internal_class_ex(&ce, spl_ce_FilterIterator, NULL TSRMLS_CC);
- 
- 	/* Register Class: EvenFilterIterator */
--	memset(&ce, sizeof(ce), '\0');
-+	memset(&ce, 0, sizeof(ce));
- 	INIT_CLASS_ENTRY(ce, PHP_XRANGE_EVENFILTERITERATOR_NAME, php_xrange_EvenFilterIterator_functions);
-     ce.name_length = strlen(PHP_XRANGE_EVENFILTERITERATOR_NAME); 
- 	php_xrange_EvenFilterIterator_entry =
- 		zend_register_internal_class_ex(&ce, spl_ce_FilterIterator, NULL TSRMLS_CC);
- 
- 	/* Register Class: NumericFilterIterator */
--	memset(&ce, sizeof(ce), '\0');
-+	memset(&ce, 0, sizeof(ce));
- 	INIT_CLASS_ENTRY(ce, PHP_XRANGE_NUMERICFILTERITERATOR_NAME, php_xrange_NumericFilterIterator_functions);
-     ce.name_length = strlen(PHP_XRANGE_NUMERICFILTERITERATOR_NAME); 
- 	php_xrange_NumericFilterIterator_entry =
-@@ -225,13 +225,16 @@
- {
- 	if (return_value_used) {
- 		int param_count = ZEND_NUM_ARGS();
-+		zval ***params;
-+		zval *retval = NULL;
-+		zval methodName;
- 
- 		/* because I'm passing the arguments as an array, I'll need to manually
- 		   check arg length. */
- 		if (param_count != 2 && param_count != 3) WRONG_PARAM_COUNT;
- 
- 		/* retrieve the function's argument list */
--		zval ***params = (zval ***) safe_emalloc(param_count, sizeof(zval*), 0);
-+		params = (zval ***) safe_emalloc(param_count, sizeof(zval*), 0);
- 		if (zend_get_parameters_array_ex(param_count, params) == FAILURE) {
- 			efree(params);
- 			WRONG_PARAM_COUNT;
-@@ -244,8 +247,6 @@
- 		);
- 
- 		/* setup call to XRangeIterator's constructor (must do manually) */
--		zval *retval = NULL;
--		zval methodName;
- 		ZVAL_STRING(&methodName, "__construct", 0);
- 
- 		/* pass all arguments through to the XRangeIterator constructor */
-@@ -286,6 +287,9 @@
-    Return a configured range iterator / generator */
- PHP_METHOD(PHP_XRANGE_XRI_NAME, __construct)
- {
-+	xrange_module_storage *internalStorage;
-+	double iterations;
-+
- 	if (!getThis()) {
- 		php_error_docref(
- 			NULL TSRMLS_CC, E_WARNING, "Don't call the constructor statically"
-@@ -293,7 +297,7 @@
- 		RETURN_FALSE;
- 	}
- 
--	xrange_module_storage *internalStorage = PHP_XRANGE_ZOS_GET;
-+	internalStorage = PHP_XRANGE_ZOS_GET;
- 
- 	/* parse argument list */
- 	internalStorage->step = 1.0; /* default */
-@@ -322,7 +326,7 @@
- 	) internalStorage->step *= -1;
- 
- 	/* calculate the total number of iterations before completion */
--	double iterations = fabs(
-+	iterations = fabs(
- 		(internalStorage->high - internalStorage->low) / internalStorage->step
- 	);
- 
-@@ -453,6 +457,7 @@
- PHP_METHOD(PHP_XRANGE_ODDFILTERITERATOR_NAME, accept)
- {
- 	zval *currentValue;
-+	int isOdd;
- 
- 	// method A: bypass getInnerIterator() call
- 	spl_dual_it_object *intern =
-@@ -464,7 +469,7 @@
- 	// TODO: method B - use getInnerIterator() w/ compilation option
- 
- 	if (Z_TYPE_P(currentValue) != IS_LONG) convert_to_long(currentValue);
--	int isOdd = Z_LVAL_P(currentValue) & 1;
-+	isOdd = Z_LVAL_P(currentValue) & 1;
- 
- 	zval_ptr_dtor(&currentValue); /* clean-up */
- 	RETURN_BOOL(isOdd);
-@@ -476,6 +481,7 @@
- PHP_METHOD(PHP_XRANGE_EVENFILTERITERATOR_NAME, accept)
- {
- 	zval *currentValue;
-+	int isEven;
- 
- 	/* method A: bypass getInnerIterator() call */
- 	spl_dual_it_object *intern =
-@@ -487,7 +493,7 @@
- 	/* TODO: method B - use getInnerIterator() w/ compilation option */
- 
- 	if (Z_TYPE_P(currentValue) != IS_LONG) convert_to_long(currentValue);
--	int isEven = !(Z_LVAL_P(currentValue) & 1);
-+	isEven = !(Z_LVAL_P(currentValue) & 1);
- 
- 	zval_ptr_dtor(&currentValue); /* clean-up */
- 	RETURN_BOOL(isEven);
-@@ -499,6 +505,7 @@
- PHP_METHOD(PHP_XRANGE_NUMERICFILTERITERATOR_NAME, accept)
- {
- 	zval *currentValue;
-+	int isNumeric;
- 
- 	/* method A: bypass getInnerIterator() call */
- 	spl_dual_it_object *intern =
-@@ -509,8 +516,6 @@
- 	);
- 	/* TODO: method B - use getInnerIterator() w/ compilation option */
- 
--	int isNumeric;
--
- 	/* this code comes from is_numeric() the implementation. it's here to
- 	 * to eliminate the overhead of a PHP function call. */
- 	switch (Z_TYPE_P(currentValue)) {

diff --git a/dev-php/pecl-xrange/metadata.xml b/dev-php/pecl-xrange/metadata.xml
deleted file mode 100644
index b86acf66c75..00000000000
--- a/dev-php/pecl-xrange/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="project">
-		<email>php-bugs@gentoo.org</email>
-		<name>PHP</name>
-	</maintainer>
-</pkgmetadata>

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
deleted file mode 100644
index bc6d23e24b2..00000000000
--- a/dev-php/pecl-xrange/pecl-xrange-1.3.2-r2.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PHP_EXT_NAME="xrange"
-PHP_EXT_INI="yes"
-PHP_EXT_ZENDEXT="no"
-
-USE_PHP="php5-6"
-
-inherit php-ext-pecl-r3
-
-KEYWORDS="~amd64 ~x86"
-
-DESCRIPTION="Implementation of weak references"
-LICENSE="PHP-3"
-SLOT="0"
-IUSE=""
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/1.3.2-fixes.patch" )
-PHP_EXT_ECONF_ARGS=()

diff --git a/profiles/package.mask b/profiles/package.mask
index 83e6237b7e1..608516ea2da 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -780,7 +780,6 @@ virtual/httpd-php:5.6
 # Brian Evans <grknight@gentoo.org> (2019-10-01)
 # Old extensions which only work with PHP <7
 # Removal in 90 days. Bug 651784
-dev-php/pecl-xrange
 dev-php/suhosin
 dev-php/xcache
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-30 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-30 15:09 [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-xrange/, dev-php/pecl-xrange/files/, profiles/ Brian Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox