dev-php/symfony-finder: bump to v3.4.28
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 18 Jul 2019 12:29:14 +0000 (14:29 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 18 Jul 2019 13:01:23 +0000 (15:01 +0200)
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
dev-php/symfony-finder/Manifest
dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch [new file with mode: 0644]
dev-php/symfony-finder/symfony-finder-3.4.28.ebuild [new file with mode: 0644]

index e4bdaa66b7f9b013e1b2660255c4feecd91e266e..77527123b73bbadb8f2b25d9048ca6714b827904 100644 (file)
@@ -1 +1,2 @@
 DIST symfony-finder-3.2.8.tar.gz 24452 BLAKE2B eed88ea672381fa3a0fef9390109fa7b89b8de87f4e0174fcb24c009044818b7c56846eec0b3240eed1c05fe7d682713fdd41c84e5d766cc2632e5576b38b741 SHA512 7eff457c6c70bf58b4af7e9adbeeb68a1ad684b95510d929f137545be6b755ece37949687f4de27c7fb4d5f208e30c6b0b3a32a804f7a6a6b8ed0d4ed7dfd9cd
+DIST symfony-finder-3.4.28.tar.gz 25618 BLAKE2B 592a10a5e8d7f1782242d79bc11ebfde6d528025a65bb18d5c36b238c418a3df10e637a285d0859bb79ab152aafdad5d61d32396efed6f6fe0e800aff03fae69 SHA512 5b1754e47eb484fddfb1d29f181efaabb371e62c2afe5c7c1d0552ac82de81aff0fbc6594498b859b64cd34cf35e57cf29110d59e5f376263f1b136a4d184b69
diff --git a/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch
new file mode 100644 (file)
index 0000000..25729f8
--- /dev/null
@@ -0,0 +1,20 @@
+There's one set of tests that tries to sort an array of files by their
+access and modification times, and that doesn't work if your filesystem
+is mounted with noatime (a lot of our users do that).
+
+This should probably be fixed upstream, and has been reported here:
+
+https://github.com/symfony/symfony/issues/17489
+
+--- a/Tests/Iterator/SortableIteratorTest.php
++++ b/Tests/Iterator/SortableIteratorTest.php
+@@ -65,7 +65,8 @@ class SortableIteratorTest extends RealIteratorTestCase
+             if ('\\' === \DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) {
+                 $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows');
+             }
+-            $this->assertOrderedIteratorForGroups($expected, $iterator);
++            // $this->assertOrderedIteratorForGroups($expected, $iterator);
++            $this->markTestSkipped('Sorting by time is failure-prone on Gentoo');
+         } else {
+             $this->assertOrderedIterator($expected, $iterator);
+         }
diff --git a/dev-php/symfony-finder/symfony-finder-3.4.28.ebuild b/dev-php/symfony-finder/symfony-finder-3.4.28.ebuild
new file mode 100644 (file)
index 0000000..40b3be0
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Symfony Finder Component"
+HOMEPAGE="https://github.com/symfony/finder"
+SRC_URI="https://github.com/symfony/finder/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-lang/php:*
+       dev-php/fedora-autoloader"
+DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )"
+
+S="${WORKDIR}/finder-${PV}"
+
+PATCHES=( "${FILESDIR}"/${PN}-3.4.28-skip-file-time-sort-tests.patch )
+
+src_prepare() {
+       default
+       if use test; then
+               cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die
+       fi
+}
+
+src_install() {
+       insinto "/usr/share/php/Symfony/Component/Finder"
+       doins -r Comparator Exception Iterator
+       doins *.php "${FILESDIR}"/autoload.php
+       dodoc CHANGELOG.md README.md
+}
+
+src_test() {
+       phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed'
+}