fix-ftbfs-vte_terminal_fork_command-is-deprecated.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Description: Fix FTBFS due to vte_terminal_fork_command being deprecated
  2. Fix "FTBFS: mssh-terminal.c:49:5: error: 'vte_terminal_fork_command'
  3. is deprecated (declared at /usr/include/vte-0.0/vte/vtedeprecated.h:82)
  4. [-Werror=deprecated-declarations]"
  5. Author: Michael Vogt <[email protected]>
  6. Origin: Ubuntu, https://launchpadlibrarian.net/79958381/mssh_1.2-1_1.2-1ubuntu1.diff.gz
  7. Bug-Debian: http://bugs.debian.org/634426
  8. Bug-Ubuntu: https://launchpad.net/bugs/756105
  9. Reviewed-By: gregor herrmann <[email protected]>
  10. Last-Update: 2011-11-02
  11. --- mssh-1.2.orig/src/mssh-terminal.c
  12. +++ mssh-1.2/src/mssh-terminal.c
  13. @@ -40,14 +40,23 @@ void mssh_terminal_init_session(MSSHTerm
  14. void mssh_terminal_start_session(MSSHTerminal *terminal, char **env)
  15. {
  16. + GError *error = NULL;
  17. char *args[3];
  18. args[0] = strdup("ssh");
  19. args[1] = terminal->hostname;
  20. args[2] = NULL;
  21. - vte_terminal_fork_command(VTE_TERMINAL(terminal), "ssh", args,
  22. - env, NULL, FALSE, FALSE, FALSE);
  23. + vte_terminal_fork_command_full(VTE_TERMINAL(terminal),
  24. + VTE_PTY_NO_LASTLOG|VTE_PTY_NO_UTMP|VTE_PTY_NO_WTMP,
  25. + NULL, /* working dir */
  26. + args,
  27. + env,
  28. + G_SPAWN_SEARCH_PATH,
  29. + NULL, /* child_setup */
  30. + NULL, /* child_setup_data */
  31. + NULL, /* *child_pid */
  32. + &error);
  33. free(args[0]);
  34. }