summaryrefslogtreecommitdiffstats
path: root/php-sabre-vobject-bin.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-30 13:38:49 +0100
committerRemi Collet <remi@remirepo.net>2017-10-30 13:38:49 +0100
commit70e60058a0317e4986157c80a42d33f0b0948ef4 (patch)
treef95c562b9b2c6b7c9328f3f7abf3663f3ab82b21 /php-sabre-vobject-bin.patch
parent847213bcd30c771ec19584d83144ade3c2980ac7 (diff)
fix FTBFS fro mKoschei, add patch for test from https://github.com/sabre-io/vobject/pull/395
sources from https://github.com/sabre-io/vobject/pull/395
Diffstat (limited to 'php-sabre-vobject-bin.patch')
-rw-r--r--php-sabre-vobject-bin.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/php-sabre-vobject-bin.patch b/php-sabre-vobject-bin.patch
new file mode 100644
index 0000000..60b7f9a
--- /dev/null
+++ b/php-sabre-vobject-bin.patch
@@ -0,0 +1,56 @@
+diff -up ./bin/generate_vcards.rpm ./bin/generate_vcards
+--- ./bin/generate_vcards.rpm 2015-07-20 15:36:00.466610252 +0200
++++ ./bin/generate_vcards 2015-07-20 15:36:24.434738474 +0200
+@@ -6,8 +6,7 @@ namespace Sabre\VObject;
+ // This sucks.. we have to try to find the composer autoloader. But chances
+ // are, we can't find it this way. So we'll do our bestest
+ $paths = array(
+- __DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
+- __DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
++ '/usr/share/php/Sabre/VObject/autoload.php', // RPM installation
+ );
+
+ foreach($paths as $path) {
+diff -up ./bin/vobject.rpm ./bin/vobject
+--- ./bin/vobject.rpm 2015-07-20 15:34:43.499198500 +0200
++++ ./bin/vobject 2015-07-20 15:36:20.645718203 +0200
+@@ -6,8 +6,7 @@ namespace Sabre\VObject;
+ // This sucks.. we have to try to find the composer autoloader. But chances
+ // are, we can't find it this way. So we'll do our bestest
+ $paths = array(
+- __DIR__ . '/../vendor/autoload.php', // In case vobject is cloned directly
+- __DIR__ . '/../../../autoload.php', // In case vobject is a composer dependency.
++ '/usr/share/php/Sabre/VObject/autoload.php', // RPM installation
+ );
+
+ foreach($paths as $path) {
+diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
+--- ./tests/bootstrap.php.rpm 2015-07-20 15:36:46.774857986 +0200
++++ ./tests/bootstrap.php 2015-07-20 15:40:20.007998716 +0200
+@@ -3,8 +3,7 @@
+ date_default_timezone_set('UTC');
+
+ $try = array(
+- __DIR__ . '/../vendor/autoload.php',
+- __DIR__ . '/../../../autoload.php',
++ '@BUILDROOT@/usr/share/php/Sabre/VObject/autoload.php', // RPM installation
+ );
+
+ foreach($try as $path) {
+@@ -14,8 +13,6 @@ foreach($try as $path) {
+ }
+ }
+
+-$autoLoader->addPsr4('Sabre\\VObject\\',__DIR__ . '/VObject');
+-
+ if (!defined('SABRE_TEMPDIR')) {
+ define('SABRE_TEMPDIR', __DIR__ . '/temp/');
+ }
+@@ -23,3 +21,7 @@ if (!defined('SABRE_TEMPDIR')) {
+ if (!file_exists(SABRE_TEMPDIR)) {
+ mkdir(SABRE_TEMPDIR);
+ }
++
++// Not catched by autoloader
++require_once __DIR__ . '/VObject/TestCase.php';
++require_once __DIR__ . '/VObject/ITip/BrokerTester.php';