Port-xen archive

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

Re: xen 4.5.0 packages available



Manuel Bouyer writes:
- I just added xen{kernel,tools}45 packages to pkgsrc, for Xen 4.5.0
- I quickly tested NetBSD PV guests, and NetBSD and WinXP PV guests, at
- last booted, disk and network works.

Yay,  I'd been working on 4.4 (starting just before 4.5
released, apparently) but hadn't made sufficient progress.

I've installed  the 4.5 packages on a NetBSD/amd64 7.99.4 host,
and needed to modify
patches/patch-qemu-xen-traditional_configure to conditionalize
the alias of MAP_ANONYMOUS to MAP_ANON (since <sys/mman.h> on
-current now includes such an alias)

Attached is the updated patch file (complete with comments to
quiet pkglint. :D)

- More tests is welcome, of course :)

I'm spinning up a couple of guests now to see how it goes..

--
Eric Schnoebelen		eric%cirr.com@localhost		http://www.cirr.com
    "I am sorry to say that at the moment I am so busy as to be convinced
    that life has no meaning what so ever" -- Bertrand Russell, June 1931
$NetBSD$

Don't build documents.

Change the man page prefix for pkgsrc.

Define various pkgsrc centric install macros.

Only conditionally define MAP_ANONYMOUS (on NetBSD 7.99.*, MAP_ANONYMOUS
is aliased to MAP_ANON.)

--- qemu-xen-traditional/configure.orig	2014-10-06 15:50:24.000000000 +0000
+++ qemu-xen-traditional/configure
@@ -1089,7 +1089,7 @@ fi
 # Check if tools are available to build documentation.
 if [ -x "`which texi2html 2>/dev/null`" ] && \
    [ -x "`which pod2man 2>/dev/null`" ]; then
-  build_docs="yes"
+#  build_docs="yes"
 fi
 
 ##########################################
@@ -1124,7 +1124,7 @@ else
   if test -z "$prefix" ; then
       prefix="/usr/local"
   fi
-  mansuffix="/share/man"
+  mansuffix="/man"
   datasuffix="/share/qemu"
   docsuffix="/share/doc/qemu"
   binsuffix="/bin"
@@ -1216,6 +1216,8 @@ echo "#define CONFIG_QEMU_SHAREDIR \"$pr
 echo "MAKE=$make" >> $config_mak
 echo "INSTALL=$install" >> $config_mak
 echo "INSTALL_PROG=$install -m 0755" >> $config_mak
+echo "INSTALL_DATA=$install -m0644" >> $config_mak
+echo "INSTALL_DIR=$install -d -m0755 -p" >> $config_mak
 echo "CC=$cc" >> $config_mak
 echo "HOST_CC=$host_cc" >> $config_mak
 echo "AR=$ar" >> $config_mak
@@ -1493,7 +1495,9 @@ fi
 # XXX: suppress that
 if [ "$bsd" = "yes" ] ; then
   echo "#define O_LARGEFILE 0" >> $config_h
+  echo "#if !defined(MAP_ANONYMOUS)" >> $config_h
   echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h
+  echo "#endif /* !defined(MAP_ANONYMOUS) */" >> $config_h
   echo "#define _BSD 1" >> $config_h
 fi
 


Home | Main Index | Thread Index | Old Index