pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/m4 Fix build on DragonFly using Matt Dillon's pa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d20bdd631a3
branches:  trunk
changeset: 542001:6d20bdd631a3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Apr 29 13:54:55 2008 +0000

description:
Fix build on DragonFly using Matt Dillon's patch.
http://apollo.backplane.com/DFlyMisc/pkgsrc-devel-m4.patch

diffstat:

 devel/m4/distinfo         |   5 ++++-
 devel/m4/patches/patch-ab |  13 +++++++++++++
 devel/m4/patches/patch-ac |  13 +++++++++++++
 devel/m4/patches/patch-ad |  29 +++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+), 1 deletions(-)

diffs (81 lines):

diff -r b80fcb1d3e73 -r 6d20bdd631a3 devel/m4/distinfo
--- a/devel/m4/distinfo Tue Apr 29 13:48:06 2008 +0000
+++ b/devel/m4/distinfo Tue Apr 29 13:54:55 2008 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.22 2008/04/13 00:51:59 wiz Exp $
+$NetBSD: distinfo,v 1.23 2008/04/29 13:54:55 wiz Exp $
 
 SHA1 (m4-1.4.11.tar.gz) = 4d6b7f6344faee39f55af397c25f3e7ad13b6fcb
 RMD160 (m4-1.4.11.tar.gz) = 3689d9681cf9d2effbf87a3202cea68a75ebcec2
 Size (m4-1.4.11.tar.gz) = 1168840 bytes
 SHA1 (patch-aa) = 31aed81ffd1ea40d688ff89786fa72d95a13d422
+SHA1 (patch-ab) = 6f51d8220aeb5232e87788db259df6d8d94c3653
+SHA1 (patch-ac) = 5e1d6388d05b3ee6ea9e5b0a56ce5fbde310d538
+SHA1 (patch-ad) = 20eaea03b78ef94ed39931e7a54dd44ce40a29ff
diff -r b80fcb1d3e73 -r 6d20bdd631a3 devel/m4/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/m4/patches/patch-ab Tue Apr 29 13:54:55 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.7 2008/04/29 13:54:55 wiz Exp $
+
+--- lib/freadahead.c.orig      2008-03-10 19:11:22 -0700
++++ lib/freadahead.c   2008-04-14 17:38:46 -0700
+@@ -78,6 +78,8 @@
+        + (fp->_Mode & 0x4000 /* _MBYTE */
+           ? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback
+           : 0);
++#elif defined __DragonFly__       /* DragonFly */
++  return __sreadahead(fp);
+ #else
+  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
+ #endif
diff -r b80fcb1d3e73 -r 6d20bdd631a3 devel/m4/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/m4/patches/patch-ac Tue Apr 29 13:54:55 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.8 2008/04/29 13:54:55 wiz Exp $
+
+--- lib/freading.c.orig        2007-11-10 15:24:02 -0800
++++ lib/freading.c     2008-04-14 17:41:47 -0700
+@@ -42,6 +42,8 @@
+ #elif defined __QNX__               /* QNX */
+   return ((fp->_Mode & 0x2 /* _MOPENW */) == 0
+         || (fp->_Mode & 0x1000 /* _MREAD */) != 0);
++#elif defined __DragonFly__       /* DragonFly */
++  return ((((struct __FILE_public *)fp)->_flags & __SRD) != 0);
+ #else
+  #error "Please port gnulib freading.c to your platform!"
+ #endif
diff -r b80fcb1d3e73 -r 6d20bdd631a3 devel/m4/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/m4/patches/patch-ad Tue Apr 29 13:54:55 2008 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-ad,v 1.4 2008/04/29 13:54:55 wiz Exp $
+
+--- lib/fseeko.c.orig  2007-12-17 21:18:34 -0800
++++ lib/fseeko.c       2008-04-14 20:27:44 -0700
+@@ -23,6 +23,18 @@
+ /* Get off_t and lseek.  */
+ #include <unistd.h>
+ 
++#ifdef __DragonFly__
++
++#undef fseeko
++
++int
++rpl_fseeko (FILE *fp, off_t offset, int whence)
++{
++      return(fseeko(fp, offset, whence));
++}
++
++#else
++
+ #undef fseeko
+ #if !HAVE_FSEEKO
+ # undef fseek
+@@ -121,3 +133,5 @@
+   else
+     return fseeko (fp, offset, whence);
+ }
++
++#endif



Home | Main Index | Thread Index | Old Index