diff options
author | taca <taca> | 2007-08-13 16:41:34 +0000 |
---|---|---|
committer | taca <taca> | 2007-08-13 16:41:34 +0000 |
commit | 5f1a6a6c580b1fff596b8abf35a6838d5d365e7b (patch) | |
tree | e38de76ea2d6c51395641ef98016ac526258cb6d | |
parent | 27bd588e157b460f70c2ebc346ffff8ab164238a (diff) | |
download | pkgsrc-5f1a6a6c580b1fff596b8abf35a6838d5d365e7b.tar.gz |
Handle safer mremap(2)'s flags parameter on NetBSD.
Patch supplied from Matthias Drochner.
Bump PKGREVISION.
-rw-r--r-- | lang/mono/Makefile | 8 | ||||
-rw-r--r-- | lang/mono/distinfo | 3 | ||||
-rw-r--r-- | lang/mono/patches/patch-bf | 28 |
3 files changed, 34 insertions, 5 deletions
diff --git a/lang/mono/Makefile b/lang/mono/Makefile index 9bb7f4fcf7e..fae0ace3a50 100644 --- a/lang/mono/Makefile +++ b/lang/mono/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.57 2007/01/04 02:38:13 rillig Exp $ +# $NetBSD: Makefile,v 1.58 2007/08/13 16:41:34 taca Exp $ DISTNAME= mono-1.1.13.8.1 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang MASTER_SITES= http://go-mono.com/sources/mono-1.1/ @@ -73,8 +73,8 @@ post-patch: substpcprefix substpcprefix: .for f in ${PKGCONFIG_OVERRIDE} (cd ${WRKSRC}; \ - ${SED} 's|$${pcfiledir}/../..|@prefix@|g' <$f >$f.tmp; \ - ${MV} $f.tmp $f \ + ${SED} 's|$${pcfiledir}/../..|@prefix@|g' <${f} >${f}.tmp; \ + ${MV} ${f}.tmp ${f} \ ) .endfor diff --git a/lang/mono/distinfo b/lang/mono/distinfo index d63eaceee54..856e4a2d162 100644 --- a/lang/mono/distinfo +++ b/lang/mono/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.29 2007/08/03 07:46:54 taca Exp $ +$NetBSD: distinfo,v 1.30 2007/08/13 16:41:34 taca Exp $ SHA1 (mono-1.1.13.8.1.tar.gz) = f2cb79844073694859b1fb92eb770e3705239a3d RMD160 (mono-1.1.13.8.1.tar.gz) = a100a96b19300b253c12a2ad70caf65721418209 @@ -23,3 +23,4 @@ SHA1 (patch-ba) = 1aee2cf3dce0d2d378941b6cbff5600640c4d564 SHA1 (patch-bc) = bbf1a903cf7fee1dbd3a070b0ef0d5aecbdf67e2 SHA1 (patch-bd) = a52007ae22f8b23d20abf4a56e5b9d57ccd1fbbe SHA1 (patch-be) = d7a6232690ecd15c32ed44dcc498e596c248f332 +SHA1 (patch-bf) = cbe6c7a401a183eccc73ffb45120486c1cbc75b8 diff --git a/lang/mono/patches/patch-bf b/lang/mono/patches/patch-bf new file mode 100644 index 00000000000..0c7d7124879 --- /dev/null +++ b/lang/mono/patches/patch-bf @@ -0,0 +1,28 @@ +$NetBSD: patch-bf,v 1.1 2007/08/13 16:41:34 taca Exp $ + +--- support/map.c.orig 2006-04-11 07:21:37.000000000 +0900 ++++ support/map.c +@@ -4672,15 +4672,23 @@ int Mono_Posix_ToMountFlags (guint64 x, + + int Mono_Posix_FromMremapFlags (guint64 x, guint64 *r) + { ++#ifdef __NetBSD__ ++ *r = MAP_FIXED; ++#else + *r = 0; ++#endif + if (x == 0) + return 0; + if ((x & Mono_Posix_MremapFlags_MREMAP_MAYMOVE) == Mono_Posix_MremapFlags_MREMAP_MAYMOVE) ++#ifdef __NetBSD__ ++ *r &= ~MAP_FIXED; ++#else + #ifdef MREMAP_MAYMOVE + *r |= MREMAP_MAYMOVE; + #else /* def MREMAP_MAYMOVE */ + {errno = EINVAL; return -1;} + #endif /* ndef MREMAP_MAYMOVE */ ++#endif /* NetBSD */ + return 0; + } + |