From ecaecc488db80408e4641b8d8d7940a10f40abde Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 14 Apr 2017 09:08:34 +0200 Subject: [PATCH] valabind: rebuild with vala-0.36 --- srcpkgs/valabind/patches/fix-vala-0.36.patch | 36 ++++++++++++++++++++ srcpkgs/valabind/template | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/valabind/patches/fix-vala-0.36.patch diff --git a/srcpkgs/valabind/patches/fix-vala-0.36.patch b/srcpkgs/valabind/patches/fix-vala-0.36.patch new file mode 100644 index 00000000000..a906fc3776a --- /dev/null +++ b/srcpkgs/valabind/patches/fix-vala-0.36.patch @@ -0,0 +1,36 @@ +From f23ff9421c1875d18b1e558596557009b45faa19 Mon Sep 17 00:00:00 2001 +From: pancake +Date: Thu, 9 Feb 2017 10:21:16 +0100 +Subject: [PATCH] Fix build for Vala-git (future 0.36) + +--- + cxxwriter.vala | 2 +- + dlangwriter.vala | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git cxxwriter.vala cxxwriter.vala +index cca65fe..890e085 100644 +--- cxxwriter.vala ++++ cxxwriter.vala +@@ -157,7 +157,7 @@ public class CxxWriter : ValabindWriter { + } + + public void walk_field (Field f) { +- if (f.get_ctype () == null) { ++ if (f.get_attribute_string ("CCode", "type") == null) { + //warning ( + // "Cannot resolve type for field '%s'".printf (f.get_cname ())); + } else { +diff --git dlangwriter.vala dlangwriter.vala +index 8d42676..898d3ca 100644 +--- dlangwriter.vala ++++ dlangwriter.vala +@@ -167,7 +167,7 @@ public class DlangWriter : ValabindWriter { + } + + public void walk_field (Field f) { +- if (f.get_ctype () == null) { ++ if (f.get_attribute_string ("CCode", "type") == null) { + //warning ( + // "Cannot resolve type for field '%s'".printf (f.get_cname ())); + } else { diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template index 33856eae9f8..e9adf892ab2 100644 --- a/srcpkgs/valabind/template +++ b/srcpkgs/valabind/template @@ -1,7 +1,7 @@ # Template file for 'valabind' pkgname=valabind version=0.10.0 -revision=1 +revision=2 build_style=gnu-makefile hostmakedepends="pkg-config vala-devel" makedepends="vala-devel glib-devel"