summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-12-20 14:17:54 +0100
committerRemi Collet <remi@php.net>2021-12-20 14:17:54 +0100
commit2b5ef0f614be0afb27041a4156af31b07bfce69b (patch)
tree4dd72b56b5a7302a3ced9ef623d1fed44cd39cd8
parentb8d95af8004d547bf948a393f77c56cbbee88661 (diff)
update to 1.9.0
raise dependency on react/promise-timer 1.8
-rw-r--r--181.patch29
-rw-r--r--composer.json2
-rw-r--r--php-react-dns.spec18
3 files changed, 10 insertions, 39 deletions
diff --git a/181.patch b/181.patch
deleted file mode 100644
index e3ce883..0000000
--- a/181.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 24f0601345fa245eddaaecab5dde8fc0d14b0ef6 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Mon, 28 Jun 2021 08:47:07 +0200
-Subject: [PATCH] only return valid IPs
-
----
- src/Config/Config.php | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/src/Config/Config.php b/src/Config/Config.php
-index 37ae91d..81b70a4 100644
---- a/src/Config/Config.php
-+++ b/src/Config/Config.php
-@@ -85,7 +85,14 @@ public static function loadResolvConfBlocking($path = null)
- preg_match_all('/^nameserver\s+(\S+)\s*$/m', $contents, $matches);
-
- $config = new self();
-- $config->nameservers = $matches[1];
-+ $config->nameservers = [];
-+
-+ /* only valid IP */
-+ foreach($matches[1] as $n) {
-+ if (filter_var("$n",FILTER_VALIDATE_IP)) {
-+ $config->nameservers[] = $n;
-+ }
-+ }
-
- return $config;
- }
diff --git a/composer.json b/composer.json
index 28482f5..0126343 100644
--- a/composer.json
+++ b/composer.json
@@ -30,7 +30,7 @@
"react/cache": "^1.0 || ^0.6 || ^0.5",
"react/event-loop": "^1.2",
"react/promise": "^3.0 || ^2.7 || ^1.2.1",
- "react/promise-timer": "^1.2"
+ "react/promise-timer": "^1.8"
},
"require-dev": {
"clue/block-react": "^1.2",
diff --git a/php-react-dns.spec b/php-react-dns.spec
index 99714ee..9ea1c70 100644
--- a/php-react-dns.spec
+++ b/php-react-dns.spec
@@ -12,8 +12,8 @@
%global github_owner reactphp
%global github_name dns
-%global github_version 1.8.0
-%global github_commit 2a5a74ab751e53863b45fb87e1d3913884f88248
+%global github_version 1.9.0
+%global github_commit 6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb
%global composer_vendor react
%global composer_project dns
@@ -33,8 +33,8 @@
# ignore v3 not yet packaged
%global react_promise_min_ver 1.2.1
%global react_promise_max_ver 3.0
-# "react/promise-timer": "^1.2"
-%global react_promise_timer_min_ver 1.2
+# "react/promise-timer": "^1.8"
+%global react_promise_timer_min_ver 1.8
%global react_promise_timer_max_ver 2.0
# Build using "--without tests" to disable tests
@@ -55,9 +55,6 @@ URL: https://reactphp.org/dns/
Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
Source1: %{name}-get-source.sh
-# Filter valid IPs
-Patch0: https://patch-diff.githubusercontent.com/raw/reactphp/dns/pull/181.patch
-
BuildArch: noarch
# Tests
%if %{with tests}
@@ -136,7 +133,6 @@ Autoloader: %{phpdir}/React/Dns/autoload.php
%prep
%setup -qn %{github_name}-%{github_commit}
-%patch0 -p1
%build
@@ -192,7 +188,7 @@ VER=$(php -r 'echo PHP_INT_SIZE;')
: Upstream tests
RETURN_CODE=0
-for CMDARG in "php %{phpunit}" php73 php74 php80 php81; do
+for CMDARG in "php %{phpunit}" php74 php80 php81; do
if which $CMDARG; then
set $CMDARG
$1 ${2:-%{_bindir}/phpunit9} -d memory_limit=-1 \
@@ -216,6 +212,10 @@ exit $RETURN_CODE
%changelog
+* Mon Dec 20 2021 Remi Collet <remi@remirepo.net> - 1.9.0-1
+- update to 1.9.0
+- raise dependency on react/promise-timer 1.8
+
* Mon Jul 12 2021 Remi Collet <remi@remirepo.net> - 1.8.0-1
- update to 1.8.0
- raise dependency on react/event-loop 1.2