summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-05-04 07:43:22 +0200
committerRemi Collet <remi@php.net>2025-05-04 07:43:22 +0200
commit9d1ee94f1ed50578f349fe0ff8e50c778145b576 (patch)
treeb105c77de6cbcd3ffcc61e5d9133f66b144247fe /php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
parent53d39d40ecdbcd68fd26986b14d82a7caa780332 (diff)
update to 7.2.3
re-license spec file to CECILL-2.1 always build with composer-generators update bundled bartlett/php-compatinfo-db to 6.16.0
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch')
-rw-r--r--php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch b/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
new file mode 100644
index 0000000..a6a4931
--- /dev/null
+++ b/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
@@ -0,0 +1,14 @@
+diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
+--- ./bin/phpcompatinfo.rpm 2025-05-04 07:31:28.259594805 +0200
++++ ./bin/phpcompatinfo 2025-05-04 07:32:09.736421056 +0200
+@@ -15,6 +15,10 @@ if (PHP_SAPI !== 'cli') {
+ return;
+ }
+
++if (!getenv("DATABASE_URL")) {
++ putenv("DATABASE_URL=sqlite:///" . dirname(__DIR__) . "/data/compatinfo-db.sqlite");
++}
++
+ gc_disable(); // performance boost
+
+ require_once dirname(__DIR__) . '/autoload.php';