Prevent unloading of gail

This commit is contained in:
Matthias Clasen 2008-10-04 02:49:11 +00:00
parent c2d73c99bc
commit 3ebf9b61be
2 changed files with 23 additions and 1 deletions

15
gail-make-resident.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up gtk+-2.14.3/modules/other/gail/gail.c.make-resident gtk+-2.14.3/modules/other/gail/gail.c
--- gtk+-2.14.3/modules/other/gail/gail.c.make-resident 2008-10-03 22:42:20.000000000 -0400
+++ gtk+-2.14.3/modules/other/gail/gail.c 2008-10-03 22:38:18.000000000 -0400
@@ -981,3 +981,11 @@ gtk_module_init (gint *argc, char** argv
return 0;
}
+const char *
+g_module_check_init (GModule *module)
+{
+ g_module_make_resident (module);
+
+ return NULL;
+}
+

View File

@ -16,7 +16,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk2
Version: %{base_version}
Release: 2%{?dist}
Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gtk+/2.14/gtk+-%{version}.tar.bz2
@ -31,6 +31,9 @@ Patch1: gtk+-2.11.1-set-invisible-char-to-bullet.patch
# see http://bugzilla.gnome.org/show_bug.cgi?id=463773
Patch2: workaround.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=554950
Patch3: gail-make-resident.patch
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: pango-devel >= %{pango_version}
BuildRequires: glib2-devel >= %{glib2_version}
@ -116,6 +119,7 @@ docs for the GTK+ widget toolkit.
%patch0 -p1 -b .lib64
%patch1 -p1 -b .set-invisible-char-to-bullet
%patch2 -p1 -b .workaround
%patch3 -p1 -b .gail-make-resident
for i in config.guess config.sub ; do
test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@ -297,6 +301,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gtk-2.0
%changelog
* Fri Oct 3 2008 Matthias Clasen <mclasen@redhat.com> - 2.14.3-3
- Prevent unloading of the gail module
* Thu Sep 25 2008 Matthias Clasen <mclasen@redhat.com> - 2.14.3-2
- Move message catalogs for properties to the -devel package