diff options
-rw-r--r-- | devel/bug-buddy/Makefile | 7 | ||||
-rw-r--r-- | devel/bug-buddy/files/patch-src_bug-buddy.c | 26 | ||||
-rw-r--r-- | devel/bug-buddy/files/patch-src_elf.c | 42 | ||||
-rw-r--r-- | devel/bug-buddy/files/patch-src_gdb-buddy.c | 11 | ||||
-rw-r--r-- | devel/bug-buddy/pkg-plist | 1 |
5 files changed, 86 insertions, 1 deletions
diff --git a/devel/bug-buddy/Makefile b/devel/bug-buddy/Makefile index 11ffe9cef..638745a78 100644 --- a/devel/bug-buddy/Makefile +++ b/devel/bug-buddy/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/devel/bug-buddy/Makefile,v 1.84 2010/09/20 20:19:38 kwm Exp $ +# $MCom: ports/devel/bug-buddy/Makefile,v 1.85 2010/09/27 18:27:07 kwm Exp $ # PORTNAME= bug-buddy PORTVERSION= 2.32.0 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -40,4 +41,8 @@ post-patch: s|gelf.h||g' \ ${WRKSRC}/configure +post-install: + @${LN} -fs ${PREFIX}/lib/gtk-2.0/modules/libgnomesegvhandler.so \ + ${PREFIX}/lib/gtk-2.0/modules/libgnomebreakpad.so + .include <bsd.port.mk> diff --git a/devel/bug-buddy/files/patch-src_bug-buddy.c b/devel/bug-buddy/files/patch-src_bug-buddy.c new file mode 100644 index 000000000..25c5a0a3f --- /dev/null +++ b/devel/bug-buddy/files/patch-src_bug-buddy.c @@ -0,0 +1,26 @@ +--- src/bug-buddy.c.orig 2010-09-27 16:25:15.000000000 +0200 ++++ src/bug-buddy.c 2010-11-16 19:16:24.000000000 +0100 +@@ -56,6 +56,10 @@ + + #include <libsoup/soup.h> + ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#endif ++ + #define USE_PROXY_KEY "/system/http_proxy/use_http_proxy" + #define PROXY_HOST_KEY "/system/http_proxy/host" + #define PROXY_PORT_KEY "/system/http_proxy/port" +@@ -1955,10 +1959,12 @@ + _exit(0); + } + ++#if !defined(__FreeBSD__) || __FreeBSD_version > 700024 + if (!elf_has_debug_symbols (gopt_data.pid)) { + /* FIXME: Request PackageKit to install debug symbols packages */ + _exit(0); + } ++#endif + + } + diff --git a/devel/bug-buddy/files/patch-src_elf.c b/devel/bug-buddy/files/patch-src_elf.c new file mode 100644 index 000000000..659058fe9 --- /dev/null +++ b/devel/bug-buddy/files/patch-src_elf.c @@ -0,0 +1,42 @@ +--- src/elf.c.orig 2010-11-16 18:43:40.000000000 +0100 ++++ src/elf.c 2010-11-16 18:59:11.000000000 +0100 +@@ -16,8 +16,15 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#endif ++ ++#if !defined(__FreeBSD__) || __FreeBSD_version > 700024 + #include <libelf.h> + #include <gelf.h> ++#endif ++ + #include <stdio.h> + #include <fcntl.h> + #include <string.h> +@@ -61,7 +68,9 @@ + gboolean + elf_has_debug_symbols (gint pid) + { ++#if !defined(__FreeBSD__) + gchar *proc_path; ++#endif + gchar *filename; + int fd; + Elf *elf; +@@ -76,9 +85,13 @@ + return FALSE; + } + ++#if defined(__FreeBSD__) ++ filename = g_file_read_link ("/proc/curproc/file", NULL); ++#else + proc_path = g_strdup_printf ("/proc/%d/exe", pid); + filename = g_file_read_link (proc_path, NULL); + g_free (proc_path); ++#endif + if (!filename) + return FALSE; + diff --git a/devel/bug-buddy/files/patch-src_gdb-buddy.c b/devel/bug-buddy/files/patch-src_gdb-buddy.c new file mode 100644 index 000000000..bb10d2584 --- /dev/null +++ b/devel/bug-buddy/files/patch-src_gdb-buddy.c @@ -0,0 +1,11 @@ +--- src/gdb-buddy.c.orig 2010-11-16 18:43:48.000000000 +0100 ++++ src/gdb-buddy.c 2010-11-16 18:54:28.000000000 +0100 +@@ -170,7 +170,7 @@ + link = g_strdup_printf ("/proc/%d/path/a.out", pid); + #else + /* if someone knows how to do this on BSD, please send a patch */ +- return NULL; ++ link = g_file_read_link ("proc/curproc/file", NULL); + #endif + exe = g_file_read_link (link, &error); + diff --git a/devel/bug-buddy/pkg-plist b/devel/bug-buddy/pkg-plist index 8ad2686e6..c8b6d1f69 100644 --- a/devel/bug-buddy/pkg-plist +++ b/devel/bug-buddy/pkg-plist @@ -1,4 +1,5 @@ bin/bug-buddy +lib/gtk-2.0/modules/libgnomebreakpad.so lib/gtk-2.0/modules/libgnomesegvhandler.la lib/gtk-2.0/modules/libgnomesegvhandler.so share/applications/bug-buddy.desktop |