Hi there,

The below patch is used to fix the problem in python 2.4.4, because
there is no "firefox" listed in the check order, so open() can't find
Mozilla firefox to start for display.

Thanks,
Henry

Index: patches/Python-13-webbrowser.diff
===================================================================
--- patches/Python-13-webbrowser.diff   (revision 0)
+++ patches/Python-13-webbrowser.diff   (revision 0)
@@ -0,0 +1,11 @@
+--- Python-2.4.4/Lib/webbrowser.py     2005-09-15 15:29:38.000000000 +0800
++++ Python-2.4.4/Lib/webbrowser.py.mod 2008-11-25 15:33:00.531544611 +0800
+@@ -277,7 +277,7 @@ if os.environ.get("TERM") or os.environ.
+
+     # X browsers have more in the way of options
+     if os.environ.get("DISPLAY"):
+-        _tryorder = ["galeon", "skipstone",
++        _tryorder = ["galeon", "skipstone", "firefox",
+                      "mozilla-firefox", "mozilla-firebird", "mozilla",
"netscape",
+                      "kfm", "grail"] + _tryorder
+
Index: SUNWPython.spec
===================================================================
--- SUNWPython.spec     (revision 16507)
+++ SUNWPython.spec     (working copy)
@@ -55,6 +55,8 @@
 # PSARC/2008/514 Python interface to dlpi(7P)
 # written by Max.Zhen at Sun.COM
 Patch12:                 Python-12-dlpi.diff
+# date:2008-11-25 owner:henry type:bug bugster:6775355
+Patch13:                 Python-13-webbrowser.diff

 %include default-depend.inc
 BuildRequires: SUNWTk
@@ -99,6 +101,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 cd ..

 echo fixing python binary name/path in python scripts:
@@ -313,6 +316,8 @@
 %{_libdir}/python?.?/py[cC][cC]

 %changelog
+* Thu Nov. 25 2008 - hua.zhang at sun.com
+- add patch webbrowser.diff
 * Thu Aug 28 2008 - laca at sun.com
 - add patch dlpi.diff
 * Fri Jun 20 2008 - laca at sun.com

Reply via email to