pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: pkg/44932: x11/fltk2: patch for DragonFly support



It seems I'm having trouble mailing to GNATS (the mails keep timing out[1]), 
here's the corrected patch.

m.


[1] example: http://pastebin.com/gAgmrTTm

Forwarded message:

From: Matthias Rampke <matthias%rampke.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Date: Mittwoch, 4. Mai 2011 18:53:03
Subject: Re: pkg/44932: x11/fltk2: patch for DragonFly support

My bad, I missed that. Sorry!

Corrected patch:


diff --git a/x11/fltk2/distinfo b/x11/fltk2/distinfo
index 8d03ec9..282110f 100644
--- a/x11/fltk2/distinfo
+++ b/x11/fltk2/distinfo
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 21e2f9cb1406c989a83cac37a9ce39ee462f6088
SHA1 (patch-ae) = 8711184bfcbc2882d115e06cb9716c37349b04c3
SHA1 (patch-af) = ff5648e8c6b935bccb77a8afe09d247f3313c76a
SHA1 (patch-ag) = 3e24e2d748bd7cfbe786359032b6357a6fd7da4c
+SHA1 (patch-ah) = 0173efb4dc6d1588afbed44668e296ab3895488d
diff --git a/x11/fltk2/patches/patch-ah b/x11/fltk2/patches/patch-ah
new file mode 100644
index 0000000..c1d3ca5
--- /dev/null
+++ b/x11/fltk2/patches/patch-ah
@@ -0,0 +1,21 @@
+$NetBSD$
+
+--- src/filename_list.cxx.orig 2007-06-01 13:13:08 +0000
++++ src/filename_list.cxx
+@@ -31,6 +31,7 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <sys/param.h>
+ #include <fltk/string.h>
+ #include <fltk/utf.h>
+ #include <fltk/filename.h>
+@@ -64,7 +65,7 @@ int fltk::filename_list(const char *d, d
+ int n = scandir(d, list, 0, sort);
+ #elif defined(__linux) || defined (__FreeBSD__) || defined (__NetBSD__)
+ int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
+-#elif defined(__hpux) || defined(__CYGWIN__)
++#elif defined(__hpux) || defined(__CYGWIN__) || (defined(__DragonFly__) && 
(__DragonFly_version >= 200901))
+ // HP-UX, Cygwin define the comparison function like this:
+ int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
+ #elif defined(__osf__) || defined(__sgi)




Home | Main Index | Thread Index | Old Index