Update to 3.1.1
New gedit-zeitgeist subpackage
This commit is contained in:
parent
c1c2a46469
commit
427dedcb78
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ gedit-2.31.6.tar.bz2
|
||||
/gedit-3.0.0.tar.bz2
|
||||
/gedit-3.0.1.tar.bz2
|
||||
/gedit-3.0.2.tar.bz2
|
||||
/gedit-3.1.1.tar.xz
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
From f8508ca201e7d16fa5e18a6130f456fdd3fc0c99 Mon Sep 17 00:00:00 2001
|
||||
From: Dan Williams <dcbw@redhat.com>
|
||||
Date: Wed, 25 May 2011 09:58:29 -0500
|
||||
Subject: [PATCH] Fix use-after-free during incremental search
|
||||
|
||||
Move the free right before the assignment to ensure that
|
||||
old_search_text is never left dangling and thus double-freed
|
||||
if init_search_entry() is called again.
|
||||
|
||||
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=651068
|
||||
---
|
||||
gedit/gedit-view-frame.c | 3 +--
|
||||
1 files changed, 1 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
|
||||
index 5826010..670b2b0 100644
|
||||
--- a/gedit/gedit-view-frame.c
|
||||
+++ b/gedit/gedit-view-frame.c
|
||||
@@ -1237,8 +1237,6 @@ init_search_entry (GeditViewFrame *frame)
|
||||
guint old_find_flags = 0;
|
||||
gint sel_len = 0;
|
||||
|
||||
- g_free (frame->priv->old_search_text);
|
||||
-
|
||||
old_find_text = gedit_document_get_search_text (GEDIT_DOCUMENT (buffer),
|
||||
&old_find_flags);
|
||||
|
||||
@@ -1260,6 +1258,7 @@ init_search_entry (GeditViewFrame *frame)
|
||||
}
|
||||
else if (old_find_text != NULL)
|
||||
{
|
||||
+ g_free (frame->priv->old_search_text);
|
||||
frame->priv->old_search_text = old_find_text;
|
||||
add_search_completion_entry (old_find_text);
|
||||
g_signal_handler_block (frame->priv->search_entry,
|
||||
--
|
||||
1.7.5.1
|
||||
|
||||
66
gedit.spec
66
gedit.spec
@ -1,4 +1,4 @@
|
||||
%define glib2_version 2.25.15
|
||||
%define glib2_version 2.28.0
|
||||
%define pygo_version 2.27
|
||||
%define desktop_file_utils_version 0.9
|
||||
%define gtksourceview_version 3.0.0
|
||||
@ -6,24 +6,23 @@
|
||||
%define enchant_version 1.2.0
|
||||
%define isocodes_version 0.35
|
||||
%define libpeas_version 0.7.3
|
||||
%define zeitgeist_version 0.3.2
|
||||
|
||||
Summary: Text editor for the GNOME desktop
|
||||
Name: gedit
|
||||
Epoch: 2
|
||||
Version: 3.0.2
|
||||
Release: 2%{?dist}
|
||||
Version: 3.1.1
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+ and GFDL
|
||||
Group: Applications/Editors
|
||||
#VCS: git:git://git.gnome.org/gedit
|
||||
Source0: http://download.gnome.org/sources/gedit/3.0/gedit-%{version}.tar.bz2
|
||||
Source0: http://download.gnome.org/sources/gedit/3.1/gedit-%{version}.tar.xz
|
||||
|
||||
URL: http://projects.gnome.org/gedit/
|
||||
|
||||
Requires(post): desktop-file-utils >= %{desktop_file_utils_version}
|
||||
Requires(postun): desktop-file-utils >= %{desktop_file_utils_version}
|
||||
|
||||
Patch0: 0001-Fix-use-after-free-during-incremental-search.patch
|
||||
|
||||
%ifarch ppc64,x86_64,ia64,s390x
|
||||
Patch1: gedit-2.13.90-libdir.patch
|
||||
%endif
|
||||
@ -56,6 +55,7 @@ Requires: pygobject2 >= %{pygo_version}
|
||||
# the run-command plugin uses zenity
|
||||
Requires: zenity
|
||||
Requires: gsettings-desktop-schemas
|
||||
Requires: gvfs
|
||||
|
||||
%description
|
||||
gedit is a small, but powerful text editor designed specifically for
|
||||
@ -83,11 +83,20 @@ to gedit.
|
||||
|
||||
Install gedit-devel if you want to write plugins for gedit.
|
||||
|
||||
%package zeitgeist
|
||||
Summary: Zeitgeist plugin for gedit
|
||||
Group: Applications/Editors
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: libzeitgeist-devel >= %{zeitgeist_version}
|
||||
|
||||
%description zeitgeist
|
||||
This packages brings the Zeitgeist dataprovider - a plugin that logs
|
||||
access and leave event for documents used with gedit.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n gedit-%{version} -q
|
||||
|
||||
%patch0 -p1 -b .search-double-free
|
||||
|
||||
%ifarch ppc64,x86_64,ia64,s390x
|
||||
%patch1 -p1 -b .libdir
|
||||
%endif
|
||||
@ -103,7 +112,8 @@ intltoolize -f
|
||||
--disable-gtk-doc \
|
||||
--enable-introspection=yes \
|
||||
--enable-python=yes \
|
||||
--disable-updater
|
||||
--disable-updater \
|
||||
--enable-gvfs-metadata
|
||||
make %{_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -138,15 +148,38 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-, root, root)
|
||||
%defattr(-, root, root, -)
|
||||
%doc README COPYING AUTHORS
|
||||
%{_datadir}/gedit
|
||||
%{_datadir}/applications/gedit.desktop
|
||||
%{_mandir}/man1/*
|
||||
%{_libdir}/gedit
|
||||
%{_libdir}/libgedit-private.so.*
|
||||
%{_libdir}/python2.7/site-packages/gi/overrides/Gedit.py*
|
||||
%{_libexecdir}/gedit
|
||||
%{_libdir}/gedit/girepository-1.0
|
||||
%dir %{_libdir}/gedit/plugins
|
||||
%{_libdir}/gedit/plugins/changecase.plugin
|
||||
%{_libdir}/gedit/plugins/libchangecase.so
|
||||
%{_libdir}/gedit/plugins/docinfo.plugin
|
||||
%{_libdir}/gedit/plugins/libdocinfo.so
|
||||
%{_libdir}/gedit/plugins/externaltools.plugin
|
||||
%{_libdir}/gedit/plugins/externaltools
|
||||
%{_libdir}/gedit/plugins/filebrowser.plugin
|
||||
%{_libdir}/gedit/plugins/libfilebrowser.so
|
||||
%{_libdir}/gedit/plugins/modelines.plugin
|
||||
%{_libdir}/gedit/plugins/libmodelines.so
|
||||
%{_libdir}/gedit/plugins/pythonconsole.plugin
|
||||
%{_libdir}/gedit/plugins/pythonconsole
|
||||
%{_libdir}/gedit/plugins/quickopen.plugin
|
||||
%{_libdir}/gedit/plugins/quickopen
|
||||
%{_libdir}/gedit/plugins/snippets.plugin
|
||||
%{_libdir}/gedit/plugins/snippets
|
||||
%{_libdir}/gedit/plugins/sort.plugin
|
||||
%{_libdir}/gedit/plugins/libsort.so
|
||||
%{_libdir}/gedit/plugins/spell.plugin
|
||||
%{_libdir}/gedit/plugins/libspell.so
|
||||
%{_libdir}/gedit/plugins/time.plugin
|
||||
%{_libdir}/gedit/plugins/libtime.so
|
||||
%{_bindir}/*
|
||||
%{_datadir}/GConf/gsettings
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.gschema.xml
|
||||
@ -161,14 +194,23 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
%defattr(-, root, root, -)
|
||||
%{_includedir}/gedit-3.0
|
||||
|
||||
%{_libdir}/libgedit-private.so
|
||||
%{_libdir}/pkgconfig/gedit.pc
|
||||
%{_datadir}/gtk-doc
|
||||
|
||||
%files zeitgeist
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/gedit/plugins/zeitgeist.plugin
|
||||
%{_libdir}/gedit/plugins/libzeitgeistplugin.so
|
||||
|
||||
%changelog
|
||||
* Thu Jun 16 2011 Tomas Bzatek <tbzatek@redhat.com> - 3.1.1-1
|
||||
- Update to 3.1.1
|
||||
- New gedit-zeitgeist subpackage
|
||||
|
||||
* Wed May 25 2011 Dan Williams <dcbw@redhat.com> 2:3.0.2-2
|
||||
- Fix double-free when searching
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user