summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2019-07-27 14:53:44 +0300
committerMart Raudsepp <leio@gentoo.org>2019-07-28 09:42:02 +0300
commit27649a17ab88e3e80fff518d6f5517d006a41ca6 (patch)
tree05fffe3bc1ab4fea48a7cbfaf01513ca5bfffb2d
parentdev-libs/vala-common: bump to 0.44.6, EAPI7, drop legacy code (diff)
downloadgentoo-27649a17ab88e3e80fff518d6f5517d006a41ca6.tar.gz
gentoo-27649a17ab88e3e80fff518d6f5517d006a41ca6.tar.bz2
gentoo-27649a17ab88e3e80fff518d6f5517d006a41ca6.zip
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 <leio@gentoo.org>
-rw-r--r--dev-libs/folks/files/0.11.4-vala-0.42-tests-compat.patch39
-rw-r--r--dev-libs/folks/folks-0.11.4-r1.ebuild1
2 files changed, 40 insertions, 0 deletions
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 <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
+
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() {