From 6a7459b782d453087d39147b99862e46ee6a57e6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 20 Apr 2022 09:06:08 +0200 Subject: update to 2.12.0 raise dependency on doctrine/persistence 2.4 and allow 3 raise dependency on doctrine/lexer 1.2.3 --- composer.json | 7 ++++--- php-doctrine-orm-bin.patch | 22 ++++++++++++---------- php-doctrine-orm-version.patch | 2 +- php-doctrine-orm.spec | 41 +++++++++++++++++++++++++++++++---------- 4 files changed, 48 insertions(+), 24 deletions(-) diff --git a/composer.json b/composer.json index 13f38a4..aac8c14 100644 --- a/composer.json +++ b/composer.json @@ -31,12 +31,12 @@ "doctrine/event-manager": "^1.1", "doctrine/inflector": "^1.4 || ^2.0", "doctrine/instantiator": "^1.3", - "doctrine/lexer": "^1.0", - "doctrine/persistence": "^2.2", + "doctrine/lexer": "^1.2.3", + "doctrine/persistence": "^2.4 || ^3", "psr/cache": "^1 || ^2 || ^3", "symfony/console": "^3.0 || ^4.0 || ^5.0 || ^6.0", "symfony/polyfill-php72": "^1.23", - "symfony/polyfill-php80": "^1.15" + "symfony/polyfill-php80": "^1.16" }, "require-dev": { "doctrine/annotations": "^1.13", @@ -44,6 +44,7 @@ "phpbench/phpbench": "^0.16.10 || ^1.0", "phpstan/phpstan": "~1.4.10 || 1.5.0", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "psr/log": "^1 || ^2 || ^3", "squizlabs/php_codesniffer": "3.6.2", "symfony/cache": "^4.4 || ^5.4 || ^6.0", "symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0", diff --git a/php-doctrine-orm-bin.patch b/php-doctrine-orm-bin.patch index f775e0c..13d55fb 100644 --- a/php-doctrine-orm-bin.patch +++ b/php-doctrine-orm-bin.patch @@ -1,12 +1,14 @@ diff -up ./bin/doctrine.php.rpm1 ./bin/doctrine.php ---- ./bin/doctrine.php.rpm1 2021-10-04 09:50:51.000000000 +0200 -+++ ./bin/doctrine.php 2021-10-04 10:01:30.938203159 +0200 -@@ -1,19 +1,10 @@ +--- ./bin/doctrine.php.rpm1 2022-04-20 08:53:37.075738715 +0200 ++++ ./bin/doctrine.php 2022-04-20 08:55:11.484503176 +0200 +@@ -1,3 +1,4 @@ +#!/usr/bin/env php = %{symfony_min_ver} BuildRequires: (php-composer(symfony/cache) >= %{sym_cache_min_ver} with php-composer(symfony/cache) < %{sym_cache_max_ver}) BuildRequires: (php-composer(symfony/polyfill-php80) >= %{sym_poly_min_ver} with php-composer(symfony/polyfill-php80) < %{sym_poly_max_ver}) BuildRequires: (php-composer(psr/cache) >= %{psr_cache_min_ver} with php-composer(psr/cache) < %{psr_cache_max_ver}) -# remirepo:32 +BuildRequires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver}) +# remirepo:34 %else BuildRequires: php-doctrine-annotations >= %{annotations_min_ver} BuildRequires: php-composer(doctrine/cache) < %{cache_max_ver} @@ -148,6 +152,8 @@ BuildRequires: php-composer(symfony/polyfill-php80) < %{sym_poly_max_ver} BuildRequires: php-composer(symfony/polyfill-php80) >= %{sym_poly_min_ver} BuildRequires: php-composer(psr/cache) < %{psr_cache_max_ver} BuildRequires: php-composer(psr/cache) >= %{psr_cache_min_ver} +BuildRequires: php-composer(psr/log) < %{psr_log_max_ver} +BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver} %endif %global phpunit %{_bindir}/phpunit9 BuildRequires: phpunit9 >= 9.4 @@ -290,7 +296,10 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Doctrine\\ORM\\', __DIR__); \Fedora\Autoloader\Dependencies::required([ - '%{phpdir}/Doctrine/Persistence2/autoload.php', + [ + '%{phpdir}/Doctrine/Persistence3/autoload.php', + '%{phpdir}/Doctrine/Persistence2/autoload.php', + ], '%{phpdir}/Doctrine/Common/Annotations/autoload.php', '%{phpdir}/Doctrine/Common3/autoload.php', [ @@ -361,6 +370,10 @@ cat > bootstrap.php <<'BOOTSTRAP' require_once '%{buildroot}%{phpdir}/Doctrine/ORM/autoload.php'; \Fedora\Autoloader\Dependencies::required([ [ + '%{phpdir}/Psr/Log3/autoload.php', + '%{phpdir}/Psr/Log2/autoload.php', + '%{phpdir}/Psr/Log/autoload.php', + ], [ '%{phpdir}/Symfony6/Component/Cache/autoload.php', '%{phpdir}/Symfony5/Component/Cache/autoload.php', '%{phpdir}/Symfony4/Component/Cache/autoload.php', @@ -371,6 +384,9 @@ require_once '%{buildroot}%{phpdir}/Doctrine/ORM/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Performance\\', __DIR__.'/tests/Doctrine/Performance'); BOOTSTRAP +# test failing only in mock +rm tests/Doctrine/Tests/ORM/Functional/Ticket/DDC742Test.php + : Upstream tests RETURN_CODE=0 for CMDARG in "php %{phpunit}" php74 php80 php81; do @@ -400,6 +416,11 @@ exit $RETURN_CODE %changelog +* Wed Apr 20 2022 Remi Collet - 2.12.0-1 +- update to 2.12.0 +- raise dependency on doctrine/persistence 2.4 and allow 3 +- raise dependency on doctrine/lexer 1.2.3 + * Wed Apr 20 2022 Remi Collet - 2.11.3-1 - update to 2.11.3 -- cgit