This commit is contained in:
Lionel Sambuc 2014-04-17 11:25:05 +02:00
parent 920af4f38d
commit dd7b58c227
5 changed files with 32 additions and 7 deletions

View File

@ -3,7 +3,9 @@ $NetBSD: distinfo,v 1.40 2013/11/01 09:49:20 ryoon Exp $
SHA1 (m4-1.4.17.tar.gz) = 4f80aed6d8ae3dacf97a0cb6e989845269e342f0
RMD160 (m4-1.4.17.tar.gz) = d81675f1d358ce5eee27184a9d946acfc97a912b
Size (m4-1.4.17.tar.gz) = 1820658 bytes
SHA1 (patch-ab) = 9e9527cdd4b7ba3501d603f0e5ca60c2150e4359
SHA1 (patch-ab) = 7017775b13e2831cdcbfb0412de4838b5d9b3ba0
SHA1 (patch-ac) = da39a3ee5e6b4b0d3255bfef95601890afd80709
SHA1 (patch-isnan.c) = a960f35e5168bed47c5924e36bfb254dc1a44621
SHA1 (patch-lib_fpending.h) = 6f29893c24b03916200f36867ad30ba101f8ef16
SHA1 (patch-lib_stdio-impl.h) = bfcb20e99c9dad4b4ae975d7f7e6d5a1b12ffd25
SHA1 (patch-lib_stdio.in.h) = cc5a8572e274b576a154c7a6b14f0a14de5abacd

View File

@ -23,4 +23,9 @@ PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
.endif
.if !empty(PKGSRC_COMPILER:Mclang) && ${OPSYS} == "NetBSD" && ${OS_VARIANT}
PKG_HACKS+= Force no optimisations whith clang on Minix
BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O0
.endif
.endif # M4_HACKS_MK

View File

@ -1,13 +1,11 @@
$NetBSD: patch-ab,v 1.13 2013/10/04 21:02:11 wiz Exp $
--- lib/fseeko.c.orig 2013-09-22 06:15:55.000000000 +0000
+++ lib/fseeko.c
@@ -125,7 +125,7 @@ fseeko (FILE *fp, off_t offset, int when
--- lib/fseeko.c.orig Sun Sep 22 06:15:55 2013
+++ lib/fseeko.c Fri Apr 18 00:06:46 2014
@@ -125,7 +125,7 @@ fseeko (FILE *fp, off_t offset, int whence)
fp->_flags &= ~_IO_EOF_SEEN;
fp->_offset = pos;
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
-# if defined __CYGWIN__
+# if defined(__CYGWIN__) || defined(__NetBSD__)
+# if defined(__CYGWIN__) || defined(__NetBSD__) || defined(__minix)
/* fp_->_offset is typed as an integer. */
fp_->_offset = pos;
# else

View File

View File

@ -0,0 +1,20 @@
--- lib/stdio-impl.h.orig Sun Sep 22 06:20:02 2013
+++ lib/stdio-impl.h Fri Apr 18 00:02:53 2014
@@ -21,7 +21,7 @@
/* BSD stdio derived implementations. */
-#if defined __NetBSD__ /* NetBSD */
+#if defined __NetBSD__ || defined __minix /* NetBSD */
/* Get __NetBSD_Version__. */
# include <sys/param.h>
#endif
@@ -57,7 +57,7 @@
# define fp_ fp
# endif
-# if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __ANDROID__ /* NetBSD >= 1.5ZA, OpenBSD, Android */
+# if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __ANDROID__ || defined __minix /* NetBSD >= 1.5ZA, OpenBSD, Android */
/* See <http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup>
and <http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=HEAD&content-type=text/x-cvsweb-markup> */
struct __sfileext