From 48e4aa72605968748a5015cec91d7b9a3a9ef98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 3 Apr 2020 23:59:35 +0700 Subject: [PATCH] deepin-terminal: fix build with vte3 0.60 https://github.com/linuxdeepin/deepin-terminal/pull/221 --- srcpkgs/deepin-terminal/template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/srcpkgs/deepin-terminal/template b/srcpkgs/deepin-terminal/template index e1dc0494ddc..57feb0bd3f8 100644 --- a/srcpkgs/deepin-terminal/template +++ b/srcpkgs/deepin-terminal/template @@ -1,7 +1,7 @@ # Template file for 'deepin-terminal' pkgname=deepin-terminal version=5.0.0 -revision=1 +revision=2 build_style=cmake configure_args="-DTEST_BUILD=OFF -DUSE_VENDOR_LIB=OFF" hostmakedepends="glib-devel gobject-introspection gperf intltool pkg-config @@ -21,3 +21,12 @@ nocross=yes case $XBPS_TARGET_MACHINE in *-musl) CFLAGS="-DREG_NOERROR=REG_OK" esac + +post_patch() { + # latest vala string#to_utf8() return char[] + # but term.feed_child expects "unowned uint8[]" + vsed -i 's/[.]to_utf8()/.data/g' \ + widget/command_panel.vala \ + widget/terminal.vala \ + widget/workspace.vala +}