Hello community,

here is the log from the commit of package vte2 for openSUSE:Factory checked in 
at 2016-09-20 13:27:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vte2 (Old)
 and      /work/SRC/openSUSE:Factory/.vte2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vte2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/vte2/vte2.changes        2016-06-02 
09:39:35.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.vte2.new/vte2.changes   2016-09-20 
13:27:58.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Sep 14 10:39:05 UTC 2016 - devel...@develop7.info
+
+- add vte-0.28.2-paste-fix.patch: fixes adding extra characters
+  when pasting to terminal (rh#1114301 bgo#729533 deb#734571).
+
+-------------------------------------------------------------------

New:
----
  vte-0.28.2-paste-fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vte2.spec ++++++
--- /var/tmp/diff_new_pack.QNSnoJ/_old  2016-09-20 13:27:59.000000000 +0200
+++ /var/tmp/diff_new_pack.QNSnoJ/_new  2016-09-20 13:27:59.000000000 +0200
@@ -35,6 +35,8 @@
 Patch0:         vte-keymaps.patch
 # PATCH-FIX-UPSTREAM vte-CVE-2012-2738.patch bnc#772761 bgo#676090 
CVE-2012-2738 vu...@opensuse.org -- malicious escape sequences can cause denial 
of service, taken from git
 Patch1:         vte-CVE-2012-2738.patch
+# PATCH-FIX-UPSTREAM vte-0.28.2-paste-fix.patch bgo#729533 rh#1114301 
devel...@develop7.info -- Bracketed paste should be per-terminal, not per screen
+Patch2:         vte-0.28.2-paste-fix.patch
 BuildRequires:  fdupes
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  gtk2-devel
@@ -137,6 +139,7 @@
 %setup -q -n %{_name}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 translation-update-upstream
 
 %build

++++++ vte-0.28.2-paste-fix.patch ++++++
>From ede5726a45cd97f212622b59c162ec8b07b09dd4 Mon Sep 17 00:00:00 2001
From: Kevin Fenzi <ke...@scrye.com>
Date: Sun, 29 Jun 2014 13:14:30 -0600
Subject: Add patch to fix bracketed paste. Fixes bug #1114301
References: rh#1114301 bgo#729533 deb#734571
Upstream: dead

Fixes adding extra characters when pasting to terminal

---
 vte-0.28.2-paste-fix.diff | 71 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 71 insertions(+), 0 deletions(-)
 create mode 100644 vte-0.28.2-paste-fix.diff

diff --git a/vte-0.28.2-paste-fix.diff b/vte-0.28.2-paste-fix.diff
new file mode 100644
index 0000000..cc51ead
--- /dev/null
+++ b/vte-0.28.2-paste-fix.diff
@@ -0,0 +1,71 @@
+diff -ur vte-0.28.2.orig/src/vte.c vte-0.28.2/src/vte.c
+--- vte-0.28.2.orig/src/vte.c  2011-08-29 00:31:45.000000000 +0300
++++ vte-0.28.2/src/vte.c       2014-06-26 04:20:52.409371214 +0300
+@@ -5806,10 +5806,10 @@
+                               p++;
+                       }
+               }
+-              if (terminal->pvt->screen->bracketed_paste_mode)
++              if (terminal->pvt->bracketed_paste_mode)
+                       vte_terminal_feed_child(terminal, "\e[200~", -1);
+               vte_terminal_feed_child(terminal, paste, length);
+-              if (terminal->pvt->screen->bracketed_paste_mode)
++              if (terminal->pvt->bracketed_paste_mode)
+                       vte_terminal_feed_child(terminal, "\e[201~", -1);
+               g_free(paste);
+       }
+@@ -14065,14 +14065,12 @@
+       pvt->normal_screen.linefeed_mode = FALSE;
+       pvt->normal_screen.origin_mode = FALSE;
+       pvt->normal_screen.reverse_mode = FALSE;
+-      pvt->normal_screen.bracketed_paste_mode = FALSE;
+       pvt->alternate_screen.scrolling_restricted = FALSE;
+       pvt->alternate_screen.sendrecv_mode = TRUE;
+       pvt->alternate_screen.insert_mode = FALSE;
+       pvt->alternate_screen.linefeed_mode = FALSE;
+       pvt->alternate_screen.origin_mode = FALSE;
+       pvt->alternate_screen.reverse_mode = FALSE;
+-      pvt->alternate_screen.bracketed_paste_mode = FALSE;
+       pvt->cursor_visible = TRUE;
+       /* Reset the encoding. */
+       vte_terminal_set_encoding(terminal, NULL);
+@@ -14102,6 +14100,8 @@
+       pvt->mouse_last_y = 0;
+       /* Clear modifiers. */
+       pvt->modifiers = 0;
++      /* Reset miscellaneous stuff. */
++      pvt->bracketed_paste_mode = FALSE;
+       /* Cause everything to be redrawn (or cleared). */
+       vte_terminal_maybe_scroll_to_bottom(terminal);
+       _vte_invalidate_all(terminal);
+diff -ur vte-0.28.2.orig/src/vte-private.h vte-0.28.2/src/vte-private.h
+--- vte-0.28.2.orig/src/vte-private.h  2011-08-17 00:52:48.000000000 +0300
++++ vte-0.28.2/src/vte-private.h       2014-06-26 04:20:52.410371214 +0300
+@@ -219,7 +219,6 @@
+               gboolean sendrecv_mode; /* sendrecv mode */
+               gboolean insert_mode;   /* insert mode */
+               gboolean linefeed_mode; /* linefeed mode */
+-              gboolean bracketed_paste_mode;
+               struct vte_scrolling_region {
+                       int start, end;
+               } scrolling_region;     /* the region we scroll in */
+@@ -274,6 +273,7 @@
+       gboolean text_modified_flag;
+       gboolean text_inserted_flag;
+       gboolean text_deleted_flag;
++      gboolean bracketed_paste_mode;
+ 
+       /* Scrolling options. */
+       gboolean scroll_background;
+diff -ur vte-0.28.2.orig/src/vteseq.c vte-0.28.2/src/vteseq.c
+--- vte-0.28.2.orig/src/vteseq.c       2014-06-26 04:08:49.998358634 +0300
++++ vte-0.28.2/src/vteseq.c    2014-06-26 04:34:00.214384933 +0300
+@@ -737,7 +737,7 @@
+                GINT_TO_POINTER(TRUE),
+                NULL, NULL},
+               /* 2004: Bracketed paste mode. */
+-              {2004, &terminal->pvt->screen->bracketed_paste_mode, NULL, NULL,
++              {2004, &terminal->pvt->bracketed_paste_mode, NULL, NULL,
+                GINT_TO_POINTER(FALSE),
+                GINT_TO_POINTER(TRUE),
+                NULL, NULL,},
cgit v0.12


Reply via email to