1 |
commit: 1933c9054cf50c4ec55fe412cfa606ea64482ac2 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 4 12:26:09 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 12:27:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1933c905 |
7 |
|
8 |
dev-php/symfony-finder: new version 3.2.8. |
9 |
|
10 |
This new version enables the test suite, after patching out a problem |
11 |
test: it tries to sort files by their atime, and that obviously fails |
12 |
if your filesystem is mounted noatime. After skipping that test, the |
13 |
suite passes, so I've removed the RESTRICT=test that was in place. |
14 |
|
15 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
16 |
|
17 |
dev-php/symfony-finder/Manifest | 2 +- |
18 |
.../files/skip-file-time-sort-tests.patch | 24 ++++++++++++++++++++++ |
19 |
...er-3.2.6.ebuild => symfony-finder-3.2.8.ebuild} | 22 ++++++++------------ |
20 |
3 files changed, 34 insertions(+), 14 deletions(-) |
21 |
|
22 |
diff --git a/dev-php/symfony-finder/Manifest b/dev-php/symfony-finder/Manifest |
23 |
index 4fdddba084a..65d8cd2fa01 100644 |
24 |
--- a/dev-php/symfony-finder/Manifest |
25 |
+++ b/dev-php/symfony-finder/Manifest |
26 |
@@ -1 +1 @@ |
27 |
-DIST symfony-finder-3.2.6.tar.gz 24432 SHA256 410e46ac676d532608a8e29885e4066c4108a970f6e03e0ff80155706ac06580 SHA512 ffcff1ff1ae09b7a8a02cade82f97f4e634e24a8d1466d05e1940682be712e9bf58f5df511d650a791d2a564bb1f3fa7fdbcee8f5c5206cda398102b3355546d WHIRLPOOL dd4fa1740d6deb320d334433cfafd3af3b089c3cdc1d62bddf73d20f0e773137ddf86643413ed0e2cf7ba86d04cabfc4a5e1aa08caa4bf7e60e7616191c57aaf |
28 |
+DIST symfony-finder-3.2.8.tar.gz 24452 SHA256 57d9e3380558188719a6ed6a6767f41feacc0e08935e94ca7469abdbc7d68837 SHA512 7eff457c6c70bf58b4af7e9adbeeb68a1ad684b95510d929f137545be6b755ece37949687f4de27c7fb4d5f208e30c6b0b3a32a804f7a6a6b8ed0d4ed7dfd9cd WHIRLPOOL 0733e6c28a408fb410006bf8edf2f03f1d32a9cece384e11a830f11910e53e92559efe10aff626e2207e42199d4b057b20ef927be3f7e4bf5774b824a087c9db |
29 |
|
30 |
diff --git a/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..d0ee130b4e7 |
33 |
--- /dev/null |
34 |
+++ b/dev-php/symfony-finder/files/skip-file-time-sort-tests.patch |
35 |
@@ -0,0 +1,24 @@ |
36 |
+There's one set of tests that tries to sort an array of files by their |
37 |
+access and modification times, and that doesn't work if your filesystem |
38 |
+is mounted with noatime (a lot of our users do that). |
39 |
+ |
40 |
+This should probably be fixed upstream, and has been reported here: |
41 |
+ |
42 |
+ https://github.com/symfony/symfony/issues/17489 |
43 |
+ |
44 |
+diff --git a/Tests/Iterator/SortableIteratorTest.php b/Tests/Iterator/SortableIteratorTest.php |
45 |
+index 4750f25..29d176a 100644 |
46 |
+--- a/Tests/Iterator/SortableIteratorTest.php |
47 |
++++ b/Tests/Iterator/SortableIteratorTest.php |
48 |
+@@ -62,10 +62,7 @@ class SortableIteratorTest extends RealIteratorTestCase |
49 |
+ || $mode === SortableIterator::SORT_BY_CHANGED_TIME |
50 |
+ || $mode === SortableIterator::SORT_BY_MODIFIED_TIME |
51 |
+ ) { |
52 |
+- if ('\\' === DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) { |
53 |
+- $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows'); |
54 |
+- } |
55 |
+- $this->assertOrderedIteratorForGroups($expected, $iterator); |
56 |
++ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo'); |
57 |
+ } else { |
58 |
+ $this->assertOrderedIterator($expected, $iterator); |
59 |
+ } |
60 |
|
61 |
diff --git a/dev-php/symfony-finder/symfony-finder-3.2.6.ebuild b/dev-php/symfony-finder/symfony-finder-3.2.8.ebuild |
62 |
similarity index 55% |
63 |
rename from dev-php/symfony-finder/symfony-finder-3.2.6.ebuild |
64 |
rename to dev-php/symfony-finder/symfony-finder-3.2.8.ebuild |
65 |
index bac77a1346b..50e82b6605c 100644 |
66 |
--- a/dev-php/symfony-finder/symfony-finder-3.2.6.ebuild |
67 |
+++ b/dev-php/symfony-finder/symfony-finder-3.2.8.ebuild |
68 |
@@ -11,33 +11,29 @@ LICENSE="MIT" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="test" |
72 |
-# 20170204-The test suite is broken in 3.1.10 on php-5.x |
73 |
-RESTRICT="test" |
74 |
|
75 |
-RDEPEND=" |
76 |
- dev-lang/php:* |
77 |
+RDEPEND="dev-lang/php:* |
78 |
dev-php/fedora-autoloader" |
79 |
-DEPEND=" |
80 |
- test? ( |
81 |
- ${RDEPEND} |
82 |
- dev-php/phpunit )" |
83 |
+DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )" |
84 |
|
85 |
S="${WORKDIR}/finder-${PV}" |
86 |
|
87 |
+PATCHES=( "${FILESDIR}/skip-file-time-sort-tests.patch" ) |
88 |
+ |
89 |
src_prepare() { |
90 |
default |
91 |
if use test; then |
92 |
- cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die |
93 |
+ cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die |
94 |
fi |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
insinto "/usr/share/php/Symfony/Component/Finder" |
99 |
- doins -r Comparator Exception Iterator Finder.php \ |
100 |
- Glob.php LICENSE SplFileInfo.php "${FILESDIR}"/autoload.php |
101 |
- dodoc README.md |
102 |
+ doins -r Comparator Exception Iterator |
103 |
+ doins *.php "${FILESDIR}"/autoload.php |
104 |
+ dodoc CHANGELOG.md README.md |
105 |
} |
106 |
|
107 |
src_test() { |
108 |
- phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" |
109 |
+ phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed' |
110 |
} |