[dia/f18] unregister vdx, xfig import filter during plugin unloading (#854368)

Jiří Popelka jpopelka at fedoraproject.org
Tue Sep 18 13:09:56 UTC 2012


commit 2bf96a5971f349e6f70ea3b2f2133354224b8d44
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Tue Sep 18 14:56:51 2012 +0200

    unregister vdx, xfig import filter during plugin unloading (#854368)

 dia-unregister-import.patch |   37 +++++++++++++++++++++++++++++++++++++
 dia.spec                    |    3 +++
 2 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/dia-unregister-import.patch b/dia-unregister-import.patch
new file mode 100644
index 0000000..15feba0
--- /dev/null
+++ b/dia-unregister-import.patch
@@ -0,0 +1,37 @@
+From a6e2409b85414b3d82dacd390ce9c9f007e254e8 Mon Sep 17 00:00:00 2001
+From: Jiri Popelka <jpopelka at redhat.com>
+Date: Wed, 5 Sep 2012 11:12:59 +0200
+Subject: [PATCH] Unregister vdx, xfig import filters during plugin unloading.
+
+---
+ plug-ins/vdx/vdx.c   | 1 +
+ plug-ins/xfig/xfig.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/plug-ins/vdx/vdx.c b/plug-ins/vdx/vdx.c
+index 64bc4b0..82ddc4b 100644
+--- a/plug-ins/vdx/vdx.c
++++ b/plug-ins/vdx/vdx.c
+@@ -43,6 +43,7 @@ static void
+ _plugin_unload (PluginInfo *info)
+ {
+     filter_unregister_export(&vdx_export_filter);
++    filter_unregister_import(&vdx_import_filter);
+ }
+ 
+ 
+diff --git a/plug-ins/xfig/xfig.c b/plug-ins/xfig/xfig.c
+index 966c294..10d68aa 100644
+--- a/plug-ins/xfig/xfig.c
++++ b/plug-ins/xfig/xfig.c
+@@ -41,6 +41,7 @@ static void
+ _plugin_unload (PluginInfo *info)
+ {
+     filter_unregister_export(&xfig_export_filter);
++    filter_unregister_import(&xfig_import_filter);
+ }
+ 
+ 
+-- 
+1.7.11.4
+
diff --git a/dia.spec b/dia.spec
index 201140d..81be1a6 100644
--- a/dia.spec
+++ b/dia.spec
@@ -8,6 +8,7 @@ License:        GPLv2+
 URL:            http://www.gnome.org/projects/dia/
 Source0:        ftp://ftp.gnome.org/pub/GNOME/sources/dia/0.97/dia-%{version}.tar.xz
 Patch0:         dia-noglib.patch
+Patch1:         dia-unregister-import.patch
 
 BuildRequires:  libgnomeui-devel pygtk2-devel desktop-file-utils
 BuildRequires:  intltool docbook-utils docbook-style-dsssl docbook-style-xsl
@@ -26,6 +27,7 @@ and can export to PostScript(TM).
 %prep
 %setup -q
 %patch0 -p0 -b .noglib
+%patch1 -p1 -b .unregister-import
 
 sed -i 's|libdia_la_LDFLAGS = -avoid-version|libdia_la_LDFLAGS = -avoid-version $(shell pkg-config gtk+-2.0 libxml-2.0 libart-2.0 libgnome-2.0 --libs)|' \
   lib/Makefile.*
@@ -91,6 +93,7 @@ fi
 %changelog
 * Tue Sep 18 2012 Jiri Popelka <jpopelka at redhat.com> - 1:0.97.2-1
 - 0.97.2
+- unregister vdx, xfig import filter during plugin unloading (#854368)
 
 * Fri Jul 27 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:0.97.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list