[nmap/f14/master] - add workaround for zenmap crash (#637403)

Michal Hlavinka mhlavink at fedoraproject.org
Tue Oct 5 13:38:56 UTC 2010


commit 6135f2fb3560dbd8cb7832e9e899b4e4853eb3d3
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Tue Oct 5 15:39:00 2010 +0200

    - add workaround for zenmap crash (#637403)

 nmap.spec                      |    9 ++++++++-
 zenmap-621887-workaround.patch |   21 +++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/nmap.spec b/nmap.spec
index e0717b9..a82d451 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -2,7 +2,7 @@
 Summary: Network exploration tool and security scanner
 Name: nmap
 Version: 5.21
-Release: 8%{?dist}
+Release: 9%{?dist}
 # nmap is GPLv2
 # zenmap is GPLv2 and LGPLv2+ (zenmap/higwidgets) and GPLv2+ (zenmap/radialnet)
 # libdnet-stripped is BSD (advertising clause rescinded by the Univ. of California in 1999) with some parts as Public Domain (crc32)
@@ -24,6 +24,9 @@ Patch2: nmap-4.52-noms.patch
 #don't strip debuginfo
 Patch3: nmap-4.68-nostrip.patch
 
+# rhbz#637403, workaround for rhbz#621887=gnome#623965
+Patch4: zenmap-621887-workaround.patch
+
 URL: http://nmap.org/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Epoch: 2
@@ -55,6 +58,7 @@ be installed before installing nmap front end.
 %patch1 -p1 -b .mktemp
 %patch2 -p1 -b .noms
 %patch3 -p1 -b .nostrip
+%patch4 -p1 -b .bz637403
 
 #be sure we're not using tarballed copies of some libraries
 rm -rf liblua libpcap libpcre macosx mswin32
@@ -165,6 +169,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/xnmap.1.gz
 
 %changelog
+* Tue Oct 05 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-9
+- add workaround for zenmap crash (#637403)
+
 * Fri Sep 17 2010 Michal Hlavinka <mhlavink at redhat.com> - 2:5.21-8
 - fix location of ja man page (#632104)
 
diff --git a/zenmap-621887-workaround.patch b/zenmap-621887-workaround.patch
new file mode 100644
index 0000000..aba22b7
--- /dev/null
+++ b/zenmap-621887-workaround.patch
@@ -0,0 +1,21 @@
+diff -uNrp nmap-5.21.orig/zenmap/zenmapGUI/App.py nmap-5.21.new/zenmap/zenmapGUI/App.py
+--- nmap-5.21.orig/zenmap/zenmapGUI/App.py	2009-11-04 04:36:50.000000000 +0100
++++ nmap-5.21.new/zenmap/zenmapGUI/App.py	2010-09-25 15:45:20.000000000 +0200
+@@ -96,7 +96,7 @@ import ConfigParser
+ # produces a warning, but the lack of a display eventually causes a
+ # segmentation fault. See http://live.gnome.org/PyGTK/WhatsNew210.
+ import warnings
+-warnings.filterwarnings("error", module = "gtk")
++warnings.filterwarnings("error", module = "gtk", append=True)
+ try:
+     import gtk
+ except Exception:
+@@ -176,7 +176,7 @@ def install_excepthook():
+         # produces a warning, but the lack of a display eventually causes a
+         # segmentation fault. See http://live.gnome.org/PyGTK/WhatsNew210.
+         import warnings
+-        warnings.filterwarnings("error", module = "gtk")
++        warnings.filterwarnings("error", module = "gtk", append=True)
+         import gtk
+         warnings.resetwarnings()
+ 


More information about the scm-commits mailing list