pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xentools20 Don't mmap /kern/xen/privcmd (this...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9916069e921f
branches:  trunk
changeset: 494401:9916069e921f
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Mon May 23 22:02:04 2005 +0000

description:
Don't mmap /kern/xen/privcmd (this doesn't work any more on current), use
MAP_ANON instead. Bump pkgrevision.

diffstat:

 sysutils/xentools20/Makefile         |   4 ++--
 sysutils/xentools20/distinfo         |   3 ++-
 sysutils/xentools20/patches/patch-as |  22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r e4331a377fe4 -r 9916069e921f sysutils/xentools20/Makefile
--- a/sysutils/xentools20/Makefile      Mon May 23 22:01:42 2005 +0000
+++ b/sysutils/xentools20/Makefile      Mon May 23 22:02:04 2005 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2005/05/22 20:08:34 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2005/05/23 22:02:04 bouyer Exp $
 #
 
 DISTNAME=              xen-2.0.3-src
 PKGNAME=               xentools20-2.0.3
-PKGREVISION=           4
+PKGREVISION=           5
 CATEGORIES=            sysutils
 MASTER_SITES=          http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/
 EXTRACT_SUFX=          .tgz
diff -r e4331a377fe4 -r 9916069e921f sysutils/xentools20/distinfo
--- a/sysutils/xentools20/distinfo      Mon May 23 22:01:42 2005 +0000
+++ b/sysutils/xentools20/distinfo      Mon May 23 22:02:04 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/05/23 18:05:16 xtraeme Exp $
+$NetBSD: distinfo,v 1.5 2005/05/23 22:02:04 bouyer Exp $
 
 SHA1 (xen-2.0.3-src.tgz) = eb71d43abd014c87062f5b93932947b71e32be54
 RMD160 (xen-2.0.3-src.tgz) = 13cd844dbdeccbb9a97ee0d49f5b187a5f2590e7
@@ -21,3 +21,4 @@
 SHA1 (patch-ap) = da9d70ec8c61e8524b0b268113d178ec1d0d176c
 SHA1 (patch-aq) = 96ac4caaa268069ee02962a917f85753515747be
 SHA1 (patch-ar) = 4f4b47a47698720042fe8c30a7ac74304295740d
+SHA1 (patch-as) = 333da168af43dae9a4e8695409cbd006e7fcf097
diff -r e4331a377fe4 -r 9916069e921f sysutils/xentools20/patches/patch-as
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools20/patches/patch-as      Mon May 23 22:02:04 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-as,v 1.1 2005/05/23 22:02:04 bouyer Exp $
+
+--- libxc/xc_private.c.orig    2005-01-12 13:22:19.000000000 +0100
++++ libxc/xc_private.c 2005-05-23 23:37:15.000000000 +0200
+@@ -11,7 +11,7 @@
+ {
+     privcmd_mmapbatch_t ioctlx; 
+     void *addr;
+-    addr = mmap(NULL, num*PAGE_SIZE, prot, MAP_SHARED, xc_handle, 0);
++    addr = mmap(NULL, num*PAGE_SIZE, prot, MAP_ANON | MAP_SHARED, -1, 0);
+     if ( addr != NULL )
+     {
+         ioctlx.num=num;
+@@ -38,7 +38,7 @@
+     privcmd_mmap_t ioctlx; 
+     privcmd_mmap_entry_t entry; 
+     void *addr;
+-    addr = mmap(NULL, size, prot, MAP_SHARED, xc_handle, 0);
++    addr = mmap(NULL, size, prot, MAP_ANON | MAP_SHARED, -1, 0);
+     if ( addr != NULL )
+     {
+         ioctlx.num=1;



Home | Main Index | Thread Index | Old Index