pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/xemacs-current Fix build on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b42dc8fdf39b
branches:  trunk
changeset: 530446:b42dc8fdf39b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 30 17:59:03 2007 +0000

description:
Fix build on DragonFly.

diffstat:

 editors/xemacs-current/Makefile         |   3 ++-
 editors/xemacs-current/distinfo         |   4 +++-
 editors/xemacs-current/patches/patch-aj |  22 ++++++++++++++++++++++
 editors/xemacs-current/patches/patch-ak |  24 ++++++++++++++++++++++++
 4 files changed, 51 insertions(+), 2 deletions(-)

diffs (86 lines):

diff -r ac04d74eb7fb -r b42dc8fdf39b editors/xemacs-current/Makefile
--- a/editors/xemacs-current/Makefile   Sat Jun 30 17:40:50 2007 +0000
+++ b/editors/xemacs-current/Makefile   Sat Jun 30 17:59:03 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2007/05/20 17:20:25 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2007/06/30 17:59:03 joerg Exp $
 
 DISTNAME=      xemacs-21.5.27
 
@@ -38,6 +38,7 @@
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
+.include "../../x11/xbitmaps/buildlink3.mk"
 
 INFOPATH=      ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
 
diff -r ac04d74eb7fb -r b42dc8fdf39b editors/xemacs-current/distinfo
--- a/editors/xemacs-current/distinfo   Sat Jun 30 17:40:50 2007 +0000
+++ b/editors/xemacs-current/distinfo   Sat Jun 30 17:59:03 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2006/10/14 02:24:46 rillig Exp $
+$NetBSD: distinfo,v 1.19 2007/06/30 17:59:03 joerg Exp $
 
 SHA1 (xemacs-21.5.27.tar.gz) = 55fc3e9c8fe3cac92791ffe1a0870aeae1baf0b8
 RMD160 (xemacs-21.5.27.tar.gz) = ee0caff8730c999d37aa3a19b19f23d5756837ad
@@ -12,3 +12,5 @@
 SHA1 (patch-ag) = f859010a113a9765819f92c79ce905cf4fd801dd
 SHA1 (patch-ah) = 53d806344f2429d26ee8a10005d1087d84fb0321
 SHA1 (patch-ai) = ed24c7c0cc802386c0293c34842882d5ec770426
+SHA1 (patch-aj) = aeebaec687a1ea2974d909404938fc060d5df75f
+SHA1 (patch-ak) = c8a3369efdd4af32b1a65cdb3d798724d63b3ed5
diff -r ac04d74eb7fb -r b42dc8fdf39b editors/xemacs-current/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xemacs-current/patches/patch-aj   Sat Jun 30 17:59:03 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aj,v 1.1 2007/06/30 17:59:03 joerg Exp $
+
+--- lib-src/fakemail.c.orig    2007-06-30 17:23:25.000000000 +0000
++++ lib-src/fakemail.c
+@@ -149,15 +149,13 @@ extern int fclose (), pclose ();
+ extern char *malloc (), *realloc ();
+ #endif
+ 
+-#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000 
++#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000 || defined(__DragonFly__)
+ #define CURRENT_USER 
+ #endif 
+ 
+ #ifdef CURRENT_USER
+ extern struct passwd *getpwuid ();
+-#if defined(__FreeBSD_version) && __FreeBSD_version >= 400000 
+-extern uid_t geteuid (); 
+-#else 
++#if defined(__FreeBSD_version) && __FreeBSD_version < 400000
+ extern unsigned short geteuid (); 
+ #endif 
+ static struct passwd *my_entry;
diff -r ac04d74eb7fb -r b42dc8fdf39b editors/xemacs-current/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xemacs-current/patches/patch-ak   Sat Jun 30 17:59:03 2007 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ak,v 1.1 2007/06/30 17:59:03 joerg Exp $
+
+--- src/dired.c.orig   2004-11-04 23:06:21.000000000 +0000
++++ src/dired.c
+@@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA.  */
+ /* Synched up with: FSF 19.30. */
+ 
+ #include <config.h>
++#include <limits.h>
+ #include "lisp.h"
+ 
+ #include "buffer.h"
+@@ -104,7 +105,11 @@ If FILES-ONLY is the symbol t, then only
+   directory = Ffile_name_as_directory (directory);
+   directorylen = XSTRING_LENGTH (directory);
+ 
++#ifdef NAME_MAX
++  statbuf = alloca_ibytes (directorylen + NAME_MAX + 1);
++#else
+   statbuf = alloca_ibytes (directorylen + MAXNAMLEN + 1);
++#endif
+   memcpy (statbuf, XSTRING_DATA (directory), directorylen);
+   statbuf_tail = statbuf + directorylen;
+ 



Home | Main Index | Thread Index | Old Index