dev-libs/folks: fix tests compilation with vala:0.42
authorMart Raudsepp <leio@gentoo.org>
Sat, 27 Jul 2019 11:53:44 +0000 (14:53 +0300)
committerMart Raudsepp <leio@gentoo.org>
Sun, 28 Jul 2019 06:42:02 +0000 (09:42 +0300)
Closes: https://bugs.gentoo.org/688964
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch [new file with mode: 0644]
dev-libs/folks/folks-0.11.4-r1.ebuild

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 (file)
index 0000000..7b453eb
--- /dev/null
@@ -0,0 +1,39 @@
+From 600e2d42e6097502ec0c42ab257d08fc0ca7933a Mon Sep 17 00:00:00 2001
+From: Rico Tzschichholz <ricotz@ubuntu.com>
+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
+
index e3dd9684ea102b1c712826385628401ca0427c8c..1634f53e928bc61852d367ea9e1d28fe07ae7f65 100644 (file)
@@ -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() {