ports/93610: [patch] audio/goobox - fix build with libnotify-0.3.2
Christian Hiris
4711 at chello.at
Mon Feb 20 22:20:15 UTC 2006
>Number: 93610
>Category: ports
>Synopsis: [patch] audio/goobox - fix build with libnotify-0.3.2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 20 22:20:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Christian Hiris
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD 6.1-PRERELEASE #0: Sat Feb 18 11:57:50 CET 2006
pfnu at matrix010.matrix.net:/usr/obj/usr/src/sys/MATRIX010
>Description:
audio/goobox-0.9.93 build target fails.
>How-To-Repeat:
jail003# cd /usr/ports/audio/goobox
[...]
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DGOO_PREFIX=\"/usr/X11R6\" -DGOO_SYSCONFDIR=\"/usr/X11R6/etc\" -DGOO_DATADIR=\"/usr/X11R6/share/gnome\" -DGOO_LIBDIR=\"/usr/X11R6/lib\" -DPIXMAPSDIR=\""/usr/X11R6/share/gnome/pixmaps"\" -DGLADEDIR=\""/usr/X11R6/share/gnome/goobox/glade"\" -DGOO_GLADEDIR=\""/usr/X11R6/share/gnome/goobox/glade"\" -D_REENTRANT -DORBIT2=1 -DXTHREADS -DXUSE_MTSAFE_API -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/orbit-2.0 -I/usr/local/include/libbonobo-2.0 -I/usr/local/include/bonobo-activation-2.0 -I/usr/local/include/libart-2.0 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/libgnome-2.0 -I/usr/X11R6/include/gconf/2 -I/usr/X11R6/include/gnome-vfs-2
.0 -I/usr/X11R6/lib/gnome-vfs-2.0/include -I/usr/X11R6/include/libgnomeui-2.0 -I/usr/X11R6/include/libgnomecanvas-2.0 -I/usr/X11R6/include/libbonoboui-2.0 -I/usr/X11R6/include/gnome-keyring-1 -I/usr/X11R6/include/gnome-vfs-module-2.0 -I/usr/X11R6/include/libglade-2.0 -I/usr/X11R6/include/gstreamer-0.8 -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -O2 -fno-strict-aliasing -pipe -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
main.c:50: error: syntax error before '*' token
main.c:50: warning: data definition has no type or storage class
main.c: In function `system_notify':
main.c:560: error: `NotifyIcon' undeclared (first use in this function)
main.c:560: error: (Each undeclared identifier is reported only once
main.c:560: error: for each function it appears in.)
main.c:560: error: `icon' undeclared (first use in this function)
main.c:561: error: `NotifyHints' undeclared (first use in this function)
main.c:561: error: `hints' undeclared (first use in this function)
main.c:578: warning: assignment makes pointer from integer without a cast
gmake[4]: *** [main.o] Error 1
gmake[4]: Leaving directory `/usr/wrkdir/usr/ports/audio/goobox/work/goobox-0.9.93/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/wrkdir/usr/ports/audio/goobox/work/goobox-0.9.93/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/wrkdir/usr/ports/audio/goobox/work/goobox-0.9.93/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/wrkdir/usr/ports/audio/goobox/work/goobox-0.9.93'
gmake: *** [all] Error 2
*** Error code 2
Stop in /usr/ports/audio/goobox.
*** Error code 1
>Fix:
Patch borrowed from Mandriva linux (goobox-0.9.93-libnotify.patch):
--- patch-src-main.c begins here ---
--- src/main.c.orig Fri Nov 18 21:20:08 2005
+++ src/main.c Mon Feb 20 22:41:55 2006
@@ -47,7 +47,6 @@
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
-static NotifyHandle *notify_h = NULL;
#endif /* HAVE_LIBNOTIFY */
GtkWindow *main_window = NULL;
@@ -193,7 +192,7 @@
#ifdef HAVE_LIBNOTIFY
if (! notify_init ("goobox"))
- g_error ("Cannot initialize notification system.");
+ g_warning ("Cannot initialize notification system.");
#endif /* HAVE_LIBNOTIFY */
goo_stock_init ();
@@ -557,27 +556,10 @@
int y)
{
#ifdef HAVE_LIBNOTIFY
- NotifyIcon *icon = notify_icon_new_from_uri("goobox");
- NotifyHints *hints = NULL;
-
- if ((x >= 0) && (y >= 0)) {
- hints = notify_hints_new ();
- notify_hints_set_int (hints, "x", x);
- notify_hints_set_int (hints, "y", y);
- }
+ if(!notify_is_initted())
+ return;
+ NotifyNotification *n = notify_notification_new (title,msg,"goobox",GTK_WIDGET (main_window));
+ notify_notification_show(n, NULL);
- notify_h = notify_send_notification (notify_h,
- "device",
- NOTIFY_URGENCY_NORMAL,
- title,
- msg,
- icon,
- TRUE, 0,
- hints, // no hints
- NULL, // no user data
- 0);
-
- if (icon != NULL)
- notify_icon_destroy (icon);
#endif /* HAVE_LIBNOTIFY */
}
--- patch-src-main.c ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list