pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xenkernel3 Make it build on NetBSD/amd64. Thi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc0e4fde4da5
branches: trunk
changeset: 535591:cc0e4fde4da5
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Thu Nov 22 21:49:54 2007 +0000
description:
Make it build on NetBSD/amd64. This packages requires bash on this platform;
if someone feels bored he can look at fixing the script :)
diffstat:
sysutils/xenkernel3/Makefile | 20 ++++++++++++++++++--
sysutils/xenkernel3/distinfo | 3 ++-
sysutils/xenkernel3/patches/patch-cw | 12 ++++++++++++
3 files changed, 32 insertions(+), 3 deletions(-)
diffs (70 lines):
diff -r 7cef1f1494b8 -r cc0e4fde4da5 sysutils/xenkernel3/Makefile
--- a/sysutils/xenkernel3/Makefile Thu Nov 22 21:05:21 2007 +0000
+++ b/sysutils/xenkernel3/Makefile Thu Nov 22 21:49:54 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2007/10/16 20:31:57 bouyer Exp $
+# $NetBSD: Makefile,v 1.6 2007/11/22 21:49:54 bouyer Exp $
#
VERSION= 3.1.0
@@ -24,13 +24,29 @@
USE_TOOLS+= gmake
PYTHON_VERSIONS_ACCEPTED= 24 23
-PY_PATCHPLIST= no
+PY_PATCHPLIST= NO
SUBST_CLASSES+= py
SUBST_STAGE.py= pre-build
SUBST_FILES.py= xen/include/public/foreign/Makefile
+SUBST_FILES.py+= xen/tools/get-fields.sh
SUBST_SED.py= -e "s,python,${PYTHONBIN},g"
+#PY_PATCHPLIST doesn't work because we have NO_CONFIGURE
+SUBST_CLASSES+= py2
+SUBST_STAGE.py2= pre-build
+SUBST_FILES.py2= xen/tools/compat-build-source.py
+SUBST_FILES.py2+= xen/tools/compat-build-header.py
+SUBST_SED.py2= -e "s,/usr/bin/python,${PYTHONBIN},g"
+
+.if ${MACHINE_ARCH} == "x86_64"
+USE_TOOLS+= bash
+SUBST_CLASSES+= bash
+SUBST_STAGE.bash= pre-build
+SUBST_FILES.bash= xen/include/Makefile
+SUBST_SED.bash= -e "s,/bin/bash,${PREFIX}/bin/bash,g"
+.endif
+
do-build:
cd ${WRKSRC} && ${GMAKE} XEN_TARGET_X86_PAE=n debug=n xen
${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen.gz
diff -r 7cef1f1494b8 -r cc0e4fde4da5 sysutils/xenkernel3/distinfo
--- a/sysutils/xenkernel3/distinfo Thu Nov 22 21:05:21 2007 +0000
+++ b/sysutils/xenkernel3/distinfo Thu Nov 22 21:49:54 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2007/10/16 20:31:57 bouyer Exp $
+$NetBSD: distinfo,v 1.4 2007/11/22 21:49:55 bouyer Exp $
SHA1 (xen-3.1.0-src.tgz) = fa4b54c36626f2cce9b15dc99cafda0b42c54777
RMD160 (xen-3.1.0-src.tgz) = 2fd65a3b81e522d0ed2d62fd11e5977167f1ceb3
@@ -12,3 +12,4 @@
SHA1 (patch-bb) = 7338e5a512c909d4b043654dab882761de274f94
SHA1 (patch-bc) = fa35699da6ad2a4950418a02432c2ccdb5d34844
SHA1 (patch-bd) = 2a07955b1285d288458066813f8ebc801b8038c1
+SHA1 (patch-cw) = 0265eeebfe488ec6d795ee28f45a26b65a7976db
diff -r 7cef1f1494b8 -r cc0e4fde4da5 sysutils/xenkernel3/patches/patch-cw
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel3/patches/patch-cw Thu Nov 22 21:49:54 2007 +0000
@@ -0,0 +1,12 @@
+--- Config.mk.orig 2007-11-21 13:26:05.000000000 +0100
++++ Config.mk 2007-11-21 13:26:40.000000000 +0100
+@@ -4,7 +4,8 @@
+ debug ?= n
+
+ XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
+- -e s/ppc/powerpc/ -e s/i86pc/x86_32/)
++ -e s/ppc/powerpc/ -e s/i86pc/x86_32/ \
++ -e s/amd64/x86_64/)
+ XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
+ XEN_OS ?= $(shell uname -s)
+
Home |
Main Index |
Thread Index |
Old Index