openbsd-ports/www/seamonkey/patches/patch-mozilla_build_unix_run-mozilla_sh
landry ab142a5ddc Do the PFRAG dance so that it provides a working debug-flavoured
package. Add a run-mozilla.sh patch to make it found our gdb by default.
Teach users how to properly debug mozilla ports.
2010-10-27 13:02:38 +00:00

32 lines
849 B
Plaintext

$OpenBSD: patch-mozilla_build_unix_run-mozilla_sh,v 1.1 2010/10/27 13:02:39 landry Exp $
help finding our debugger
--- mozilla/build/unix/run-mozilla.sh.orig Wed Oct 27 12:47:04 2010
+++ mozilla/build/unix/run-mozilla.sh Wed Oct 27 12:48:50 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/type
- if [ $? -eq 1 ]
- then
- dpath=`LC_MESSAGES=C type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`
- else
- dpath=`which ${d}`
- fi
- if [ -x "$dpath" ]
- then
- debugger=$dpath
- break
- fi
- done
- echo $debugger
+ echo "/usr/bin/gdb"
return 0
}
##########################################################################