1 |
commit: 7ed24384c15ebf3341039ee8953da37310c314ce |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 14:00:09 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 14:21:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed24384 |
7 |
|
8 |
dev-php/phpunit: new revision to fix missing autoload dependency. |
9 |
|
10 |
The sebastian-object-enumerator package is one of PHPUnit's |
11 |
dependencies and is listed in RDEPEND, but it was missing from the |
12 |
autoloader. This was causing test failures in packages that use the |
13 |
PHPUnit classes directly, but is easily fixed by adding another line |
14 |
to autoload.php. |
15 |
|
16 |
I've made a revision to ensure that users get the new autoload.php |
17 |
before we try to run any test suites. |
18 |
|
19 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
20 |
|
21 |
dev-php/phpunit/files/autoload.php | 37 ++++++++++++---------- |
22 |
...unit-5.7.15.ebuild => phpunit-5.7.15-r1.ebuild} | 0 |
23 |
2 files changed, 20 insertions(+), 17 deletions(-) |
24 |
|
25 |
diff --git a/dev-php/phpunit/files/autoload.php b/dev-php/phpunit/files/autoload.php |
26 |
index 69ffa07bab9..f33b4c8881a 100644 |
27 |
--- a/dev-php/phpunit/files/autoload.php |
28 |
+++ b/dev-php/phpunit/files/autoload.php |
29 |
@@ -1,8 +1,10 @@ |
30 |
<?php |
31 |
/* Autoloader for dev-php/phpunit and its dependencies */ |
32 |
|
33 |
+$include_dir = '/usr/share/php'; |
34 |
+ |
35 |
if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { |
36 |
- require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; |
37 |
+ require_once "${include_dir}/Fedora/Autoloader/autoload.php"; |
38 |
} |
39 |
|
40 |
\Fedora\Autoloader\Autoload::addClassMap( |
41 |
@@ -144,24 +146,25 @@ if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { |
42 |
'phpunit_util_type' => '/Util/Type.php', |
43 |
'phpunit_util_xml' => '/Util/XML.php', |
44 |
), |
45 |
- '/usr/share/php/PHPUnit' |
46 |
+ "${include_dir}/PHPUnit" |
47 |
); |
48 |
|
49 |
// Dependencies |
50 |
\Fedora\Autoloader\Dependencies::required(array( |
51 |
- '/usr/share/php/File/Iterator/autoload.php', |
52 |
- '/usr/share/php/PHP/CodeCoverage/autoload.php', |
53 |
- '/usr/share/php/PHP/Timer/autoload.php', |
54 |
- '/usr/share/php/SebastianBergmann/Version/autoload.php', |
55 |
- '/usr/share/php/SebastianBergmann/Diff/autoload.php', |
56 |
- '/usr/share/php/SebastianBergmann/Environment/autoload.php', |
57 |
- '/usr/share/php/SebastianBergmann/Exporter/autoload.php', |
58 |
- '/usr/share/php/SebastianBergmann/GlobalState/autoload.php', |
59 |
- '/usr/share/php/SebastianBergmann/Comparator/autoload.php', |
60 |
- '/usr/share/php/SebastianBergmann/ResourceOperations/autoload.php', |
61 |
- '/usr/share/php/Symfony/Component/Yaml/autoload.php', |
62 |
- '/usr/share/php/Text/Template/autoload.php', |
63 |
- '/usr/share/php/myclabs/DeepCopy/autoload.php', |
64 |
- '/usr/share/php/PHPUnit/Framework/MockObject/autoload.php', |
65 |
- '/usr/share/php/phpspec/Prophecy/autoload.php', |
66 |
+ "${include_dir}/File/Iterator/autoload.php", |
67 |
+ "${include_dir}/PHP/CodeCoverage/autoload.php", |
68 |
+ "${include_dir}/PHP/Timer/autoload.php", |
69 |
+ "${include_dir}/SebastianBergmann/Version/autoload.php", |
70 |
+ "${include_dir}/SebastianBergmann/Diff/autoload.php", |
71 |
+ "${include_dir}/SebastianBergmann/Environment/autoload.php", |
72 |
+ "${include_dir}/SebastianBergmann/Exporter/autoload.php", |
73 |
+ "${include_dir}/SebastianBergmann/GlobalState/autoload.php", |
74 |
+ "${include_dir}/SebastianBergmann/Comparator/autoload.php", |
75 |
+ "${include_dir}/SebastianBergmann/ObjectEnumerator/autoload.php", |
76 |
+ "${include_dir}/SebastianBergmann/ResourceOperations/autoload.php", |
77 |
+ "${include_dir}/Symfony/Component/Yaml/autoload.php", |
78 |
+ "${include_dir}/Text/Template/autoload.php", |
79 |
+ "${include_dir}/myclabs/DeepCopy/autoload.php", |
80 |
+ "${include_dir}/PHPUnit/Framework/MockObject/autoload.php", |
81 |
+ "${include_dir}/phpspec/Prophecy/autoload.php", |
82 |
)); |
83 |
|
84 |
diff --git a/dev-php/phpunit/phpunit-5.7.15.ebuild b/dev-php/phpunit/phpunit-5.7.15-r1.ebuild |
85 |
similarity index 100% |
86 |
rename from dev-php/phpunit/phpunit-5.7.15.ebuild |
87 |
rename to dev-php/phpunit/phpunit-5.7.15-r1.ebuild |