7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
54 lines
2.3 KiB
Diff
54 lines
2.3 KiB
Diff
From b9e260840d03e33ac55142719f3d54129b54cc70 Mon Sep 17 00:00:00 2001
|
|
From: Debarshi Ray <debarshir@gnome.org>
|
|
Date: Mon, 26 Jan 2015 15:38:24 +0100
|
|
Subject: [PATCH] Port to vte-2.91 API
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=743537
|
|
---
|
|
configure.ac | 2 +-
|
|
plugins/giggle-view-terminal.c | 19 ++++++++++---------
|
|
2 files changed, 11 insertions(+), 10 deletions(-)
|
|
|
|
diff --git configure.ac configure.ac
|
|
index 6e27733..72e7bd1 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -106,7 +106,7 @@ AC_ARG_ENABLE([terminal],
|
|
AS_IF([test "x$enable_terminal" = "xyes"],
|
|
[
|
|
PKG_CHECK_MODULES([VTE],
|
|
- [vte-2.90 >= $VTE_REQUIRED_VERSION],
|
|
+ [vte-2.91 >= $VTE_REQUIRED_VERSION],
|
|
[have_vte=yes
|
|
AC_DEFINE([HAVE_VTE], [1],
|
|
[Use features from vte])
|
|
diff --git plugins/giggle-view-terminal.c plugins/giggle-view-terminal.c
|
|
index 06a9a50..cd107f2 100644
|
|
--- a/plugins/giggle-view-terminal.c
|
|
+++ b/plugins/giggle-view-terminal.c
|
|
@@ -186,15 +186,16 @@ giggle_view_terminal_append_tab (GiggleViewTerminal *view,
|
|
real_argv[1] = NULL;
|
|
spawn_flags = G_SPAWN_CHILD_INHERITS_STDIN | G_SPAWN_SEARCH_PATH | G_SPAWN_FILE_AND_ARGV_ZERO;
|
|
|
|
- succes = vte_terminal_fork_command_full (VTE_TERMINAL (terminal),
|
|
- pty_flags,
|
|
- directory,
|
|
- real_argv,
|
|
- NULL,
|
|
- spawn_flags,
|
|
- NULL, NULL,
|
|
- NULL,
|
|
- &error);
|
|
+ succes = vte_terminal_spawn_sync (VTE_TERMINAL (terminal),
|
|
+ pty_flags,
|
|
+ directory,
|
|
+ real_argv,
|
|
+ NULL,
|
|
+ spawn_flags,
|
|
+ NULL, NULL,
|
|
+ NULL,
|
|
+ NULL,
|
|
+ &error);
|
|
g_strfreev (real_argv);
|
|
|
|
if (succes == FALSE) {
|