Add a patch so that run-mozilla.sh finds our gdb by default. Amend

README.OpenBSD to teach users how to properly report bugs.
This commit is contained in:
landry 2010-10-27 12:56:28 +00:00
parent 3877265f5c
commit 2f7dcf406c
3 changed files with 42 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.156 2010/10/24 21:40:10 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.157 2010/10/27 12:56:28 landry Exp $
COMMENT = Mozilla web browser
@ -8,6 +8,8 @@ MOZILLA_BRANCH = 1.9.2
MOZILLA_PROJECT = mozilla-firefox
MOZILLA_CODENAME = browser
REVISION = 0
SO_VERSION = 22.1
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.

View File

@ -1,4 +1,4 @@
$OpenBSD: README.OpenBSD,v 1.11 2010/04/28 06:56:38 landry Exp $
$OpenBSD: README.OpenBSD,v 1.12 2010/10/27 12:56:28 landry Exp $
If you encounter strange problems relating to bookmarks, downloads,
window placement, toolbars, history, or other settings, it is
@ -62,3 +62,10 @@ In order to use CUPS for printing, you will need to install the cups
subpackage of gtk+2, i.e.:
# pkg_add gtk+2-cups
Debugging
If you encounter crashes, you might want to build the debug FLAVOR of
this package, and run 'firefox -g' to run firefox inside gdb, so
that you can gather debugging logs and traces.
Bug reports without that information will be ignored.

View File

@ -0,0 +1,31 @@
$OpenBSD: patch-build_unix_run-mozilla_sh,v 1.1 2010/10/27 12:56:28 landry Exp $
find our gdb by default
--- build/unix/run-mozilla.sh.orig Wed Oct 27 12:58:19 2010
+++ build/unix/run-mozilla.sh Wed Oct 27 12:58:41 2010
@@ -105,25 +105,7 @@ moz_test_binary()
##########################################################################
moz_get_debugger()
{
- debuggers="ddd gdb dbx bdb"
- debugger="notfound"
- done="no"
- for d in $debuggers
- do
- moz_test_binary /bin/which
- if [ $? -eq 1 ]
- then
- dpath=`which ${d}`
- else
- dpath=`LC_MESSAGES=C type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`
- fi
- if [ -x "$dpath" ]
- then
- debugger=$dpath
- break
- fi
- done
- echo $debugger
+ echo "/usr/bin/gdb"
return 0
}
##########################################################################