diff -Nru gummi-0.6.6/debian/changelog gummi-0.6.6/debian/changelog --- gummi-0.6.6/debian/changelog 2017-08-29 09:50:27.000000000 +0000 +++ gummi-0.6.6/debian/changelog 2018-05-03 18:14:43.000000000 +0000 @@ -1,3 +1,9 @@ +gummi (0.6.6-4+rpi1) buster-staging; urgency=medium + + * Add patch for synctex2. + + -- Peter Michael Green Thu, 03 May 2018 18:14:43 +0000 + gummi (0.6.6-4) unstable; urgency=medium * Upload to unstable. diff -Nru gummi-0.6.6/debian/patches/series gummi-0.6.6/debian/patches/series --- gummi-0.6.6/debian/patches/series 2017-08-29 09:50:27.000000000 +0000 +++ gummi-0.6.6/debian/patches/series 2018-05-03 18:14:43.000000000 +0000 @@ -1 +1,2 @@ use-system-synctex.patch +synctex2.patch diff -Nru gummi-0.6.6/debian/patches/synctex2.patch gummi-0.6.6/debian/patches/synctex2.patch --- gummi-0.6.6/debian/patches/synctex2.patch 1970-01-01 00:00:00.000000000 +0000 +++ gummi-0.6.6/debian/patches/synctex2.patch 2018-05-03 18:14:31.000000000 +0000 @@ -0,0 +1,48 @@ +Patch by Sebastian Ramacher taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896566 +Index: gummi-0.6.6/src/gui/gui-preview.c +=================================================================== +--- gummi-0.6.6.orig/src/gui/gui-preview.c ++++ gummi-0.6.6/src/gui/gui-preview.c +@@ -1041,18 +1041,18 @@ static gboolean synctex_run_parser(GuPre + gint column = gtk_text_iter_get_line_offset(sync_to); + slog(L_DEBUG, "Syncing to %s, line %i, column %i\n", tex_file, line, column); + +- synctex_scanner_t sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1); ++ synctex_scanner_p sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1); + + synctex_clear_sync_nodes(pc); + +- if(synctex_display_query(sync_scanner, tex_file, line, column)>0) { +- synctex_node_t node; ++ if(synctex_display_query(sync_scanner, tex_file, line, column, -1)>0) { ++ synctex_node_p node; + /* + * SyncTeX can return several nodes. It seems best to use the last one, as + * this one rarely is below (usually slighly above) the edited line. + */ + +- while ((node = synctex_next_result(sync_scanner))) { ++ while ((node = synctex_scanner_next_result(sync_scanner))) { + + SyncNode *sn = g_new0(SyncNode, 1); + +@@ -2038,16 +2038,16 @@ gboolean on_button_pressed(GtkWidget* w, + + slog(L_DEBUG, "Ctrl-click to %i, %i\n", x, y); + +- synctex_scanner_t sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1); ++ synctex_scanner_p sync_scanner = synctex_scanner_new_with_output_file(pc->uri, C_TMPDIR, 1); + + if(synctex_edit_query(sync_scanner, page+1, x/pc->scale, y/pc->scale)>0) { +- synctex_node_t node; ++ synctex_node_p node; + /* + * SyncTeX can return several nodes. It seems best to use the last one, as + * this one rarely is below (usually slighly above) the edited line. + */ + +- if ((node = synctex_next_result(sync_scanner))) { ++ if ((node = synctex_scanner_next_result(sync_scanner))) { + + const gchar *file = synctex_scanner_get_name(sync_scanner, synctex_node_tag(node)); + gint line = synctex_node_line(node);