Initial bep and patch files for m4, note that this is currently failing make check

This commit is contained in:
Scott McCreary
2010-02-27 20:14:20 +00:00
parent 2aae5c0c25
commit 417d66d1bc
3 changed files with 35 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
DESCRIPTION="m4 - GNU macro processor"
HOMEPAGE="http://www.gnu.org/software/m4/"
SRC_URI="http://ftp.gnu.org/gnu/m4/m4-1.4.14.tar.gz"
CHECKSUM_MD5="f0542d58f94c7d0ce0d01224e447be66"
REVISION="1"
STATUS_HAIKU="unstable"
DEPEND=""
BUILD {
cd m4-1.4.14
./configure --prefix=/boot/common
make
}
INSTALL {
cd m4-1.4.14
make install
make check
}

View File

@@ -1,5 +1,5 @@
Package: GNU M4
Version: 1.4.13
Copyright: 2000, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Version: 1.4.14
Copyright: 2000, 2005-2010 Free Software Foundation, Inc.
License: GNU GPL v3
URL: http://www.gnu.org/software/m4

View File

@@ -0,0 +1,15 @@
diff -urN m4-1.4.14/lib/pipe2.c m4-1.4.14-haiku/lib/pipe2.c
--- m4-1.4.14/lib/pipe2.c 2010-01-28 13:04:07.051118080 +0000
+++ m4-1.4.14-haiku/lib/pipe2.c 2010-02-27 20:00:33.547094528 +0000
@@ -78,7 +78,11 @@
/* Unix API. */
/* Check the supported flags. */
+#if (defined __BEOS__ || defined __HAIKU__)
+ if ((flags & ~(O_CLOEXEC | O_NONBLOCK)) != 0)
+#else
if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_TEXT | O_BINARY)) != 0)
+#endif
{
errno = EINVAL;
return -1;