diff --git a/evince-2.31.5-synctex.patch b/evince-2.31.5-synctex.patch deleted file mode 100644 index ad7a22e..0000000 --- a/evince-2.31.5-synctex.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- evince-2.31.5/cut-n-paste/synctex/synctex_parser.c 2010-06-27 16:49:01.000000000 +0200 -+++ evince-2.31.5/cut-n-paste/synctex/synctex_parser.c 2010-07-16 12:00:49.000000000 +0200 -@@ -2549,6 +2549,7 @@ int __synctex_open(const char * output, - char * quoteless = NULL; - const char * mode = synctex_io_modes[io_mode]; - size_t size = 0; -+ synctex_io_mode_t orig_io_mode = io_mode; - /* now create the synctex file name */ - size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1; - synctex_name = (char *)malloc(size); -@@ -2565,6 +2566,11 @@ return_on_error: - synctex_name = NULL;/* Don't forget to reinitialize. */ - the_file = NULL; /* Here as well */ - free(quoteless); -+ /* We _must_ restore the original mode. Otherwise, in -+ case it had been "r", later changed to "rb", the next -+ call might use "rb" and "w" and _create_ the file, if -+ the caller is not avare of the change! */ -+ io_mode = orig_io_mode; - return 2; - } - /* remove the last path extension if any */ diff --git a/evince.spec b/evince.spec index cd7bd96..3d4f598 100644 --- a/evince.spec +++ b/evince.spec @@ -14,8 +14,6 @@ URL: http://projects.gnome.org/evince/ Source0: http://download.gnome.org/sources/%{name}/2.31/%{name}-%{version}.tar.bz2 # https://bugzilla.redhat.com/show_bug.cgi?id=562648 Patch2: evince-t1font-mapping.patch -# https://bugzilla.redhat.com/show_bug.cgi?id=613916 -Patch3: evince-2.31.5-synctex.patch Patch4: evince-2.31.5-page-action-widget.patch @@ -109,7 +107,6 @@ It adds an additional tab called "Document" to the file properties dialog. %prep %setup -q %patch2 -p1 -b .t1font-map -%patch3 -p1 -b .synctex %patch4 -p1 -b .page-action-widget %build