summaryrefslogtreecommitdiffstats
path: root/php-bartlett-php-compatinfo-db-1.19.0-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-01-04 09:21:12 +0100
committerRemi Collet <remi@remirepo.net>2019-01-04 09:21:12 +0100
commita75febd64858a98fd72b63206cd0d6822da50a35 (patch)
tree7f89fc5b4ba5a75fccb76fdbcbc9bd30427568d6 /php-bartlett-php-compatinfo-db-1.19.0-rpm.patch
parentd4eecf050c75fa9dcc087f1fc341a2462f1cdc83 (diff)
update to 2.0.0RC1
bump dependency on PHP 7.1 add dependency on symfony/console 3 or 4 add dependency on league/tactician add dependency on zendframework/zenddiagnostics add php-bartlett-php-compatinfo-db command
Diffstat (limited to 'php-bartlett-php-compatinfo-db-1.19.0-rpm.patch')
-rw-r--r--php-bartlett-php-compatinfo-db-1.19.0-rpm.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/php-bartlett-php-compatinfo-db-1.19.0-rpm.patch b/php-bartlett-php-compatinfo-db-1.19.0-rpm.patch
deleted file mode 100644
index 4aca8b8..0000000
--- a/php-bartlett-php-compatinfo-db-1.19.0-rpm.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff -up ./data/handleDB.php.rpm ./data/handleDB.php
---- ./data/handleDB.php.rpm 2017-07-17 13:41:26.000000000 +0200
-+++ ./data/handleDB.php 2017-07-17 20:24:00.271263969 +0200
-@@ -12,7 +12,8 @@
- * @since Release 1.0.0alpha1 of PHP_CompatInfo_Db
- */
-
--require_once dirname(__DIR__) . '/vendor/autoload.php';
-+require_once '/usr/share/php/Symfony3/Component/autoload.php';
-+require_once dirname(__DIR__) . '/src/Bartlett/CompatInfoDb/autoload.php';
- require_once __DIR__ . '/ReferenceCollection.php';
-
- use Bartlett\CompatInfoDb\ExtensionFactory;
-diff -up ./src/Bartlett/CompatInfoDb/Environment.php.rpm ./src/Bartlett/CompatInfoDb/Environment.php
---- ./src/Bartlett/CompatInfoDb/Environment.php.rpm 2017-07-17 20:24:00.271263969 +0200
-+++ ./src/Bartlett/CompatInfoDb/Environment.php 2017-07-17 20:31:52.645050200 +0200
-@@ -39,28 +39,13 @@ class Environment
- {
- $database = 'compatinfo.sqlite';
-
-- if (PATH_SEPARATOR == ';') {
-- // windows
-- $userHome = getenv('USERPROFILE');
-+ if (($db = getenv('BARTLETT_COMPATINFO_DB')) && file_exists($db)) {
-+ $tempDir = dirname($db);
-+ } else if (file_exists($db = '/usr/share/php-bartlett-php-compatinfo-db/' . $database)) {
-+ $tempDir = dirname($db);
- } else {
-- // unix
-- $userHome = getenv('HOME');
-- }
-- $tempDir = $userHome . '/.bartlett';
--
-- if (!file_exists($tempDir)) {
-- mkdir($tempDir);
-- }
-- $source = dirname(dirname(dirname(__DIR__))) . '/data/' . $database;
-- $dest = $tempDir . '/' . $database;
--
-- if (!file_exists($dest)
-- || sha1_file($source) !== sha1_file($dest)
-- ) {
-- // install DB only if necessary (missing or modified)
-- copy($source, $dest);
-- }
--
-+ $tempDir = dirname(dirname(dirname(__DIR__))) . '/data';
-+ }
- $pdo = new PDO('sqlite:' . $tempDir . '/' . $database);
- return $pdo;
- }
-diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
---- ./tests/bootstrap.php.rpm 2017-07-17 13:41:26.000000000 +0200
-+++ ./tests/bootstrap.php 2017-07-17 20:24:00.272263975 +0200
-@@ -1,6 +1,7 @@
- <?php
-
- $baseDir = dirname(__DIR__);
--$vendorDir = $baseDir . '/vendor';
-+$vendorDir = 'Bartlett/CompatInfoDb'; // tests use include_path
-
- require_once $vendorDir . '/autoload.php';
-+require_once __DIR__ . '/Reference/GenericTest.php';