From 0326200b21e9f0f6dd1030f7c2a3dad399d692df Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 3 Dec 2021 14:33:41 +0100 Subject: test build --- php-bartlett-php-compatinfo-db-up.patch | 125 ++++++++++++++++++++++++++++++++ php-bartlett-php-compatinfo-db.spec | 4 +- 2 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 php-bartlett-php-compatinfo-db-up.patch diff --git a/php-bartlett-php-compatinfo-db-up.patch b/php-bartlett-php-compatinfo-db-up.patch new file mode 100644 index 0000000..581b23e --- /dev/null +++ b/php-bartlett-php-compatinfo-db-up.patch @@ -0,0 +1,125 @@ +From 6451fd1d1a80c55c05438301b330c5c1c39e369f Mon Sep 17 00:00:00 2001 +From: Laurent Laville +Date: Fri, 3 Dec 2021 11:23:37 +0000 +Subject: [PATCH 1/2] update rdkafka reference to version 6.0.0RC2 and fix + issue #99 + +--- + CHANGELOG-3.x.md | 1 + + .../extension/rdkafka/1/constants.json | 39 +++++++++++++++++-- + .../extension/rdkafka/6/releases.json | 7 ++++ + docs/appendix/SUPPORTED-VERSIONS_3.x.md | 1 + + 4 files changed, 45 insertions(+), 3 deletions(-) + +diff --git a/data/reference/extension/rdkafka/1/constants.json b/data/reference/extension/rdkafka/1/constants.json +index 0fe12201..f8adacab 100644 +--- a/data/reference/extension/rdkafka/1/constants.json ++++ b/data/reference/extension/rdkafka/1/constants.json +@@ -948,7 +948,18 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9" ++ "constraint": ">=0.9 && <1.3.0" ++ } ++ ] ++ }, ++ { ++ "name": "RD_KAFKA_RESP_ERR_COORDINATOR_LOAD_IN_PROGRESS", ++ "ext_min": "1.0.0", ++ "php_min": "5.3.0", ++ "dependencies": [ ++ { ++ "name": "librdkafka", ++ "constraint": ">=1.3.0RC1" + } + ] + }, +@@ -959,7 +970,18 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9" ++ "constraint": ">=0.9 && <1.3.0" ++ } ++ ] ++ }, ++ { ++ "name": "RD_KAFKA_RESP_ERR_COORDINATOR_NOT_AVAILABLE", ++ "ext_min": "1.0.0", ++ "php_min": "5.3.0", ++ "dependencies": [ ++ { ++ "name": "librdkafka", ++ "constraint": ">=1.3.0RC1" + } + ] + }, +@@ -970,7 +992,18 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9" ++ "constraint": ">=0.9 && <1.3.0" ++ } ++ ] ++ }, ++ { ++ "name": "RD_KAFKA_RESP_ERR_NOT_COORDINATOR", ++ "ext_min": "1.0.0", ++ "php_min": "5.3.0", ++ "dependencies": [ ++ { ++ "name": "librdkafka", ++ "constraint": ">=1.3.0RC1" + } + ] + }, +diff --git a/data/reference/extension/rdkafka/6/releases.json b/data/reference/extension/rdkafka/6/releases.json +index f2314a7f..bf2601d5 100644 +--- a/data/reference/extension/rdkafka/6/releases.json ++++ b/data/reference/extension/rdkafka/6/releases.json +@@ -5,5 +5,12 @@ + "rel_state": "beta", + "php_min": "7.0.0", + "php_max": "8.99.99" ++ }, ++ { ++ "rel_version": "6.0.0RC2", ++ "rel_date": "2021-11-27", ++ "rel_state": "beta", ++ "php_min": "7.0.0", ++ "php_max": "8.99.99" + } + ] +diff --git a/data/reference/extension/rdkafka/1/constants.json b/data/reference/extension/rdkafka/1/constants.json +index f8adacab..3de391a3 100644 +--- a/data/reference/extension/rdkafka/1/constants.json ++++ b/data/reference/extension/rdkafka/1/constants.json +@@ -948,7 +948,7 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9 && <1.3.0" ++ "constraint": ">=0.9 <1.3.0" + } + ] + }, +@@ -970,7 +970,7 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9 && <1.3.0" ++ "constraint": ">=0.9 <1.3.0" + } + ] + }, +@@ -992,7 +992,7 @@ + "dependencies": [ + { + "name": "librdkafka", +- "constraint": ">=0.9 && <1.3.0" ++ "constraint": ">=0.9 <1.3.0" + } + ] + }, diff --git a/php-bartlett-php-compatinfo-db.spec b/php-bartlett-php-compatinfo-db.spec index dd944c9..c10cd97 100644 --- a/php-bartlett-php-compatinfo-db.spec +++ b/php-bartlett-php-compatinfo-db.spec @@ -49,6 +49,7 @@ Patch0: %{name}-3.14-rpm.patch # - CURL_SSLVERSION constants # - Phar::OPENSSL_SHA* constants Patch1: %{name}-backports.patch +Patch2: %{name}-up.patch BuildArch: noarch BuildRequires: php(language) >= 7.3 @@ -165,6 +166,7 @@ standard distribution and about 110 extensions. %patch0 -p1 -b .rpm %patch1 -p1 -b .backports +%patch2 -p1 -b .up : relocate mv config src/config @@ -272,8 +274,6 @@ export DATABASE_URL=sqlite:///%{buildroot}%{_datadir}/%{name}/compatinfo.sqlite # https://github.com/llaville/php-compatinfo-db/issues/79 rm -rf tests/Reference/Extension/PhpPecl/Imagick -# https://github.com/llaville/php-compatinfo-db/issues/99 -rm -rf tests/Reference/Extension/PhpPecl/Rdkafka mkdir config cat << 'EOF' | tee config/bootstrap.php -- cgit