From 27649a17ab88e3e80fff518d6f5517d006a41ca6 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sat, 27 Jul 2019 14:53:44 +0300 Subject: [PATCH] dev-libs/folks: fix tests compilation with vala:0.42 Closes: https://bugs.gentoo.org/688964 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Mart Raudsepp --- .../files/0.11.4-vala-0.42-tests-compat.patch | 39 +++++++++++++++++++ dev-libs/folks/folks-0.11.4-r1.ebuild | 1 + 2 files changed, 40 insertions(+) create mode 100644 dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch diff --git a/dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch b/dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch new file mode 100644 index 000000000000..7b453ebf1a9f --- /dev/null +++ b/dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch @@ -0,0 +1,39 @@ +From 600e2d42e6097502ec0c42ab257d08fc0ca7933a Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Wed, 30 May 2018 14:20:27 +0200 +Subject: [PATCH] tests: Use FileAttribute.* enumeration + +--- + tests/folks/avatar-cache.vala | 2 +- + tests/folks/object-cache.vala | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/folks/avatar-cache.vala b/tests/folks/avatar-cache.vala +index d25245c0..ee32e9e4 100644 +--- a/tests/folks/avatar-cache.vala ++++ b/tests/folks/avatar-cache.vala +@@ -78,7 +78,7 @@ public class AvatarCacheTests : Folks.TestCase + { + // Delete the files in the directory + var enumerator = +- dir.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, ++ dir.enumerate_children (FileAttribute.STANDARD_NAME, + FileQueryInfoFlags.NONE); + + FileInfo? file_info = enumerator.next_file (); +diff --git a/tests/folks/object-cache.vala b/tests/folks/object-cache.vala +index 62d208e6..f2a5188d 100644 +--- a/tests/folks/object-cache.vala ++++ b/tests/folks/object-cache.vala +@@ -108,7 +108,7 @@ public class ObjectCacheTests : Folks.TestCase + { + // Delete the files in the directory + var enumerator = +- dir.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, ++ dir.enumerate_children (FileAttribute.STANDARD_NAME, + FileQueryInfoFlags.NONE); + + FileInfo? file_info = enumerator.next_file (); +-- +2.21.0 + diff --git a/dev-libs/folks/folks-0.11.4-r1.ebuild b/dev-libs/folks/folks-0.11.4-r1.ebuild index e3dd9684ea10..1634f53e928b 100644 --- a/dev-libs/folks/folks-0.11.4-r1.ebuild +++ b/dev-libs/folks/folks-0.11.4-r1.ebuild @@ -58,6 +58,7 @@ DEPEND="${COMMON_DEPEND} PATCHES=( "${FILESDIR}"/${PV}-vala-0.42-compat.patch + "${FILESDIR}"/${PV}-vala-0.42-tests-compat.patch ) src_prepare() { -- 2.26.2