Subject: [PATCH] make x11/gnome-panel compile in DragonFly
To: None <pkgsrc-users@netbsd.org>
From: Rumko <rumcic@gmail.com>
List: pkgsrc-users
Date: 12/16/2007 01:45:08
--nextPart11093073.nutBRI2Y4e
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit

This is a DragonFly-only patch, it will not affect other platforms (unless they
define __DragonFly__).

--nextPart11093073.nutBRI2Y4e
Content-Type: text/x-diff; name="gnome-panel.patch"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="gnome-panel.patch"

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gnome-panel/distinfo,v
retrieving revision 1.38
diff -u -p -r1.38 distinfo
--- distinfo	1 Dec 2007 18:14:02 -0000	1.38
+++ distinfo	15 Dec 2007 15:19:52 -0000
@@ -4,3 +4,4 @@ SHA1 (gnome-panel-2.20.2.tar.bz2) = d3bf
 RMD160 (gnome-panel-2.20.2.tar.bz2) = e883139c8c873290e7d854c1a45642ff0d34c2a8
 Size (gnome-panel-2.20.2.tar.bz2) = 2835817 bytes
 SHA1 (patch-aa) = 602ceea87d5861aa1400268e1a1e189c7281ddac
+SHA1 (patch-ab) = 814da0593bf83aef5da22a2183a097e94f46a037
diff -uNr patches.orig/patch-ab patches/patch-ab
--- /dev/null	1970-01-01 00:00:00 +0000
+++ patches/patch-ab	2007-12-15 15:01:32 +0000
@@ -0,0 +1,17 @@
+--- gnome-panel/panel-util.c.orig	2007-12-15 14:52:59 +0000
++++ gnome-panel/panel-util.c	2007-12-15 14:53:43 +0000
+@@ -21,6 +21,14 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ 
++#ifdef __DragonFly__
++# ifdef NAME_MAX
++#  define MAXNAMLEN    NAME_MAX
++# else
++#  define MAXNAMLEN    255
++# endif
++#endif
++
+ #include <glib/gi18n.h>
+ #include <libgnome/gnome-desktop-item.h>
+ #include <libgnome/gnome-util.h>


--nextPart11093073.nutBRI2Y4e--